R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference
266
After you execute the undo peer advertise-ext-community command, BGP, upon receiving a route with
the extended community attribute, removes the extended community attribute before sending the route to
the peer or peer group.
Examples
# In BGP IPv4 unicast address family view, advertise the extended community attribute to peer group
test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family unicast
[Sysname-bgp-ipv4] peer test advertise-ext-community
# 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] ipv4-family 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] ipv6-family 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:
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 | ipv6-address } allow-as-loop [ number ]
undo peer { group-name | ipv6-address } allow-as-loop
In BGP VPN IPv6 unicast address family view:
peer { group-name | ipv6-address } allow-as-loop [ number ]










