The stack-port load-balance mode command sets a load balancing mode for the physical member ports of a stack port.
The undo stack-port load-balance mode command restores the default load balancing mode.
By default, the physical member ports of a stack port perform load balancing in enhanced mode.
Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
stack-port load-balance mode { dst-ip | dst-mac | src-dst-ip | src-dst-mac | src-ip | src-mac }
undo stack-port load-balance mode
Parameter |
Description |
Value |
---|---|---|
dst-ip | Performs load balancing based on destination IP addresses. |
- |
dst-mac | Performs load balancing based on destination MAC addresses. |
- |
src-dst-ip | Performs load balancing based on the Exclusive-OR result of the source and destination IP addresses. |
- |
src-dst-mac | Performs load balancing based on the Exclusive-OR result of the source and destination MAC addresses. |
- |
src-ip | Performs load balancing based on source IP addresses. |
- |
src-mac | Performs load balancing based on source MAC addresses. |
- |
System view
Logical stack port view (The S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S do not support the stack-port load-balance mode command in this view.)
Use Scenario
To transmit traffic from a stack port to a destination over different links, run the stack-port load-balance mode command to configure an appropriate load balancing mode for the physical member ports of the stack port. Outgoing traffic is then properly balanced among the physical links, preventing congestion on these links. If you run this command multiple times to set different load balancing modes, the last configuration takes effect. The load balancing mode configured in the system view takes effect globally, and the load balancing mode configured in a stack port view takes effect only on the specified stack port. You can run the display stack-port command to view the load balancing mode on a stack port.
Precautions