18
irf-port load-sharing mode (IRF port view)
Syntax
irf-port load-sharing mode
{
destination-ip
|
destination-mac
|
source-ip
|
source-mac
} *
undo irf-port load-sharing mode
View
IRF port view
Default level
2: System level
Parameters
destination-ip
: Uses the destination IP address of packets as the hash key.
destination-mac
: Uses the destination MAC address of packets as the hash key.
source-ip
: Uses the source IP address of packets as the hash key.
source-mac
: Uses the source MAC address of packets as the hash key.
Description
Use the
irf-port load-sharing mode
command to configure the load sharing mode for an IRF port.
Use the
undo irf-port load-sharing mode
command to restore the default.
By default, the S5120-EI series switches use the combination of the source and destination MAC
addresses as the hash key when processing Layer 2 packets, and use the combination of the source and
destination IP addresses when processing Layer 3 packets.
After you specify a load sharing mode, the switch extracts the corresponding field (IP address or MAC
address) in a packet or the inbound port number based on the selected mode. The switch performs the
hash function on the address or port number and the number of physical IRF ports in an aggregate IRF
port. Then, the switch determines which physical IRF port sends out the packet.
For this command, the latter configuration will overwrite the former instead of creating a supplement. For
example, the current load sharing mode uses the destination MAC address as the hash key. If you want
to change it to the combination of source and destination MAC addresses, you must execute the
irf-port
load-sharing mode
source-mac
command, and re-configure the load sharing mode by executing the
irf-port load-sharing mode
destination-mac source-mac
command.
When configuring IRF port load sharing mode in system view, you can specify the following
combinations as the hash key:
•
Any of the source IP address, destination IP address, source MAC address or destination MAC
address separately.
•
The combination of the source and the destination IP addresses.
•
The combination of the source and the destination MAC addresses as the hash key.
Examples
# Configure the load sharing mode for IRF port 1/1, using the destination MAC address of packets as
the hash key.
<Sysname> system-view
[Sysname] irf-port 1/1
[Sysname-irf-port 1/1] irf-port load-sharing mode destination-mac