OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : ErrDisable for Link-Flapping Configuration : Automatic Recovery
Automatic Recovery
By default, an interface goes into the ErrDisable state when a link flaps 5 times in 10 seconds. An interface is recovered from the ErrDisable state when the configured non-zero errdisable time-out interval value expires.
RTR1
 
#configure terminal
Enter configure mode.
(config)#errdisable cause link-flap
Enable ErrDisable due to link-flap
(config)#errdisable link-flap-setting max-flaps 2 time 30
Configure Link flap settings. Max link flap count and interval for linkFlap Timer
(config)#errdisable timeout interval 50
Configure interval to recover from error disable state
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#exit
Exit interface mode
Note: Automatic recovery timeout is disabled, if you configure errdisable timeout interval 0
Validation
#show errdisable details
 
Error Disable Recovery Timeout Interval : 50 secs
Link Flap Timer Interval : 30 secs
Link Flaps allowed Max. count : 2
 
ErrDisable Cause Status
---------------- ------
Link-Flap Enabled
Lag-Mismatch Disabled
Stp-Bpdu-Guard Enabled
Mac-move-limit Disabled
Note: Stp-Bpdu-Guard is enabled by default on the global level configuration.
 
 
#show interface errdisable status
Interfaces that will be enabled at the next timeout
Interface ErrDisable Cause Time left(secs)
--------- ---------------- ---------------
xe11 link-flap 38
 
#show interface brief | include ED
ED - ErrDisabled, PD - Protocol Down, AD - Admin Down, IA - InActive
xe11 ETH -- -- down ED 10g -- No No
#
Note: Interface xe11 went into the ErrDisable state after flapping 2 times in 30 seconds.
Last modified date: 10/12/2023