The peer entropy-label command enables the entropy label capability for a device to improve load balancing during traffic forwarding.
The undo peer entropy-label command cancels the existing configuration.
By default, the entropy label capability is not enabled for a device.
Usage Scenario
If load balancing is uneven on a network, you can run the peer entropy-label command to enable the entropy label capability for the device. This capability is effective in scenarios where traffic is forwarded along received BGP routes that carry the entropy label. Therefore, you also need to run the peer advertise-entropy-label elc command on the peer to enable the peer to add the entropy label of the entropy label capability (ELC) type to routes to be advertised to the local device. The two configurations help equalize and improve the performance of load balancing.
After a peer is added to a peer group, the peer inherits the configuration of the peer group. If the entropy label capability is enabled on the local device and for the peer group, run the peer entropy-label disable command on the local device if this newly added peer does not need to have the entropy label capability.Precautions
If the peer entropy-label command is run in the BGP-IPv4 unicast address family, the configuration takes effect only for labeled routes.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] peer 10.1.1.1 enable [*HUAWEI-bgp-af-ipv4] peer 10.1.1.1 label-route-capability [*HUAWEI-bgp-af-ipv4] peer 10.1.1.1 entropy-label
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] ipv4-family labeled-unicast [*HUAWEI-bgp-af-ipv4-labeled] peer 10.1.1.1 enable [*HUAWEI-bgp-af-ipv4-labeled] peer 10.1.1.1 entropy-label