Port Priority
Cheat sheet · https://pcornel.dk/topic.php?topic=1024
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 portshow 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
| Check | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| Root ID | Equal on candidates | Different root info | Earlier comparator |
| Path cost | Equal when tie expected | Different costs | Cost tuning |
| Sender BID | Equal/expected | One superior bridge | Upstream topology |
| Port ID | Lower intended tie-breaker | Wrong port wins | Port priority |
| Failover | Alternate takes over cleanly | Loop/outage/oscillation | Topology stability |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1024