The peer advertise-ext-community command configures a device to advertise an extended community attribute to its peer group.
The undo peer advertise-ext-community command cancels the existing configuration.
By default, a device does not advertise extended community attribute to its peer group.
Usage Scenario
The peer advertise-ext-community command is used to enable a device to advertise an extended community attribute to a specified peer or peer group. If a device advertises an extended community attribute to a specified peer group, all the members of the peer group will inherit the configuration. This simplifies the application of routing policies and facilitates route maintenance and management.
Configuration Impact
After the peer advertise-ext-community command is run to configure a device to advertise an extended community attribute to its peer, routing updates sent by the peer carry the extended community attribute.
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] group test internal [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer test enable [*HUAWEI-bgp-af-multicast] peer test advertise-ext-community