The peer advertise-large-community command enables the function to advertise routes carrying the large-community attribute to a BGP EVPN peer group.
The undo peer advertise-large-community command disables the function to advertise routes carrying the large-community attribute to a BGP EVPN peer group.
By default, a device does not advertise routes carrying the large-community attribute to a BGP EVPN peer group.
Usage Scenario
To enable the function to advertise routes carrying the large-community attribute to the BGP EVPN peer, run the peer advertise-large-community command. If a device is enabled to advertise the routes carrying the large-community attribute to a BGP EVPN peer group, all the BGP EVPN peers in the peer group inherit this configuration. This simplifies the application of a route-policy and facilitates route maintenance and management.
Prerequisites
A route-policy has been used to define the large-community attribute.
<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] group gp1 [*HUAWEI-bgp] peer 10.1.1.2 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer gp1 enable [*HUAWEI-bgp-af-evpn] peer 10.1.1.2 group gp1 [*HUAWEI-bgp-af-evpn] peer gp1 route-policy RP export [*HUAWEI-bgp-af-evpn] peer gp1 advertise-large-community