Designated Port
Cheat sheet · https://pcornel.dk/topic.php?topic=1020
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 element | Preferred value | Failure clue | Next boundary |
|---|---|---|---|
| Root ID | Common intended root | Different roots per side | BPDU/VLAN scope |
| Root path cost | Lower wins designated contest | Unexpected lower path | Cost/topology |
| Bridge ID | Lower breaks cost tie | Priority/MAC surprise | Bridge config |
| Port ID | Final local tie-break | Different port wins | Port priority/number |
| User forwarding | One designated path | Both/none forward unexpectedly | STP 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