R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)
242
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0 short-cut
peer advertise-community (BGP/BGP-VPN instance view)
Use peer advertise-community to advertise the community attribute to a peer or peer group.
Use undo peer advertise-community to disable the community attribute advertisement to a peer or peer
group.
Syntax
peer { group-name | ip-address } advertise-community
undo peer { group-name | ip-address } advertise-community
Default
No community attribute is advertised to any peer group/peer.
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 the IP address of a peer.
Examples
# In BGP view, advertise the community attribute to peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test advertise-community
# In BGP-VPN instance view, advertise the community attribute to peer group test. (The VPN has been
created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test advertise-community
Related commands
• apply community
• if-match community
• ip community-list
peer advertise-ext-community (BGP/BGP-VPN instance view)
Use peer advertise-ext-community to advertise the extended community attribute to a peer or peer
group.
Use undo peer advertise-ext-community to disable the extended community attribute advertisement to a
peer or peer group.










