< Home

lacp selected

Function

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.

Format

lacp selected { priority | speed }

undo lacp selected

Parameters

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. -

Views

Eth-Trunk interface view, Layer-2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Configure Eth-trunk 1 to work in static LACP mode and active interfaces to be selected according to the interface speed.

<sysname> system-view
[sysname] interface eth-trunk 1
[sysname-Eth-Trunk1] mode lacp-static
[sysname-Eth-Trunk1] lacp selected speed
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >