Pcornel
Networking · Switching › STP › Spanning Tree Fundamentals

Root Port

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

Back to the Topic

Answer

A root port is the one port on each non-root switch with the lowest total cost to the root bridge. It forwards and points towards the root.

Remember

Lowest root path cost wins; ties are broken by the lowest neighbour bridge ID, then the lowest neighbour port priority and port number. The cost is the sum of port costs on the way to the root, counted on the receiving ports. The root bridge has no root port.

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 [vlan vlan-id]
Inspect STP root, port roles and states.
show spanning-tree vlan <vlan>

Verify in this order

BPDUs received on each uplink → advertised root cost + local port cost → lowest total wins → tie-breakers if equal → root port forwards

Where it usually breaks

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

Root Port operational reference

Root-port factorKnown-good interpretationSuspiciousNext check
Root IDSame intended root for all candidatesCandidates see different root contextBPDU/VLAN/instance scope
Root path costIntended path is superiorUnexpected manual/speed-derived costInterface/port-channel cost
Sender Bridge IDUsed when earlier factors tieUnexpected upstream switch winsTopology + priority
Port ID / priorityFinal deterministic tie-breakerHidden local priority changeInterface STP config
Role/stateRoot + forwardingInconsistent/blockingGuard/loop/link evidence

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

Confirmation

Confirm action

Continue?