Pcornel
Networking · Switching › STP › Spanning Tree Fundamentals

Alternate Port

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

Back to the Topic

Answer

An alternate port (RSTP/MST) receives a better BPDU from another switch than the one it would send, but is not the root port. It discards and is a ready backup path to the root.

Remember

In classic 802.1D the same port is called blocking. With RSTP an alternate port moves to forwarding almost immediately when the root port fails. A port that should be alternate but forwards creates a loop — often a unidirectional link or BPDU filter.

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 <id>

Verify in this order

superior BPDU received on a second uplink → port not chosen as root port → role alternate → state discarding → becomes root port if the current one fails

Where it usually breaks

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

Alternate Port operational reference

Alternate checkKnown-goodFailure signatureNext boundary
Protocol modeRSTP-derived instanceClassic terminology onlySTP mode
Normal role/stateAlternate / discardingDisabled, designated, unknownBPDU/topology
Root relationSame intended rootDifferent/rootless viewBPDU scope
FailoverPromotes rapidly when root path failsNo/slow transitionRSTP handshake/link
RecoveryReturns to designed backup stateOscillation/churnCost/topology

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

Confirmation

Confirm action

Continue?