The peer advertise-entropy-label elc command enables a device to add the entropy label of the entropy label capability (ELC) type to the BGP routes to be advertised to a specified peer.
The undo peer advertise-entropy-label command cancels the existing configuration.
By default, a device advertises BGP routes without the entropy label to a peer.
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IPv4 address of a peer. |
The value is in dotted decimal notation. |
padding paddingValue |
Padding format of the ELC attribute. |
The value is a hexadecimal string containing 1 to 32 characters (16 hexadecimal numbers). It cannot contain spaces, and can only contain uppercase letters (A to F) and digits (0 to 9), and the length must be an even number. |
disable |
Disable the entropy label advertisement capability. |
- |
Usage Scenario
If load balancing is uneven on a network, you can run the peer advertise-entropy-label elc command to enable a device to add the entropy label of the ELC type to the BGP routes to be advertised to a specified peer. This command together with the peer entropy-label command helps equalize and improve the performance of load balancing. The standard that the peer advertise-entropy-label elc command complies with does not define the format of a padding value. To ensure flexible padding adjustment, specify the padding parameter to set a padding value for the entropy label as required. When changing the next hop of a route received from a peer, the device replaces the padding value carried the route with the padding value specified using the peer advertise-entropy-label elc command.
After a peer is added to a peer group, the peer inherits the configuration of the peer group. If the capability of adding the entropy label of the ELC type to the BGP routes to be advertised is enabled on the local device and for the peer group, run the peer advertise-entropy-label disable command on the local device if this newly added peer does not need to have this capability.