Pcornel
Networking · Switching › STP › Spanning Tree Fundamentals

Port Priority

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

Back to the Topic

Answer

Port priority does not choose the root bridge. It influences port-selection tie breaks through the Port ID when superior BPDU information is otherwise equal.

Remember

STP compares superior information in a fixed sequence. Port priority is late in that sequence; changing it cannot override a better root ID, lower root path cost or superior sender bridge ID.

First checks

  • show spanning-tree vlan <vlan> — Prio.Nbr per port
  • show spanning-tree interface <interface> detail — port priority and ID

Commands

spanning-tree vlan <vlan-list> port-priority <value>
Changes the port-ID priority component used in STP tie-breaks.

Verify in this order

equal cost → sender bridge ID → sender port priority → port number

Where it usually breaks

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

Port Priority operational reference

CheckKnown-goodFailure signatureNext boundary
Root IDEqual on candidatesDifferent root infoEarlier comparator
Path costEqual when tie expectedDifferent costsCost tuning
Sender BIDEqual/expectedOne superior bridgeUpstream topology
Port IDLower intended tie-breakerWrong port winsPort priority
FailoverAlternate takes over cleanlyLoop/outage/oscillationTopology stability

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

Confirmation

Confirm action

Continue?