Use it whenever show interfaces reports "err-disabled", and when deciding whether automatic recovery is appropriate.
Cisco Err-disable Deep Reference
Err-disabled is the state in which a Cisco switch has shut a port by itself because a protection feature detected a problem. The port stays down until re-enabled by hand or by a recovery timer.
1. show interfaces status err-disabled — which port, which reason?
2. show logging around the event — details from the feature that acted.
3. Remove the cause (the attached switch, the extra device, the bad link).
4. shutdown then no shutdown on the port.
5. Comes back and drops every five minutes → recovery is on and the cause is still there.
feature detects its condition → port err-disabled, reason logged → reason read → cause removed → port re-enabled manually or by recovery timer → stays up
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show interfaces status err-disabledVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show interfaces status err-disabled
show errdisable recovery
show errdisable detect
show logging | include ERR_DISABLE|err-disable
show interfaces GigabitEthernet1/0/10
The first lists every err-disabled port with the reason. show errdisable recovery shows, per cause, whether automatic recovery is enabled, the interval, and for ports currently waiting the time left. show errdisable detect shows which causes are able to disable ports. The log gives the time of the event and the full message from the feature that triggered it.
Known-good: no ports are listed as err-disabled, and the log shows no repeated events for the same port.
Step 2 Failure boundaries & interpretation Narrow the fault
- The port goes err-disabled again right after
no shutdown. The cause is still there; go by the reason shown, not by the port. - The port comes back by itself and drops again every five minutes. Automatic recovery is enabled for a cause that has not been removed.
- The reason is bpduguard. A switch or looped cable is attached to an access port.
- The reason is psecure-violation. More MAC addresses than allowed, or a different device than the one recorded.
- The reason is link-flap. The link went up and down several times within seconds: cable, connector, optic or the device at the other end.
- The reason is udld. The link passes traffic in one direction only; check the fibre pair.
- A port is down but not listed as err-disabled. It is administratively shut or has no link; err-disable is not involved.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The order is always: read the cause, remove what triggered it, then re-enable. Bouncing the port first throws the information away, and the port goes down again if the cause remains. Automatic recovery is off by default.
show interfaces status err-disabled— each port and its reason.show errdisable recovery— per cause: automatic recovery on or off, interval, time left.show errdisable detect— which causes can disable ports.show logging | include ERR_DISABLE— the event, and the feature's own message just before it.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Err-disabled is a state in which a Cisco switch has shut a port down by itself because a protection feature detected a problem on it. The port stays down — no link, no traffic — until it is re-enabled by hand or by an automatic recovery timer.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
An err-disabled port is the switch reporting a specific event: a BPDU on an access port, too many MAC addresses, a one-way link. The reason is recorded. Simply bouncing the port skips that information, and if the cause is still present the port goes down again — or worse, the protection is defeated for the moment it takes to trigger again.
ReferenceHow it works1 section · depth on demand
How it works
What happens. A feature such as BPDU Guard, port security or UDLD detects its condition and asks the switch to disable the port. The switch logs the event with the cause, takes the link down and turns the port LED amber. show interfaces reports the port as "down, line protocol is down (err-disabled)".
The state is local to the switch. The device at the other end only sees the link go down.
Three settings control it.
| Command | Purpose |
|---|---|
errdisable detect cause <cause> | Whether a given cause may disable ports at all. On for all causes by default |
errdisable recovery cause <cause> | Whether ports disabled for that cause are re-enabled automatically. Off for all causes by default |
errdisable recovery interval <seconds> | How long to wait before the automatic attempt; 300 by default, minimum 30 |
Recovery.
- *Manual:*
shutdownfollowed byno shutdownon the interface. - *Automatic:* with recovery enabled for the cause, the switch re-enables the port after the interval. If the condition is still present, the port is disabled again and the cycle repeats.
Automatic recovery is useful where the cause normally goes away without intervention — a user unplugging the offending device — and no one is on site. It is a poor fit for causes that indicate a loop or a failing link, where a port that keeps returning keeps causing disruption.
The right order is always: read the cause, find and remove what triggered it, then re-enable the port.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Err-disable: why the switch shut the port
Err-disable is a protective shutdown. The configuration says the port is enabled, but the switch detected an error and disabled it to protect the rest of the network. Cisco's errdisable technote describes the state:
- The port sends and receives nothing, its LED turns orange, and
show interfaces statusshowserr-disabled. - A console or syslog message names the cause.
- Recovery is manual (
shutdown, thenno shutdown) after fixing the root cause. - Alternatively, automatic recovery can be enabled per cause with
errdisable recovery cause. It is off by default and retries every 300 seconds by default.
The recovery workflow
| Step | Command |
|---|---|
| 1. Find err-disabled ports | show interfaces status err-disabled |
| 2. Find the cause | show logging, show errdisable recovery |
| 3. Fix the root cause | Depends on the cause (cabling, configuration, a loop) |
| 4. Re-enable | shutdown / no shutdown on the interface |
| 5. Verify | show interfaces status, and watch the logs |
Automatic recovery (technote)
| Setting | Default |
|---|---|
errdisable recovery cause <cause> | Disabled for all causes |
errdisable recovery interval <s> | 300 seconds |
| Behaviour if the problem persists | The port goes err-disabled again |
Messages that name the cause (technote)
| Message | Cause |
|---|---|
%SPANTREE-2-BLOCK_BPDUGUARD / %PM-4-ERR_DISABLE: bpduguard error detected | BPDU received on a BPDU guard port |
%SPANTREE-2-CHNMISCFG | EtherChannel misconfiguration detected as a loop |
%PM-4-ERR_DISABLE: link-flap error detected | Too many link up/down changes |
%PORT_SECURITY-2-PSECURE_VIOLATION | Port security violation |
%UDLD-4-UDLD_PORT_DISABLED | Unidirectional link |
SW1# show interfaces status err-disabled
Port Name Status Reason Err-disabled Vlans
Gi1/0/22 Meeting room 2 err-disabled bpduguard
SW1# show logging | include Gi1/0/22
%SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi1/0/22 with BPDU Guard enabled. Disabling port.
%PM-4-ERR_DISABLE: bpduguard error detected on Gi1/0/22, putting Gi1/0/22 in err-disable state
SW1# show errdisable recovery | include Timer interval|bpduguard
SW1(config)# errdisable recovery cause bpduguard
SW1(config)# errdisable recovery interval 600
SW1(config)# interface GigabitEthernet1/0/22
SW1(config-if)# shutdown
SW1(config-if)# no shutdown
Should you enable automatic recovery?
Automatic recovery suits causes that are usually transient, such as link flap or DHCP rate limiting. For BPDU guard, port security and UDLD, the cause is often still present. Automatic recovery then just makes the port flap every interval, so find the device or cabling fault first.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → Cisco Err-disable Deep Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
Cisco Err-disable — Fast Check
Cause-first recovery checklist
1. show interfaces status err-disabled.
2. show errdisable recovery.
3. Read logs.
4. Inspect cause-specific feature.
5. Fix trigger.
6. Recover and prove stability.