The lacp selected command configures the mode for selecting active interfaces in the Eth-Trunk interface in static Link Aggregation Control Protocol (LACP) mode.
The undo lacp selected command restores the mode for selecting active interfaces in the Eth-Trunk interface in static LACP mode to the default.
By default, active interfaces are selected according to the interface priority.
| Parameter | Description | Value |
|---|---|---|
| priority | Indicates that active interfaces are selected according to the interface priority. The interfaces with high priorities are preferentially selected as active interfaces. | - |
| speed | Indicates that active interfaces are selected according to the interface speed. High-speed interfaces are preferentially selected as active interfaces. | - |
Usage Scenario
As defined in LACP, active interfaces are selected according to the interface priority by default. If member interfaces of an Eth-Trunk interface in static LACP mode are of different rates, such as 100 Mbit/s and 1 Gbit/s, low-speed member interfaces may be selected as active interfaces because of their high priorities. If you intend to select high-speed interfaces to be active interfaces, you can run the lacp selected command to set the mode for selecting active interfaces to speed.
If you intend to select active interface according to the interface priority, you can run the lacp selected priority command.
Prerequisites
Before running the lacp selected command, ensure that the mode lacp-static or undo lacp selected command has been run in the Eth-Trunk interface view to configure the Eth-Trunk interface to work in static LACP mode.
Configuration Impact
By default, Eth-Trunk active member interfaces are selected according to the interface priority. Changing the mode for selecting active interfaces causes short-term service interruption. Therefore, you are not recommended to change the mode for selecting active interfaces during service transmission.
Precautions
Bundling interfaces working at different rates into an Eth-Trunk interfaces in static LACP mode is not recommended. Otherwise, the preemption function cannot take effect.