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
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 advertise-community