The max active-linknumber command sets the upper threshold for the number of active interfaces in an Eth-Trunk.
The undo max active-linknumber command restores the default upper threshold for the number of active interfaces in an Eth-Trunk.
By default, the upper threshold for the number of active interfaces in an Eth-Trunk is 32 on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, 16 on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI, and 8 on other models.
Parameter |
Description |
Value |
---|---|---|
link-number |
Specifies the upper threshold for the number of active interfaces. |
The value is an integer that ranges from 1 to 32 on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, 1 to 16 on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI, and 1 to 8 on other models. On the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI, you can run the assign trunk command to set the value, and run the display trunk configuration command to check the configuration. |
Usage Scenario
The number of active interfaces in an Eth-Trunk affects the status and bandwidth of the Eth-Trunk. The bandwidth of an Eth-Trunk is equal to the total bandwidth of all member interfaces in Up state.
The number of Up member links affects the status and bandwidth of an Eth-Trunk. To ensure that the Eth-Trunk functions properly and is less affected by member link status changes, set the following thresholds.
Lower threshold for the number of active interfaces
When the number of active interfaces falls below this threshold, the Eth-Trunk goes Down. This guarantees the Eth-Trunk a minimum available bandwidth.
For example, if the Eth-Trunk is required to provide a minimum bandwidth of 2 Gbit/s and each member link's bandwidth is 1 Gbit/s, the minimum number of Up member links must be set to 2 or larger.
To set the lower threshold for the number of active interfaces, run the least active-linknumber command.
Upper threshold for the number of active interfaces
When the number of active interfaces reaches this threshold, the bandwidth of the Eth-Trunk will not increase even if more member links go Up. The upper threshold is used to improve network reliability with assured bandwidth.
Prerequisites
The Eth-Trunk has been correctly configured.
Precautions
If you run the max active-linknumber command multiple times, only the latest configuration takes effect.
The max active-linknumber command is valid only in LACP mode.
If the number of member interfaces added to an Eth-Trunk is less than the upper threshold, there is no backup interface.
After you run this command, if the number of current active interfaces reaches the upper threshold, new member interfaces function as the backup interfaces.
If the least active-linknumber command has been configured before you run the max active-linknumber command, ensure that the maximum number of active member links is greater than or equal to the minimum number of active member links.
The upper thresholds configured by the max active-linknumber command on both ends must be the same; otherwise, the Eth-Trunk status flaps if an active interface fails.
When a Huawei switch connects to a non-Huawei device, if the maximum number of active links at both ends is smaller than the number of all active interfaces of the Eth-Trunk, a link is interrupted suddenly especially in 1:1 mode. As a result, LACP negotiation results at both ends are different and the Eth-Trunk in Down state cannot be restored. It is recommended that LACP preemption be enabled and the same preemption delay be set at both ends or the maximum number of active links be not set at both ends.
The 1:1 mode indicates that the maximum number of active links at both ends of an Eth-Trunk is 1 and two member interfaces join an Eth-Trunk at both ends.