Use it when parallel equal-cost links select an unexpected root/alternate port or when deterministic tie-breaking is required without changing path cost.
Port Priority
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.
1. Port priority (default 128, steps of 16) breaks ties between ports to the same upstream switch.
2. Set on the upstream (designated) switch.
3. Lower wins.
4. Cost is compared first.
5. Rarely needed with EtherChannel.
equal cost → sender bridge ID → sender port priority → port number
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
spanning-tree vlan <vlan-list> port-priority <value>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
Capture or inspect spanning-tree detail for both competing interfaces in the same VLAN or instance. First confirm that root ID and root path cost are truly equal; then compare upstream sender bridge information and Port IDs. Apply priority only if the intended decision reaches that tie-break stage. After convergence, verify one interface becomes the intended root/designated role and the alternative remains a valid standby rather than being inconsistent or blocked by another condition. Also inspect EtherChannel membership because STP may operate on the logical port-channel rather than its physical members.
Step 2 Verification & troubleshooting Narrow the fault
Compare detailed STP output for equal-cost links and verify which port identifier wins.
Step 3 Failure signatures and troubleshooting branches Narrow the fault
If lowering port priority has no effect, the usual reason is that an earlier STP comparison field already decides the winner. Different path costs, different upstream Bridge IDs, an inconsistent port, or a logical Port-Channel boundary can all make the knob irrelevant. A port oscillating roles may indicate topology/BPDU instability rather than a missing tie-breaker. Do not compensate for a wrong physical design by forcing priorities blindly; show exactly which BPDU field differs first, then change the smallest field that expresses the intended topology.
Step 4 When the problem is really fixed Narrow the fault
Repeat the exact equal-path scenario and verify the intended port role from both local and adjacent switch views. Confirm traffic uses the expected forwarding link, the alternate remains loop-safe, and a controlled loss of the preferred link produces the expected failover. Check that restoring the preferred link returns to the designed state without repeated topology changes. Any captured BPDU or show output is observational Evidence only if separately recorded; the Topic itself provides the decision model.
Step 5 Common mistakes Narrow the fault
- Changing port priority on the downstream switch.
- Expecting port priority to override cost.
show spanning-tree vlan <vlan>— Prio.Nbr per portshow spanning-tree interface <interface> detail— port priority and ID
ReferenceWhat it is1 section · depth on demand
What it is
Port priority is part of the STP port identifier and can participate in tie-breaking between otherwise equivalent paths.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Use it for fine-grained path selection when root path costs are equal and design requires a specific port preference.
ReferenceImportant terms & boundaries4 sections · depth on demand
Key points
Lower port identifier is preferred in relevant tie-breaks. Cost is usually the clearer primary tuning tool; port priority is a later tie-break mechanism.
In depth
Port priority breaks ties between ports that lead to the same neighbour
The Catalyst 9300 guide gives a default port priority of 128, with valid values from 0 to 240 in steps of 16. Lower values are preferred. The port ID used in STP is the priority plus the port number (shown as 128.49).
C9300-DIST1(config)# interface Te1/0/1
C9300-DIST1(config-if)# spanning-tree vlan 10-19 port-priority 64
C9300-DIST1(config-if)# interface Te1/0/2
C9300-DIST1(config-if)# spanning-tree vlan 20-29 port-priority 64
C9300-ACC1# show spanning-tree vlan 10 | 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
When port priority matters
| Situation | Effect |
|---|---|
| Two parallel links between the same two switches (no EtherChannel) | The downstream switch picks the root port by the upstream switch's port ID |
| Links to different upstream switches | No effect: cost and bridge ID decide first |
| Designated port election on a shared segment | Breaks a tie between ports of the same bridge |
The key detail
The downstream switch compares the port IDs advertised by the upstream switch. To influence which of two parallel links ACC1 uses, change the port priority on DIST1 (the sender of the BPDUs), not on ACC1.
Better alternatives
| Need | Better tool |
|---|---|
| Use both parallel links | EtherChannel (LACP): one logical link, no blocked port |
| Prefer one uplink per VLAN group | Per-VLAN cost on the downstream switch |
| Prefer one upstream switch | Root bridge placement |
Port priority is rarely the right tool in modern designs. When used, document it, because it is easy to overlook in troubleshooting.
Documented example, not captured output.
Quick reference
Port priority (0–240 in steps of 16, default 128) breaks ties between ports on the same switch when they have equal cost to the root. Note that the neighbor uses the sender's port priority, so changing it influences which port the downstream switch selects.
interface Gi1/0/1
spanning-tree vlan 10 port-priority 64
Documented example, not captured output.
Port priority is rarely needed in modern designs; EtherChannel usually replaces parallel links between the same two switches.
Mechanics and state ownership
STP port selection is based on ordered comparison of BPDU information rather than one isolated knob. Once competing paths agree on root identity and accumulated root path cost, bridge and port identifiers provide deterministic tie breakers. Port priority is encoded as part of the Port ID together with a port number/identifier, and a lower Port ID is preferred when earlier comparison fields are equal. This makes port priority useful for carefully controlled equal-cost topologies, but ineffective if the paths differ in cost or arrive from different upstream bridge IDs that decide the comparison earlier. This section is authored reference guidance for Port Priority in the STP Fundamentals context.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Switching → STP → Spanning Tree Fundamentals → Port Priority. 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%Quick lookup tables
Port Priority operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| 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 |