peer advertise-entropy-label elc (BGP-IPv4 unicast address family view)(group)

Function

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 group.

Format

peer peerGroupName advertise-entropy-label elc [ padding paddingValue ]

undo peer peerGroupName advertise-entropy-label elc [ padding paddingValue ]

Parameters

Parameter Description Value
peerGroupName

Specify an peer group name.

The value is a string of 1 to 47 case-sensitive characters, spaces not supported.

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.

Views

BGP-IPv4 unicast address family view, BGP-Labeled address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

If a device is enabled to add the entropy label to the BGP routes to be advertised to a peer group, the device can add the entropy label to the BGP routes to be advertised to all the members in the peer group. This simplifies networking configuration and facilitates route maintenance and management.

Example

# Enable a device to add the entropy label to the BGP routes to be advertised in the IPv4 labeled address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group A external
[*HUAWEI-bgp] ipv4-family labeled-unicast
[*HUAWEI-bgp-af-ipv4-labeled] peer A enable
[*HUAWEI-bgp-af-ipv4-labeled] peer A advertise-entropy-label elc
# Enable a device to add the entropy label to the BGP routes to be advertised in the IPv4 unicast address family.
<HUAWEI> system
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group A external
[*HUAWEI-bgp] ipv4-family unicast
[*HUAWEI-bgp-af-ipv4] peer A enable
[*HUAWEI-bgp-af-ipv4] peer A label-route-capability
[*HUAWEI-bgp-af-ipv4] peer A advertise-entropy-label elc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >