Manual Recovery
An interface can be recovered manually from the Errdisable state, when configure shutdown followed by no shutdown using CLI. Shutdown will recover the interface from errdisable state and No shutdown will make the interface up state.
RTR1
#configure terminal | Enter configure mode. |
(config)#errdisable cause link-flap | Enable errdisable due to link-flap |
(config)#errdisable link-flap-setting max-flaps 3 time 20 | Configure Link flap settings. Max link flap count and interval for linkFlap Timer |
#show running-config | include errdisable
errdisable cause link-flap
errdisable link-flap-setting max-flaps 3 time 20
#show errdisable details
Error Disable Recovery Timeout Interval : 50 secs
Link Flap Timer Interval : 20 secs
Link Flaps allowed Max. count : 3
ErrDisable Cause Status
---------------- ------
Link-Flap Enabled
Lag-Mismatch Disabled
Stp-Bpdu-Guard Enabled
Note: Interface xe11 went into the ErrDisable state after flapping 3 times in 20 seconds.
(config)#do show interface errdisable status
Interfaces that will be enabled at the next timeout
Interface ErrDisable Cause Time left(secs)
--------- ---------------- ---------------
xe11 link-flap NA
(config)#do show int brief | include ED
ED - ErrDisabled, PD - Protocol Down, AD - Admin Down, IA - InActive
xe11 ETH -- -- down ED 10g -- No No
Note: Interface xe11 recovered from the ErrDisable state after entering shutdown followed by no shutdown.
(config)#interface xe11
(config-if)#shutdown
2017 Sep 18 13:02:20 : NSM : WARN : [IFMGR_ERR_DISABLE_UP_4]: Interface xe11 recovered from link-flap errdisable
(config-if)#no shut
(config-if)#2017 Sep 18 13:02:21 : NSM : CRITI : [IFMGR_IF_UP_2]: Interface xe11 changed state to up
2017 Sep 18 13:02:21 : NSM : WARN : [VXLAN_OPR_ACCESSPORT_UP_4]: VXLAN Access port on xe11 is up
config)#do show interface errdisable
(config)#do show interface brief | include ED
ED - ErrDisabled, PD - Protocol Down, AD - Admin Down, IA - InActive
(config)#
If you configure no errdisable cause link-flap, at the global level, it recovers all the interfaces from the ErrDisable state
For transaction clients (such as NetConf), to recover a port from an error disable state manually, use this command/RPC call:
• Command: clear interface IFNAME error-disable
• NetConf RPC: interface-clear-interface-error-disable
Note: This command/RPC applies only for an error disable state caused by an administrative shutdown. For an error disable state due to peer flapping or any other reason, recover from the error disable state by entering shutdown followed by no shutdown.
Last modified date: 08/28/2023