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

Learning

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

Back to the Topic

Answer

Learning is the transitional state in which the bridge can learn source MAC addresses but still does not forward ordinary user traffic through the port. It gives the forwarding database time to align with the new active topology before data forwarding. In rapid point-to-point convergence the state may be brief, so a single snapshot can miss it entirely.

Remember

In Learning the port fills the MAC table but still drops user frames. With RSTP on point-to-point links the proposal/agreement handshake skips the wait; a port that sits in LRN for 15 seconds (after 15 seconds discarding) is falling back to timers — shared/half-duplex link, a neighbour running legacy STP, or a host port without PortFast.

First checks

show spanning-tree vlan 10 → LRN and the Type column (P2p, Shr, P2p Peer(STP)). show spanning-tree vlan 10 interface <if> detail → link type and whether PortFast/edge is active. show interfaces <if> → duplex; half duplex makes the link shared.

Commands

show spanning-tree vlan <vlan>
show interfaces <port>
show spanning-tree vlan <vlan> detail
show spanning-tree interface <id> detail
clear spanning-tree detected-protocols

Verify in this order

link up → discarding → P2p link with RSTP neighbour: proposal/agreement → forwarding in under a second → otherwise forward-delay timers: 15 s discarding + 15 s learning → forwarding

Where it usually breaks

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

Learning operational reference

BoundaryKnown-good for LearningSuspicious signatureNext proof
IntentMatches RSTP learning transition designConfiguration differs from peer/designCompare effective config
Control stateStable expected role/route/member statea port oscillating through Learning because topology keeps changing, prolonged transition caused by non-edge/shared behavior, or application loss wrongly blamed on a state that was only transientInspect 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=1034

Confirmation

Confirm action

Continue?