link-aggregation global load-sharing mode
Use link-aggregation global load-sharing mode to set the global link-aggregation load sharing mode.
Use undo link-aggregation global load-sharing mode to restore the default.
Syntax
link-aggregation global load-sharing mode { destination-ip | destination-mac | destination-port | ingress-port | source-ip | source-mac | source-port } *
undo link-aggregation global load-sharing mode
Default
The system automatically chooses the global link-aggregation load sharing mode according to the packet type.
The switches can perform link-aggregation load sharing for only Layer 2 or Layer 3 packets.
If the incoming frames' Type field is 0x0800 or 0x86DD, the switches load-share these packets as Layer 3 packets by the combination of the following criteria:
Source IP address.
Destination IP address.
Protocol number.
Port number.
If the incoming frames' Type field is not 0x0800 or 0x86DD, the switches load-share these packets as Layer 2 packets by the combination of the following criteria:
Source MAC address.
Destination MAC address.
Ethernet frame types.
VLAN tag.
MOD ID.
Port ID.
Views
System view
Predefined user roles
network-admin
Parameters
destination-ip: Load shares traffic based on destination IP addresses.
destination-mac: Load shares traffic based on destination MAC addresses.
destination-port: Load shares traffic based on destination ports.
ingress-port: Load shares traffic based on ingress ports.
source-ip: Load shares traffic based on source IP addresses.
source-mac: Load shares traffic based on source MAC addresses.
source-port: Load shares traffic based on source ports.
Usage guidelines
The load sharing mode that you configure overwrites the previous mode.
If unsupported load sharing mode is configured, an error prompt appears.
In system view, the switch supports the following load sharing mode and combinations:
Load sharing mode automatically determined based on the packet type.
Source IP address.
Destination IP address.
Source MAC address.
NOTE: Packets cannot be load shared based on source MAC addresses when the destination IP addresses of the packets match multiport ARP entries. For more information about multiport ARP entries, see Layer 3—IP Services Configuration Guide. | ||
Destination MAC address.
Source IP address and destination IP address.
Source IP address and source port.
Destination IP address and destination port.
Source IP address, source port, destination IP address, and destination port.
Any combination of ingress port, source MAC address, and destination MAC address.
Examples
# Configure the global load sharing mode to load share packets based on destination MAC addresses.
<Sysname> system-view [Sysname] link-aggregation global load-sharing mode destination-mac
Related commands
display link-aggregation load-sharing mode
link-aggregation global load-sharing algorithm
link-aggregation global load-sharing seed
link-aggregation load-sharing mode