The peer advertise-community command configures a device to advertise a community attribute to its peer.
The undo peer advertise-community command cancels the existing configuration.
By default, a device advertises no community attribute to its peer.
Usage Scenario
The peer advertise-community command is used to configure a device to advertise a community attribute to its 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 100 [*HUAWEI-bgp] ipv6-family mvpn [*HUAWEI-bgp-af-mvpnv6] peer 10.1.1.1 enable [*HUAWEI-bgp-af-mvpnv6] peer 10.1.1.1 advertise-community <HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1::1 as-number 100 [*HUAWEI-bgp] ipv6-family mvpn [*HUAWEI-bgp-af-mvpnv6] peer 1::1 enable [*HUAWEI-bgp-af-mvpnv6] peer 1::1 advertise-community