The peer advertise-large-community command enables a device to advertise the Large-Community attribute to a peer group.
The undo peer advertise-large-community command cancels the configuration.
By default, a device does not advertise the Large-Community attribute to its BGP peer group.
Usage Scenario
To enable a device to advertise the Large-Community attribute to its BGP peer or peer group, run the peer advertise-large-community command. If the Large-Community attribute is advertised to a peer group, all the peer members in the group inherit this configuration. This simplifies the application of route-policies and facilitates route maintenance and management.
Prerequisites
Specific Large-Community values have been defined in a route-policy.
<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 [*HUAWEI-route-policy] quit [*HUAWEI-bgp] group test external [*HUAWEI-bgp] ipv6-family mvpn [*HUAWEI-bgp-af-mvpnv6] peer test enable [*HUAWEI-bgp-af-mvpnv6] peer test advertise-large-community