STP Enhancements
Cheat sheet · https://pcornel.dk/topic.php?topic=610
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
| Feature | Intended use | Failure/protection indication |
|---|---|---|
| PortFast | True edge port rapid forwarding | Edge assumption only; STP still exists |
| BPDU Guard | Edge port must not receive BPDUs | Commonly err-disabled after BPDU |
| Root Guard | Downstream port must not become root path | Root-inconsistent |
| Loop Guard | Protect against lost expected BPDUs on non-designated path | Loop-inconsistent |
| BPDU Filter | Suppress BPDUs in specific designs | Can 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