Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Alternate Port · Spanning Tree Fundamentals

Direct 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.

When to use this

Use it to see where the loop is broken and which uplink takes over if the root port fails.

First 30 seconds

1. show spanning-tree vlan <id> — which port is Altn BLK?

2. Is it the uplink the design wants blocked?

3. Expected but missing → check BPDUs are received: show spanning-tree interface <if> detail.

4. Test: shut the root port — the alternate takes over quickly.

5. Restore and confirm the original roles return.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Scope / prerequisiteUse it to see where the loop is broken and which uplink takes over if the root port fails.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification and known-good state Verify boundary

Verify the device is actually running an RSTP-derived mode for the instance in question, then identify the current root bridge and root port. On the candidate backup interface, confirm the switch reports alternate role and discarding state and that it receives BPDUs representing a viable path toward the same root. Record path cost and neighbor identity. For a controlled redundancy test, fail the current root path and observe whether the alternate assumes root-port/forwarding responsibility within the expected convergence behavior, then restore and confirm the intended steady-state topology returns without excessive topology churn. This section is authored reference guidance for Alternate Port in the STP / RSTP context.

Step 2 Verification & troubleshooting Narrow the fault

Check the alternate port peer/path, root path cost and topology. Investigate only if the chosen path conflicts with design or traffic should use a different tree.

Step 3 Failure signatures and troubleshooting branches Narrow the fault

If a physically redundant link is not alternate, determine whether the VLAN is allowed, BPDUs are received, the link is in the same STP instance and the neighbor actually provides another root path. If the port is disabled/inconsistent due to guard features, fix that separate boundary. If failover is slow, verify protocol mode, link type, proposal/agreement conditions and whether another event forces legacy convergence behavior. If the alternate becomes preferred in steady state, compare root path costs and tie-breaks rather than assuming role instability. If both redundant links forward simultaneously, treat it as a loop-risk control-plane incident. This section is authored reference guidance for Alternate Port in the STP / RSTP context.

Step 4 When the problem is really fixed Narrow the fault

Closure requires the intended alternate to be present and discarding during normal operation, transition to forwarding/root-port function during a bounded failure of the primary root path, carry the original traffic, and return to the designed topology when the primary recovers. Check MAC flushing/relearning and one neighboring VLAN/instance for unexpected churn. Do not claim rapid convergence from configuration alone; the failover observation must actually be performed before it becomes runtime Evidence. This section is authored reference guidance for Alternate Port in the STP / RSTP context.

Step 5 Common mistakes Narrow the fault
  • Treating alternate ports as faults.
  • Removing alternate paths.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand

What it is

An alternate port is an RSTP role providing a redundant path toward the root through a different bridge. It normally remains discarding until needed.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use it as evidence that redundancy exists without creating a forwarding loop.

ReferenceImportant terms & boundaries4 sections · depth on demand

Key points

Alternate is a role, not a fault. A healthy redundant topology is expected to have some non-forwarding ports when multiple Layer 2 paths exist.

In depth

The alternate port is a blocked backup path to the root

An alternate port receives a better BPDU from another bridge than the one it would send, but is not the root port. It discards traffic and is ready to take over. The Catalyst 9300 guide lists alternate ports as blocked, providing a backup path to the root.

C9300-ACC1# show spanning-tree vlan 20 | begin Interface
Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- -------------
Te1/1/1             Root FWD 2         128.49   P2p
Te1/1/2             Altn BLK 2         128.50   P2p
C9300-ACC1# show spanning-tree blockedports
Name                 Blocked Interfaces List
-------------------- ------------------------------------
VLAN0020             Te1/1/2

Rapid failover

With Rapid PVST+ (the default on Catalyst 9300) or MST, when the root port fails, the alternate port becomes the new root port almost immediately, without waiting for the 15-second forward delay timers. That is the main benefit over classic 802.1D.

EventRapid PVST+ behaviour
Root port link downAlternate port becomes root port and forwards immediately
Indirect failure upstreamDetected through BPDUs; proposal/agreement re-converges
Alternate port stops receiving BPDUs (unidirectional link)Without loop guard it could become designated and forward: a loop

Protect alternate ports with loop guard

The optional-features guide describes loop guard as stopping alternate and root ports from becoming designated after a unidirectional link failure. Enable it on all point-to-point links between switches:

C9300(config)# spanning-tree loopguard default
C9300# show spanning-tree summary | include Loopguard
Loopguard Default            is enabled

Design notes

  • With two uplinks to two distribution switches, one uplink per VLAN is alternate. Spread VLANs over both by placing the root of different VLANs on different distribution switches.
  • If you'd rather use both uplinks fully, route at the access layer or use an EtherChannel to a stacked or StackWise Virtual pair. Then STP has no loop to block.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

An alternate port is a blocked port that offers a backup path to the root bridge, through a different switch than the root port. In RSTP and MST it can take over immediately if the root port fails, without waiting for timers.

show spanning-tree vlan 10
! Interface  Role Sts Cost  Prio.Nbr Type
! Gi1/0/49   Root FWD 4     128.49   P2p
! Gi1/0/50   Altn BLK 4     128.50   P2p

Documented example, not captured output.

A backup port (role Back) is similar but provides a redundant path to a segment the switch already connects to, which only happens with shared media or hubs.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

RSTP improves convergence by explicitly identifying redundant topology roles. An alternate port is a port that offers another path toward the root bridge but loses to the current root port because it receives inferior-for-local-use yet still superior external root information from a different bridge. It stays in discarding state so it cannot form a loop, but it is already recognized as a viable replacement path. When the current root port fails, the alternate can transition much faster than classic 802.1D would by waiting through listening/learning timers, provided the topology and protocol conditions support rapid convergence. The term therefore encodes both current loop prevention and prequalified redundancy. This section is authored reference guidance for Alternate Port in the STP / RSTP context.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → Spanning Tree Fundamentals → Alternate Port. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

Alternate Port operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

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
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Field-by-field state interpretation

In show spanning-tree vlan <id>, an alternate port shows Role Altn and Status BLK. It has a path to the root that is worse than the current root port and becomes the new root port immediately if the root port fails.

Confirmation

Confirm action

Continue?