Pcornel
Networking · Network & Protocols › Spanning Tree Protocol Reference

STP Guard Features Reference

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

Back to the Topic

Answer

The spanning-tree guards protect against switches and links that do not behave: BPDU Guard shuts an access port that receives a BPDU, Root Guard refuses a better root on a port, Loop Guard blocks a port whose BPDUs stop arriving, and UDLD detects one-way links.

Remember

PortFast and BPDU Guard on access ports; Root Guard on downlinks towards switches that must never be root; Loop Guard on uplinks. BPDU Filter on an interface turns spanning tree off for that port. Root Guard and Loop Guard cannot share a port.

First checks

  • show spanning-tree summary — which features are on by default.
  • show spanning-tree inconsistentports — ports blocked by Root Guard or Loop Guard, with the reason.
  • show interfaces status err-disabled — ports shut by BPDU Guard or UDLD.
  • show spanning-tree interface <interface> detail — features active on one port.

Commands

show spanning-tree inconsistentports

Verify in this order

port role identified (access, downlink, uplink) → matching guard configured → trigger condition absent → port forwarding in its normal role → no inconsistent or err-disabled ports

Where it usually breaks

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

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

Confirmation

Confirm action

Continue?