The peer advertise-large-community command enables the function to advertise routes carrying the large-community attribute to a BGP EVPN peer.
The undo peer advertise-large-community command disables the function to advertise routes carrying the large-community attribute to a BGP EVPN peer.
By default, a device does not advertise routes carrying the large-community attribute to a BGP EVPN peer.
<HUAWEI> system-view [~HUAWEI] ip ip-prefix 1 permit 10.1.1.0 24 [*HUAWEI] route-policy RP permit node 10 [*HUAWEI-route-policy] if-match ip-prefix 1 [*HUAWEI-route-policy] apply large-community 35551:100:65552 additive [*HUAWEI-route-policy] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.2 as-number 200 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 10.1.1.2 enable [*HUAWEI-bgp-af-evpn] peer 10.1.1.2 route-policy RP export [*HUAWEI-bgp-af-evpn] peer 10.1.1.2 advertise-large-community