Learning
Cheat sheet · https://pcornel.dk/topic.php?topic=1034
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> detailshow spanning-tree interface <id> detailclear 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
| Boundary | Known-good for Learning | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches RSTP learning transition design | Configuration differs from peer/design | Compare effective config |
| Control state | Stable expected role/route/member state | a 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 transient | Inspect protocol/RIB detail |
| Forwarding | Expected egress/Port-Channel/VLAN path | State exists but traffic path disagrees | FIB/MAC/adjacency |
| Closure | Original test passes for explained reason | Symptom merely moved or was bypassed | Regression test |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1034