R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
384
# In BGP-VPN IPv4 unicast address family view, advertise the extended community attribute to peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1] peer test advertise-ext-community
# In BGP IPv6 unicast address family view, advertise the extended community attribute to peer group
test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv6 unicast
[Sysname-bgp-ipv6] peer test advertise-ext-community
Related commands
• apply extcommunity
• if-match extcommunity
• ip extcommunity-list
peer allow-as-loop
Use peer allow-as-loop to allow a 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
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4
address family view/BGP L2VPN address family view/BGP IPv4 multicast address family view:
peer { group-name | ip-address } allow-as-loop [ number ]
undo peer { group-name | ip-address } allow-as-loop
In BGP IPv6 unicast address family view:
peer { group-name | ip-address | ipv6-address } allow-as-loop [ number ]
undo peer { group-name | ip-address | ipv6-address } allow-as-loop
In BGP VPN IPv6 unicast address family view/BGP IPv6 multicast address family view:
peer { group-name | ipv6-address } allow-as-loop [ number ]
undo peer { group-name | ipv6-address } allow-as-loop
Default
The local AS number is not allowed to exist in the AS_PATH attribute of routes from a peer or peer group.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP-VPNv4 address
family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP
L2VPN address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast address family
view