Pcornel
Networking · Switching › STP › RSTP — 802.1w › Rapid PVST+

Discarding

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

Back to the Topic

Answer

RSTP collapses legacy Blocking, Listening and Disabled behavior into the Discarding state for user data. A discarding port does not forward data frames and does not learn source MAC addresses into the forwarding database, while the control plane can still process BPDUs needed for topology decisions. A healthy alternate or backup port can remain Discarding indefinitely.

Remember

Discarding replaces 802.1D Blocking and Listening; Cisco output still prints BLK. The port drops user frames and learns no MAC addresses but keeps processing BPDUs. BLK with role Altn or Back is normal; BKN* means a guard or inconsistency is holding the port — read the Type column.

First checks

show spanning-tree vlan 10 → Role and Type next to BLK/BKN*. show spanning-tree inconsistentports → Root, Loop, PVID or Type inconsistency. show spanning-tree blockedports → every blocked port per VLAN in one list.

Commands

show mac address-table interface <interface>
Display MAC addresses learned on one interface.
show spanning-tree vlan <vlan>
show spanning-tree inconsistentports
show spanning-tree blockedports

Verify in this order

port up → role decided from BPDUs → Altn/Back: discarding by design → Desg/Root: discarding only during sync, then forwarding → still BKN: guard or inconsistency (Type column) → fix cause → FWD

Where it usually breaks

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

Discarding operational reference

BoundaryKnown-good for DiscardingSuspicious signatureNext proof
IntentMatches RSTP discarding state designConfiguration differs from peer/designCompare effective config
Control stateStable expected role/route/member statea port stuck Discarding when it should be root/designated, a topology-change loop after forcing it forward, or operators treating intentional loop prevention as an outageInspect protocol/RIB detail
ForwardingExpected egress/Port-Channel/VLAN pathState exists but traffic path disagreesFIB/MAC/adjacency
ClosureOriginal test passes for explained reasonSymptom merely moved or was bypassedRegression test

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

Confirmation

Confirm action

Continue?