BPDU
Cheat sheet · https://pcornel.dk/topic.php?topic=1025
Answer
A BPDU (Bridge Protocol Data Unit) is the spanning-tree message switches exchange. Configuration BPDUs carry the root ID, root path cost, sender bridge ID and port ID; topology change notifications report changes.
Remember
The root originates BPDUs every 2 seconds (hello); with RSTP every switch sends its own. A port that stops receiving BPDUs assumes it is designated and may forward — the cause of many loops. BPDU guard err-disables a port that receives any BPDU; BPDU filter stops sending and receiving them.
First checks
show spanning-tree vlan <id>— root ID, local bridge ID, and each port's role, state and cost.show spanning-tree root— the root bridge, root cost and root port per VLAN.show spanning-tree vlan <id> detail— BPDUs sent and received, topology changes and their source.show spanning-tree summary— mode, enabled features and port counts per state.show spanning-tree inconsistentports— ports blocked by root guard, loop guard or type inconsistency.
Commands
show spanning-tree
Verify in this order
root and switches send BPDUs on designated ports → neighbours receive them → best BPDU per port stored → roles computed → topology changes signalled with TCN/TC flags
Where it usually breaks
physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path
BPDU operational reference
| BPDU field/state | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| Root ID | Intended bridge | Unexpected/oscillating root | Priority / rogue bridge |
| Root path cost | Consistent with topology | Sudden lower/higher path | Link cost/topology |
| Sender bridge/port | Expected neighbor | Unknown/unexpected sender | L2 neighbor |
| BPDU presence | Periodic/expected | Missing on active link | Filtering/guard/link |
| Resulting role | Matches superior info | Calculation mismatch | Tie-break/state |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1025