Setting load sharing modes for link aggregation groups

You can set the global or group-specific load sharing mode. A link aggregation group preferentially uses the group-specific load sharing mode. If the group-specific load sharing mode is not available, the group uses the global load sharing mode.

Setting the global link-aggregation load sharing mode

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Set the global link-aggregation load sharing mode.

link-aggregation global load-sharing mode { { destination-ip | destination-mac | destination-port | source-ip | source-mac | source-port } * | per-packet }

By default, the device load shares traffic based on source and destination IP addresses.

Setting the group-specific load sharing mode

When you configure the group-specific load sharing mode, following these restrictions and guidelines:

To set the group-specific load sharing mode:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter aggregate interface view.

  • Enter Layer 2 aggregate interface view:interface bridge-aggregation interface-number

  • Enter Layer 3 aggregate interface view:interface route-aggregation interface-number

N/A

3. Set the load sharing mode for the aggregation group.

link-aggregation load-sharing mode { { destination-ip | destination-mac | destination-port | ip-protocol | mpls-label1 | mpls-label2 | mpls-label3 | source-ip | source-mac | source-port } * | bandwidth-usage | per-packet }

By default, the group-specific load sharing mode is the same as the global load sharing mode.

4. (Optional.) Enable the aggregate interface to use IP five-tuple information for MPLS packet distribution.

link-aggregation load-sharing mpls enhanced

By default, link-aggregation load sharing enhancement is disabled for MPLS packets.

The IP five-tuple is the source IP address, source port number, destination IP address, destination port number, and protocol number.

Use this command only on the provider (P) device. For information about the P device, see MPLS L3VPN configuration in MPLS Configuration Guide.