Octet

A port shows err-disabled. What does that mean and how do you bring it back?

Show the answer

Say this first

The switch shut the port in software because a protection feature tripped: BPDU guard, port security, UDLD, EtherChannel misconfig guard, link flap, storm control and others. I read the reason first, remove the cause, then shutdown and no shutdown. Automatic recovery exists (errdisable recovery cause ..., 300 seconds by default) but is off until you enable it per cause.

Go deeper

Find the reason

Output
SW1# show interfaces status err-disabled

Port         Name               Status       Reason               Err-disabled Vlans
Gi1/0/5      Desk 3.12          err-disabled bpduguard

The log line at the moment it happened is just as useful:

Output
%SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Gi1/0/5 with BPDU Guard enabled. Disabling port.
%PM-4-ERR_DISABLE: bpduguard error detected on Gi1/0/5, putting Gi1/0/5 in err-disable state

Common reasons

ReasonTrigger
bpduguardA BPDU arrived on a port with BPDU guard
psecure-violationPort security in shutdown mode saw a disallowed MAC
udldUDLD found a unidirectional link
channel-misconfigEtherChannel bundled on one side only
link-flapThe link went up and down too often
storm-controlStorm control with action shutdown
dhcp-rate-limit, arp-inspectionDHCP snooping or DAI rate limit exceeded

Automatic recovery

Cisco IOS
errdisable recovery cause bpduguard
errdisable recovery cause psecure-violation
errdisable recovery interval 300

show errdisable recovery lists enabled causes and the time left per port.

Traps

  • Bouncing the port without reading the reason. It trips again, or the loop it stopped comes back.
How did you do?