The peer advertise-ext-community command enables a device to advertise an extended community attribute to its peer.
The undo peer advertise-ext-community command cancels the existing configuration.
By default, a device does not advertise extended community attribute to its peer.
Usage Scenario
The peer advertise-ext-community command is used to enable a device to advertise an extended community attribute to a specified peer.
Precautions
Before running the peer advertise-community command to configure a device to advertise a BGP community attribute, you can use a route-policy to define this community attribute.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv6-family [*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv6] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vpn1 [*HUAWEI-bgp-6-vpn1] group test external [*HUAWEI-bgp-6-vpn1] peer test as-number 200 [*HUAWEI-bgp-6-vpn1] peer test advertise-ext-community