lacp selected

Function

The lacp select command configures the mode for selecting active interfaces of an Eth-Trunk interface in static Link Aggregation Control Protocol (LACP) mode.

By default, active interfaces are selected according to the interface priority.

Format

lacp selected speed

lacp selected priority

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

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
trunk write

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

The mode lacp-static 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, it is not recommended that you 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 select active interfaces according to the interface rate.
<HUAWEI> system-view
[~HUAWEI] interface Eth-Trunk 1
[*HUAWEI-Eth-Trunk1] mode lacp-static
[*HUAWEI-Eth-Trunk1] lacp selected speed
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >