BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Port Security

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-violation

Reference 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

What each column or field means

FieldMeaning
Statuserr-disabled: the port is shut by the switch, not by configuration.
ReasonThe 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

Try it yourself

Learn it in the CCNA path

Topic

Port Security — Limit which MAC addresses an access port accepts, choose a violation action, learn sticky addresses and recover err-disabled ports.

All 57 commands