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-ext-community command to configure extended community attributes, you can use a routing policy to define specific community attributes.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpna [*HUAWEI-bgp-vpna] group test [*HUAWEI-bgp-vpna] peer test advertise-ext-community <HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpna [*HUAWEI-bgp-instance-vpna] group test [*HUAWEI-bgp-instance-vpna] quit [*HUAWEI-bgp] ipv4-labeled-unicast vpn-instance vpna [*HUAWEI-bgp-labeled-vpna] peer test enable [*HUAWEI-bgp-labeled-vpna] peer test advertise-ext-community