R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
313
peer advertise-community (BGP-VPNv4 subaddress family
view)
Use peer advertise-community to specify to advertise community attributes to a peer or peer group.
Use undo peer advertise-community to remove the configuration.
Syntax
peer { group-name | ip-address } advertise-community
undo peer { group-name | ip-address } advertise-community
Default
No community attributes are advertised to any peer or peer group.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: IP address of the peer.
Examples
# In BGP-VPNv4 subaddress family view, specify to advertise community attributes to peer 3.3.3.3.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 3.3.3.3 advertise-community
peer allow-as-loop
Use peer allow-as-loop to allow the local AS number to appear in the AS-PATH attribute of a received
route and to set the allowed maximum number of repetitions.
Use undo peer allow-as-loop to remove the configuration.
Syntax
peer { group-name | ip-address } allow-as-loop [ number ]
undo peer { group-name | ip-address } allow-as-loop
Views
BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, BGP-VPLS address family view
Default command level
2: System level
Parameters
group-name: Name of the peer group, a case-sensitive string of 1 to 47 characters.










