source-mac: Performs load sharing in link aggregation groups based on source MAC address.
source-port: Performs load sharing in link aggregation groups based on source port.
Description
Use link-aggregation load-sharing mode to configure the global or group-specific link-aggregation load
sharing criteria.
Use undo link-aggregation load-sharing mode to restore the default setting.
By default, the system selects the load sharing criteria according to the packet type, and the
group-specific link-aggregation load sharing criteria are the same as the global ink-aggregation load
sharing criteria.
This command applies to only unicast packets, and can change the load sharing criteria for unicast
packets. Broadcast packets and multicast packets always use the default load sharing criteria.
The load sharing criteria that you configure will overwrite the previous criteria.
If unsupported load sharing criteria are configured, an error prompt will appear.
In system view, the switch supports the following load sharing criteria and combinations:
Load-sharing criteria automatically determined based on the packet type
•
Source IP address
•
Destination IP address
•
Source MAC address
•
•
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 incoming port, source MAC address, and destination MAC address
In Layer 2 aggregate interface view, the switch supports the following load sharing criteria and
combinations:
Load-sharing criteria automatically determined based on the packet type
•
Source IP address
•
Destination IP address
•
•
Source MAC address
Destination MAC address
•
Destination IP address and source IP address
•
Destination MAC address and source MAC address
•
Examples
# Configure the destination MAC address as the global link-aggregation load sharing criterion.
<Sysname> system-view
[Sysname] link-aggregation load-sharing mode destination-mac
# Configure the destination MAC address as the load sharing criterion specific to the link aggregation
group of aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
93