The peer advertise-large-community command enables a device to advertise the Large-Community attribute to a BGP peer.
The undo peer advertise-large-community command cancels the configuration.
By default, a device does not advertise the Large-Community attribute to its BGP pee.
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IPv4 address of a peer. |
It is in dotted decimal notation. |
disable |
Disables the Large-Community attribute from being advertised to a BGP peer. |
- |
peerIpv6Addr |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
Usage Scenario
To enable a device to advertise the Large-Community attribute to its BGP 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.
Precautions
To configure a 6PE device to send labeled routes, specify an IPv4 unicast address for the peer of the device in the IPv6 unicast address family view.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp] ipv6-family vpnv6 [*HUAWEI-bgp-af-vpnv6] peer 10.1.1.1 enable [*HUAWEI-bgp-af-vpnv6] peer 10.1.1.1 advertise-large-community