OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : Errdisable Commands
Errdisable Commands
This chapter describes the errdisable commands.
errdisable cause
Use this command to globally shut down a port when certain errors happen:
BPDU guard puts an interface configured for Spanning Tree Protocol (STP) Port Fast into the ErrDisable state upon receipt of a STP BPDU to avoid a potential bridging loop.
If one side of a link-access group (LAG) is configured as a static LAG and the other side as a dynamic LAG, the ports on the side receiving LACP BPDUs go into the ErrDisable state
Note: When link-flap ErrDisable is enabled globally, then all interfaces are enabled. Link-flap ErrDisable can be enabled globally, but disabled for a specific interface with the no link-flap errdisable command.
Note: Stp-Bpdu-Guard is enabled by default on the global level configuration.
Use no form of this command to not shut down a port when certain errors happen.
Command Syntax
errdisable cause {stp-bpdu-guard|lag-mismatch|link-flap|mac-move-limit}
no errdisable cause {stp-bpdu-guard|lag-mismatch|link-flap|mac-move-limit}
Parameters
stp-bpdu-guard
ErrDisable on stp-bpdu-guard
lag-mismatch
ErrDisable on lag-mismatch
link-flap
ErrDisable on link-flap
mac-move-limit
Enable or Disable Mac-Move-Limit
Default
No default value is specified
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#errdisable cause lag-mismatch
errdisable link-flap-setting
Use this command to configure the link-flap errdisable feature:
An interface should change state as up-down to complete one cycle of a link flap.
The LED does not glow when an interface is in the errdisable state.
Errdisable is supported only on physical interfaces.
A LAG interface does not go into the errdisable state when all of its member ports are in the errdisable state
The error disable computation is based on a sliding window of time. The window size is configurable in seconds. This window is taken as the current time to the last <t> second, where <t> is the configured window size. If the accumulated link flap count reaches the maximum flap count for a particular sliding window, a link flap error disable fault is triggered.
Note: Any previous flapping accumulated is flushed when you execute this command.
Command Syntax
errdisable link-flap-setting max-flaps <1-100> time <1-1800>
Parameters
<1-100>
Maximum flap count
<1-1800>
Sliding window size in seconds
Default
Five flaps in ten seconds:
Maximum flap count: 5
Sliding window size: 10 seconds
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#errdisable link-flap-setting max-flaps 5 time 20
errdisable mac-move-limit
Use this command to set the ErrDisable mac movement limit.
Command Syntax
errdisable mac-move-limit <1-1000>
no errdisable mac-move-limit
Parameters
<1-1000>
Allowed Mac movement in 5 seconds
Default
By default, mac-move-limit is 1000
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 3.0.
Examples
#configure terminal
(config)#errdisable mac-move-limit 50
(config)#no errdisable mac-move-limit
 
errdisable timeout
Use this command to set the ErrDisable auto-recovery timeout interval.
Command Syntax
errdisable timeout interval <10-1000000>
Parameters
<10-1000000>
Timeout interval in seconds
Default
By default, zero: timer is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#errdisable timeout interval 1000
link-flap errdisable
Use this command to shut down the interface when it continually goes up and down.
The link-flap ErrDisable feature must be enabled globally with the errdisable cause command.
Note: When link-flap ErrDisable is enabled globally, then all interfaces are enabled. Link-flap ErrDisable can be enabled globally, but disabled for a specific interface with the no link-flap errdisable command.
Note: This feature is supported only on physical ports.
Use the no form of this command to disable this behavior.
Command Syntax
link-flap errdisable
no link-flap errdisable
Parameter
None
Default
No default value is specified
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface xe1/1
(config-if)#link-flap errdisable
show errdisable details
Use this command to display ErrDisable settings.
Command Syntax
show errdisable details
Parameters
None
Default
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show errdisable details
show interface errdisable status
Use this command to display ErrDisable conditions for an interface.
Command Syntax
show interface errdisable status
Parameters
None
Default
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show interface errdisable status
ge1 lag-mismatch-errdisable
ge2 stp-bpdu-guard-errdisable