< Home

load-distribution active-linknumber-change global

Function

The load-distribution active-linknumber-change global command specifies the number of Eth-Trunk interfaces participating in load balancing calculation in the system view.

The undo load-distribution active-linknumber-change global command cancels the configuration.

By default, the number of member interfaces that participate in load balancing calculation in all Eth-Trunks is the number of active interfaces in the Eth-Trunks.

Only the S2720-EI, S5720-LI, S5720S-LI, S5720I-SI, S5720-SI, and S5720S-SI support this command.

Format

load-distribution active-linknumber-change link-number1 to link-number2 global

undo load-distribution active-linknumber-change [ link-number1 ] global

Parameters

Parameter Description Value
link-number1 Specifies the number of active interfaces in an Eth-Trunk.

The value is an integer in the range from 2 to 7.

link-number2 Specifies the number of interfaces in an Eth-Trunk where load balancing calculation is performed.

The value is an integer in the range from 3 to 8.

NOTE:

When this command is used, link-number2 must be larger than link-number1.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the number of interfaces in an Eth-Trunk where load balancing calculation is performed is the number of active interfaces of the device. If the number of active interfaces is smaller than 8 and traffic on an Eth-Trunk is unevenly load balanced, you can run the load-distribution active-linknumber-change global command to set the number of Eth-Trunk interfaces participating in load balancing calculation to a larger value in the system view to better load balance traffic.

The load-distribution active-linknumber-change link-number1 to link-number2 global command with different values of link-number1 can be configured repeatedly. When the number of active interfaces is the same as the value of link-number1, the configuration takes effect. If the load-distribution active-linknumber-change link-number1 to link-number2 global command with the same value of link-number1 is configured, only the latest configuration takes effect.

Precautions

  • When an inter-device Eth-Trunk is configured in an iStack and the local-preference enable command is used to configure an Eth-Trunk to preferentially forward local traffic, the number of interfaces in the Eth-Trunk where load balancing calculation is performed is the number of active interfaces.

  • This command is effective only for known unicast packets.

  • If the number of Eth-Trunk interfaces participating in load balancing calculation is configured in both the system view and Eth-Trunk interface view, the configuration in the Eth-Trunk interface view takes effect.

Example

# Set the number of Eth-Trunk interfaces participating in load balancing calculation to 8 when the Eth-Trunks have four active interfaces.

<HUAWEI> system-view
[HUAWEI] load-distribution active-linknumber-change 4 to 8 global
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >