(Optional) Setting the Upper and Lower Thresholds for the Number of Active Interfaces
Context
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 resistant to member link status changes, set the following thresholds for the number of active interfaces:
- Lower threshold: When the number of active interfaces falls below this threshold, the Eth-Trunk goes Down. This ensures that an active Eth-Trunk has the minimum required bandwidth.
- Upper threshold: Used for improving network reliability with stable bandwidth. When the number of active interfaces reaches this threshold, you can add new member interfaces to the Eth-Trunk, but excess member interfaces only go Up to back up active interfaces that go Down.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
- Run:
least active-linknumber link-number
The lower threshold for the number of active interfaces is set.
By default, the lower threshold for the number of active interfaces is 1.
The lower threshold for the number of active interfaces on the local device can be different from that on the remote device. If the two values are different, the larger one is used.
- Run:
max active-linknumber link-number
The upper threshold for the number of active interfaces is set.
By default, the upper threshold for the number of active interfaces is 8.
If the device is equipped with cards specified in the assign trunk command, you can run the assign trunk command to set the value, and run the display trunk configuration command to view the configuration.
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.
The upper threshold for the number of active interfaces must be greater than or equal to the lower threshold for the number of active interfaces.