The lacp priority command sets a Link Aggregation Control Protocol (LACP) interface priority.
The undo lacp priority command restores the default LACP interface priority.
The default LACP priority is 32768.
Usage Scenario
LACP interface priorities are set to prioritize interfaces of the same device. Interfaces with higher priorities are selected as active interfaces.
Two devices are connected through three interfaces on each side. After the three interfaces are bundled into an Eth-Trunk interface, the mode lacp-static command is used to configure the Eth-Trunk interface to work in static LACP mode. Two Eth-Trunk member interfaces are active. If you want to use an inactive interface to replace one of the active interfaces, you can take either of the following actions: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
In static LACP mode, active interfaces selected by devices at both ends of an Eth-Trunk link must be the same; otherwise, the link aggregation group cannot be set up.
If the max active-linknumber (Eth-Trunk interface view) command is run on an Eth-Trunk interface in static LACP mode to set the maximum number of active member links, when the number of Up Ethernet interfaces that are manually added to the Eth-Trunk interface exceeds the maximum value, you need to select active interfaces from the Up member interfaces. Running the lacp priority command to set LACP interface priorities ensures that interfaces with high priorities become active in static LACP mode. If the max active-linknumber (Eth-Trunk interface view) command is not used, if the number of manually added member interfaces is smaller than the default value, you do not need to select active interfaces and all member interfaces are active.<HUAWEI> system-view [~HUAWEI] interface Eth-Trunk 10 [*HUAWEI-Eth-Trunk10] mode lacp-static [*HUAWEI-Eth-Trunk10] trunkport GigabitEthernet 0/1/1 [*HUAWEI-Eth-Trunk10] quit [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] lacp priority 1