Pcornel
Networking · Switching › STP

STP Enhancements

Cheat sheet · https://pcornel.dk/topic.php?topic=610

Back to the Topic

Answer

STP enhancements are Cisco features that protect and speed up spanning tree: PortFast and BPDU guard on host ports, BPDU filter, root guard on ports towards switches that must never become root, loop guard and UDLD against unidirectional links.

Remember

Typical design: access ports get PortFast + BPDU guard; distribution downlinks get root guard; uplinks between switches get loop guard (or UDLD). Do not combine root guard and loop guard on the same port. BPDU filter on a port disables STP there — avoid it unless you know why.

First checks

  • show spanning-tree summary — features enabled globally (PortFast default, BPDU guard default, loop guard default).
  • show spanning-tree interface <if> detail — PortFast, BPDU guard/filter, root guard, loop guard on the port.
  • show spanning-tree inconsistentports — ports held by root guard or loop guard.
  • show interfaces status err-disabled — ports shut by BPDU guard.
  • show errdisable recovery — whether and when err-disabled ports recover.

Verify in this order

port role known (host port, downlink, uplink) → matching feature applied → feature acts on unexpected BPDUs or missing BPDUs → port protected (err-disabled or inconsistent) instead of looping

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

STP protection feature map

FeatureIntended useFailure/protection indication
PortFastTrue edge port rapid forwardingEdge assumption only; STP still exists
BPDU GuardEdge port must not receive BPDUsCommonly err-disabled after BPDU
Root GuardDownstream port must not become root pathRoot-inconsistent
Loop GuardProtect against lost expected BPDUs on non-designated pathLoop-inconsistent
BPDU FilterSuppress BPDUs in specific designsCan hide STP control information; high misuse risk

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=610

Confirmation

Confirm action

Continue?