The peer advertise-community command configures a device to advertise a community attribute to its peer group.
The undo peer advertise-community command cancels the existing configuration.
By default, a device advertises no community attribute to its peer group.
Usage Scenario
The peer advertise-community command is used to configure a device to advertise a community attribute to its peer group. If a device advertises a community attribute to its 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.
Prerequisites
Enable the peer group in current view using peer enable command.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] peer 2.2.2.2 as-number 100 [*HUAWEI-bgp] group gp1 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 group gp1 [*HUAWEI-bgp-af-evpn] peer 2.2.2.2 group gp1 [*HUAWEI-bgp-af-evpn] peer gp1 enable [*HUAWEI-bgp-af-evpn] peer gp1 advertise-community