R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

258
if-match extcommunity
ip extcommunity-list
peer allow-as-loop (BGP/BGP-VPN instance view)
Use peer allow-as-loop to allow the local AS number to exist in the AS_PATH attribute of routes from a
peer or peer group and to configure the number of times the local AS number can appear.
Use undo peer allow-as-loop to restore the default.
Syntax
peer { group-name | ip-address } allow-as-loop [ number ]
undo peer { group-name | ip-address } allow-as-loop
Default
The local AS number is not allowed in routes from a peer or peer group.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
ip-address: Specifies an IP address of a peer.
number: Specifies the number of times for which the local AS number can appear in routes from the
peer/peer group, in the range of 1 to 10. The default number is 1.
Examples
# In BGP view, configure the number of times the local AS number can appear in AS-path attribute of
ro u t e s f ro m p e e r 1.1.1.1 a s 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 allow-as-loop 2
# In BGP-VPN instance view, configure the number of times for which the local AS number can appear
in AS-path attribute of routes from peer 1.1.1.1 as 2. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer 1.1.1.1 allow-as-loop 2
Related commands
display bgp routing-table peer
peer as-number (BGP/BGP-VPN instance view)
Use peer { group-name | ip-address } as-number as-number to specify a peer/peer group with an AS
number.