The lacp priority command sets the LACP system or interface priority.
The undo lacp priority command restores the default LACP system or interface priority.
By default, the LACP system or interface priority is 32768.
Parameter |
Description |
Value |
---|---|---|
priority |
Specifies the LACP priority. A smaller value indicates a higher LACP priority. |
The value is an integer that ranges from 0 to 65535. |
System view, Ethernet interface view, GE interface view, 25GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, port group view
Usage Scenario
The LACP system priority is used to differentiate the local device and the remote device. The device of a higher LACP system priority is selected as the Actor of the link aggregate group (LAG), and active interfaces are selected according to interfaces of the Actor.
The LACP interface priority is used to differentiate interfaces on a device. The interface of a higher priority is selected as the active interface.
If devices at both ends of an Eth-Trunk are not configured with LACP system priorities, the devices use the default LACP system priority 32768 and the device with a smaller MAC address is selected as the Actor.
If priorities of different interfaces on a switch are not set, the default priority of interfaces is all 32768. Active interfaces are selected based on interface numbers and interfaces with smaller interface numbers are preferred.
Prerequisites
The interface has been added to the Eth-Trunk in LACP mode.
You can run the mode lacp command in the Eth-Trunk interface view to change the working mode of an Eth-Trunk to LACP.
Precautions
In 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 command is executed in LACP mode to set the upper threshold for the number of active interfaces, you need to determine the active interfaces when the number of interfaces manually added to an LAG exceeds the upper threshold. Setting the LACP interface priority ensures that interfaces with higher priorities become active ones in LACP mode.
If the max active-linknumber command is not used, the upper threshold for the number of active interfaces is 8. When the number of interfaces manually added to an LAG is smaller than 8, you do not need to select active interfaces because all interfaces are active.
If the max active-linknumber link-number command is run in the Eth-Trunk interface view, you need to run the lacp preempt enable command to enable LACP preemption on the current Eth-Trunk interface. Otherwise, interfaces with high LACP priorities may fail to be selected as active interfaces.