(Optional) Configuring LACP Preemption
Context
The LACP preemption function ensures that the interface with the highest LACP priority always functions as an active interface. For example, the interface with the highest priority becomes inactive due to a fault. If LACP preemption is enabled, the interface becomes active again after it recovers; if LACP preemption is disabled, the interface cannot become active interface after it recovers.
The LACP preemption delay is the period after which an inactive interface switches to active. The LACP preemption delay prevents unstable data transmission on an Eth-Trunk link due to frequent link status changes.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
- Run:
lacp preempt enable
LACP preemption is enabled.
By default, LACP preemption is disabled. To ensure normal running of an Eth-Trunk, enable or disable LACP preemption at both ends of the Eth-Trunk.
- Run:
lacp preempt delay delay-time
The LACP preemption delay is set.
By default, the LACP preemption delay is 30 seconds. If both devices of an Eth-Trunk use different preemption delays, the longer preemption delay is used.