< Home

stack-port load-balance mode

Function

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.

Format

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

Parameters

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.

-

Views

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.)

Default Level

3: Management level

Usage Guidelines

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

  • If a non-default load balancing mode is configured on a stack port, the configured load balancing mode takes effect. If a stack port uses the default load balancing mode and the global load balancing mode is not the default one, the global load balancing mode takes effect.
  • If the source MAC address-based load balancing mode is used, Layer 3 packets forwarded to a downstream device may fail to be balanced among the stack links because the source MAC address of the packets is the fixed system MAC address. If the traffic rate exceeds the bandwidth of a single stack link, some packets may be dropped.

Example

# Set the global load balancing mode to src-ip.

<HUAWEI> system-view
[HUAWEI] stack-port load-balance mode src-ip

# Set the load balancing mode on stack port 0/1 to dst-ip.

<HUAWEI> system-view
[HUAWEI] interface stack-port 0/1
[HUAWEI-stack-port0/1] stack-port load-balance mode dst-ip
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >