Command Manual – BGP
H3C S9500 Series Routing Switches
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test advertise-community
1.1.41 peer advertise-ext-community (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } advertise-ext-community
undo peer { group-name | ip-address } advertise-ext-community
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name: Name of a peer group.
ip-address: IP address of a peer.
Description
Use the peer advertise-ext-community command to advertise the extended
community attribute to a peer/peer group.
Use the undo peer advertise-ext-community command to disable the advertisement.
By default, no extended community attribute is advertised to a peer/peer group.
For related information, refer to the ip extcommunity-list, if-match extcommunity
and apply extcommunity commands in Routing Policy Commands.
Examples
# In BGP view, advertise the extended community attribute to the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test advertise-ext-community
# In BGP-VPN view, advertise the extended community attribute to the peer group test
(the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test advertise-community
Chapter 1 BGP Configuration Commands
1-43