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:
MAC address-based load sharing is supported only by Layer 2 aggregate interfaces.
Multicast traffic cannot be load shared based on bandwidth usage. Bandwidth usage-based load sharing is supported only for aggregate interfaces that use member ports on a FIP-240 (JH137A), FIP-300 (JG671A), or FIP-310 (JG672A) module.
If you configure an aggregation group to load shard traffic based on bandwidth usage, any of the following operations might affect the traffic load sharing in the aggregation group:
Setting the global load sharing mode.
Setting the load sharing modes for other aggregation groups.
Make sure you are fully aware of the impacts when you perform these operations.
To set the group-specific load sharing mode:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter aggregate interface view. |
| 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. |