STP/RSTP Flag Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=289
Answer
The flags byte in a BPDU carries the topology-change bits and, in RSTP, the sending port's role and state and the proposal and agreement bits of the rapid handshake.
Remember
A topology change makes every switch flush learned MAC addresses, which causes flooding. In RSTP only a non-edge port going forwarding triggers one — so end-device ports must be edge ports. A normal designated port sends 0x3C.
First checks
show spanning-tree vlan <id> detail | include topology|from|occurred— count, time and source port of topology changes.show spanning-tree vlan <id>— roles, states and edge ports.- Capture filter
stp— the flags decoded per BPDU.
Commands
show spanning-tree detail
Verify in this order
edge ports on all end devices → only inter-switch link changes raise TC → TC flag propagates on non-edge ports → MAC tables flushed once → counter stable until the next real change
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=289