The distribute-weight command configures the weight of load balancing for a member interface.
The undo distribute-weight command deletes the configured weight of load balancing of a member interface.
By default, the weight of load balancing on a member interface is 1.
Usage Scenario
On an Eth-Trunk interface, you can load balance traffic among member interfaces according to the weights configured for the member interfaces.
The higher the weight of a member interface, the heavier the load over the member link. Therefore, you can run the distribute-weight command to configure a higher weight for a member interface so that the member link can carry a heavier load. For example, if an Eth-Trunk interface has a 10 Gbit/s member interface and a 1 Gbit/s member interface, and the weight of the 10 Gbit/s member interface is set to 10, the maximum bandwidth of the Eth-Trunk interface is 11 Gbit/s. If the weight of a 10 Gbit/s member interface is set to 5, the maximum bandwidth of a 1 Gbit/s member interface is 1 Gbit/s. Therefore, the Eth-Trunk interface can carry a maximum bandwidth of 6 Gbit/s. To restore the weight of a member interface to the default value, you can run either of the following commands in the Ethernet interface view: undo distribute-weight, which restores the weight of a member interface to the default value distribute-weight 1, which forcibly sets the weight of a member interface to the default value 1.Prerequisites
An Eth-Trunk interface has been correctly configured, and interfaces have been added to the Eth-Trunk interface.
Configuration Impact
The higher the weight of a member interface, the heavier the load over the member link.
Precautions
If the distribute-weight command is run more than once, the latest configuration overrides the previous one.
The number of member interfaces of an Eth-Trunk interfaces cannot exceed the maximum number of member interfaces allowed.<HUAWEI> system-view [~HUAWEI] interface eth-trunk1 [*HUAWEI-Eth-Trunk1] trunkport GigabitEthernet 0/1/1 [*HUAWEI-Eth-Trunk1] quit [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] distribute-weight 3