< Home

load-distribution active-linknumber-change

Function

The load-distribution active-linknumber-change command configures the number of interfaces in an Eth-Trunk where load balancing calculation is performed.

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

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.

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

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

Parameters

Parameter Description Value

link-number1

Specifies the number of active interfaces in an Eth-Trunk.

The value is an integer that ranges 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 that ranges from 3 to 8.

NOTE:

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

Views

Eth-Trunk interface 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 command to increase the number of interfaces in the Eth-Trunk where load balancing calculation is performed so that traffic can be better load balanced among active links.

The load-distribution active-linknumber-change link-number1 to link-number2 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 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 a 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.

Example

# Set the number of interfaces in Eth-Trunk 1 where load balancing calculation is performed to 8 when Eth-Trunk 1 has four active interfaces.

<HUAWEI> system-view
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] load-distribution active-linknumber-change 4 to 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >