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 advertise BGP community attributes, you can use a routing policy to define specific community attributes.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] ipv4-family sr-policy [*HUAWEI-bgp-af-ipv4-srpolicy] peer 10.1.1.1 enable [*HUAWEI-bgp-af-ipv4-srpolicy] peer 10.1.1.1 advertise-ext-community