distribute-weight

Function

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.

Format

distribute-weight weight-value

undo distribute-weight

Parameters

Parameter Description Value
weight-value

Specifies the weight of an Eth-Trunk member interface.

The value is an integer ranging from 1 to 16.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk member interface view, FlexE interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
trunk write

Usage Guidelines

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.

Example

# Set the weight of load balancing for Eth-Trunk member interface GE 0/1/1 to 3.
<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
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >