(Optional) Setting the Recovery Time of an Interface
Context
When LDT detects a loop on an interface, a preconfigured action is taken on the interface. You can set the recovery time of the interface after the loop is eliminated. When the system does not receive LDT packets from the interface in the recovery time, it considers that the loop is eliminated on the interface and restores the interface.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The interface view is displayed.
- Run:
loop-detection recovery-time recovery-time
The recovery time is set.
By default, the recovery time of an interface is 255s.
To prevent interface status flapping, set the interface recovery time to be larger than the interval for sending LDT packets.
Configure the interface recovery time according to the network situation and LDT scope. The LDT scope is determined by the total number of VLANs and interfaces where LDT is enabled. A larger number indicates a wider scope. When there are many loops on the network and LDT is enabled in a wide scope, it is recommended that you retain the default recovery time or set a longer recovery time (for example, 100s). If the recovery time is short in this situation, the CPU usage becomes high.