show interfaces status err-disabled
Lists only the ports that are err-disabled, with the reason the switch shut each one.
Written by a working field network engineer · CCNA, Security+, CySA+
Filters the port table down to the ports the switch has shut on its own, and tells you why. It is the first command to run when a user says “my port is dead”. In this example PC2’s port, Fa0/2, runs port security with the default maximum of 1 and violation mode shutdown, and someone has plugged a small switch in behind it so a second MAC address arrived.
Example output
SW1#show interfaces status err-disabled
Port Name Status Reason Err-disabled Vlans
Fa0/2 err-disabled psecure-violationReference output: hand-written in standard Cisco IOS format for this example network, not captured from a device. SW1 after the second device was connected to Fa0/2. The other pages show the network before that, with Fa0/2 connected. Fa0/1 would never appear here: it uses violation mode restrict, which drops and counts offending frames but does not err-disable the port.
Useful variants
show interfaces status | include err
What each column or field means
| Field | Meaning |
|---|---|
Status | err-disabled: the port is shut by the switch, not by configuration. |
Reason | The cause: psecure-violation, bpduguard, channel-misconfig, link-flap, udld, dhcp-rate-limit, arp-inspection and others. psecure-violation only happens on ports in violation mode shutdown. |
When it doesn’t look right
Reason bpduguard.
A switch (or a looped cable) was connected to a PortFast edge port. Remove it before bringing the port back.
The port comes straight back up err-disabled.
The cause is still present. Fix it first, then shutdown and no shutdown the port.
Related commands
- show errdisable recovery
- show port-security interface
- show interfaces status
- show spanning-tree summary
Try it yourself
- Port Security Violation Action (Pro)
- Restoring an Administratively Down Port (Pro)
- Free lab on this topic: Switchport Port Security
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Compare port-security violation modes and recovery (5. Security Fundamentals)
- Recover err-disabled ports automatically (5. Security Fundamentals)
- Protect an edge port with PortFast and BPDU Guard (5. Security Fundamentals)
Topic
Port Security — Limit which MAC addresses an access port accepts, choose a violation action, learn sticky addresses and recover err-disabled ports.