Using the distribute-weight command, you can configure the load-balancing weight for an Eth-Trunk member interface.
Using the undo distribute-weight command, you can delete the configured weight for an Eth-Trunk member interface.
By default, the weight of an Eth-Trunk member interface is 1.
| Parameter | Description | Value |
|---|---|---|
weight-value |
Specifies the weight of an Eth-Trunk member interface. |
The value is an integer ranging from 1 to 8. |
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.
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 1, the default value
Prerequisites
To make the distribute-weight command take effect, ensure that 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.
If you run the distribute-weight command several times on the same interface, the latest configuration takes effect.
Precautions
A maximum of 8 member interfaces in an Eth-Trunk interface can carry out load balancing. The total weights of all member interfaces in an Eth-Trunk interface cannot be greater than 8.
When multicast traffic is transmitted over an Eth-Trunk interface, if the distribute-weight command is used to change the weight of a member interface, you need to run the shutdown and then undo shutdown commands to restart the member interface for the configuration to take effect.