Pcornel
Networking · Switching › STP › Spanning Tree Fundamentals

Designated Port

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

Back to the Topic

Answer

A designated port is the one port on each link (segment) that offers the lowest cost to the root. It forwards on that segment. All root bridge ports are designated.

Remember

On a link between two switches, the end on the switch with the lower root path cost is designated; on a tie, the lower bridge ID wins. Access ports to end devices are designated because nothing competes for them.

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>
show spanning-tree

Verify in this order

both switches send BPDUs on the link → lower root path cost wins → tie → lower bridge ID → winner designated and forwarding → other end root or alternate

Where it usually breaks

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

Designated Port operational reference

Election elementPreferred valueFailure clueNext boundary
Root IDCommon intended rootDifferent roots per sideBPDU/VLAN scope
Root path costLower wins designated contestUnexpected lower pathCost/topology
Bridge IDLower breaks cost tiePriority/MAC surpriseBridge config
Port IDFinal local tie-breakDifferent port winsPort priority/number
User forwardingOne designated pathBoth/none forward unexpectedlySTP control/L2

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

Confirmation

Confirm action

Continue?