PVID Inconsistency Explained: Why Spanning Tree Blocks One VLAN on a Trunk
Every port has a Port VLAN ID — the VLAN untagged traffic on that port belongs to. On a trunk that is the native VLAN. PVST+ writes the VLAN a BPDU came from inside the BPDU itself, so a receiving switch can tell when a BPDU that started life in one VLAN arrives in a different one. That is a PVID inconsistency: the two ends of the trunk disagree about which VLAN untagged traffic belongs to, and spanning tree blocks both VLANs on that port — logging %SPANTREE-2-BLOCK_PVID_LOCAL and %SPANTREE-2-BLOCK_PVID_PEER — until the ends agree again. This guide explains the check, the block, and the fix that does not require taking the trunk down.
The short answer
What is a PVID inconsistency? PVID means Port VLAN ID — the VLAN a port believes untagged traffic belongs to. On a trunk, that is the native VLAN. Cisco PVST+ puts the originating VLAN number inside each spanning-tree BPDU (a BPDU is spanning tree's hello message). If a switch receives a BPDU on a different VLAN than the VLAN written inside it, the two ends of the link must disagree about the native VLAN: a frame that left one switch untagged as one VLAN arrived and was filed into another. The receiving switch logs %SPANTREE-2-BLOCK_PVID_LOCAL: Blocking GigabitEthernet1/0/49 on VLAN0101. Inconsistent port type. — or the local/peer wording in the checks below — and blocks that VLAN on that port until the disagreement is fixed.
Picture two post rooms at opposite ends of a corridor, handling trays of unlabelled letters. Each post room has a rule: an unlabelled tray goes into the pigeonhole named on the wall. If the left room's wall says unlabelled means Accounts and the right room's wall says unlabelled means Sales, every unlabelled tray crossing the corridor silently changes department. Now imagine each tray also carries a small stamped slip inside saying which department it started in. The right room opens a tray, reads Accounts on the slip, looks at its own wall — Sales — and instead of filing it wrong, it stops accepting unlabelled trays from that corridor and raises an alarm. That stamped slip is the VLAN field inside a PVST+ BPDU, the stopped corridor lane is the per-VLAN block, and the alarm is the log message.
How the switch can tell — the BPDU carries its home VLAN
An ordinary data frame that crosses a trunk untagged carries no clue about which VLAN the sender meant. A PVST+ BPDU is different: Cisco's PVID troubleshooting document explains that the PVST+ BPDU contains a VLAN number, and that number is what lets PVST+ switches detect when the rule of a consistent native VLAN has not been respected. The check is simple. A BPDU for the native VLAN is sent untagged. The receiving switch files any untagged frame into its own native VLAN — its PVID for that port. It then compares the VLAN it filed the BPDU into with the VLAN number written inside the BPDU. If they match, the two ends agree. If they differ, the BPDU was originated in one VLAN and received in another: a PVID inconsistency, by definition.
No guesswork and no neighbour gossip: the evidence travels inside the BPDU itself, which is why this detector fires even through devices that merely flood the BPDU along.
What gets blocked — and what keeps working
Cisco's document is precise about the consequence: when a misconfiguration is detected, the corresponding ports are put into a PVID-inconsistent or type-inconsistent state, which effectively blocks the traffic in the corresponding VLAN on the corresponding port. Three words there do the heavy lifting. Corresponding VLAN: this is not the whole trunk going down. In the classic native mismatch, you will usually see a pair of messages — one blocking the local native VLAN (inconsistent local vlan) and one blocking the peer VLAN named inside the BPDU (inconsistent peer vlan) — because the disagreement implicates both VLANs: each side's native traffic would land in the other's VLAN. Every other VLAN on the trunk, carried tagged and unambiguous, keeps forwarding. That is the signature symptom: the trunk is up, most VLANs work, and exactly the native VLAN (and its mirror on the other side) is dead across that one link.
The type variant. The sample message in the site's decoder entry ends with the words Inconsistent port type, and that is the sibling fault: a PVST+ BPDU received on a non-802.1Q trunk port — for example, one end configured as a trunk and the other left as an access port. The PVID of an access port is its single access VLAN, so a per-VLAN BPDU arriving there cannot belong. Same family, same protective block, same cure: make the two ends the same kind of port with the same settings. Cisco groups both under the same troubleshooting document because the detection logic and the fix are the same.
Why block at all? Because the alternative is worse in both directions. If the switch forwarded anyway, the two native VLANs would leak into each other — broadcasts, DHCP and discovery traffic crossing between networks that were separated on purpose. And in topologies where a non-PVST+ device sits between Cisco switches and floods BPDUs through, a native mismatch can leave a VLAN with no blocking port at all — a live forwarding loop. Cisco's document gives exactly that scenario as the reason the inconsistency state exists: the receiving switch blocks the port for the affected VLAN and prevents the loop. The block is a small, named, reversible outage chosen over a silent leak or a storm.
How this differs from the CDP warning you may also see
The companion guide, Native VLAN Mismatch Explained, covers the underlying disagreement in full — how untagged frames land in the wrong VLAN, frame by frame. Read the two log families as different levels of the same event. CDP compares notes with its direct neighbour and logs a warning, %CDP-4-NATIVE_VLAN_MISMATCH: informative, nothing blocked, traffic already leaking. Spanning tree's PVID check reads the BPDU itself and acts: the affected VLANs are blocked on the port. One tells you, the other stops it. If you only ever saw the CDP line, check for the spanning-tree lines before assuming nothing was blocked — and if you only saw the spanning-tree lines, the CDP line will usually be nearby in the log confirming which two VLAN numbers disagree.
A warning with no block, and a block that proves the warning was real. Neither is fixed by silencing it.
Checks, in order
Step 1 — list every inconsistent port, not just the one in the log line. Run show spanning-tree inconsistentports. The site's decoder entry for %SPANTREE-2-BLOCK_PVID_LOCAL names this as the key check: it shows every port spanning tree is currently blocking for consistency reasons, so a second trunk with the same slip shows up before it surprises you.
Step 2 — compare both ends of the link, in full. Run show interfaces trunk on both switches and compare three things, not one: the mode (trunk at both ends — a mismatch here is the type inconsistency), the native VLAN (identical numbers), and the allowed VLAN list (a VLAN allowed on one end only produces its own hard-to-see failures). Write down which end disagrees with the intended design; the log message alone does not tell you which side is the wrong one.
Step 3 — confirm the symptom matches. The affected VLANs should be exactly the two native VLANs (local and peer), with other VLANs forwarding over the same trunk. If a tagged VLAN is also down, something else is wrong as well — keep investigating rather than forcing this diagnosis to fit.
The fix — align both ends, without taking the trunk down
Make both ends identical: same mode, same native VLAN, same allowed VLANs. The native VLAN change itself is one per-interface command — switchport trunk native vlan <id> — applied to the end (or ends) that disagree with the intended design. You do not shut the trunk to do this, and you should not: the trunk stays up, and every tagged VLAN keeps forwarding throughout. Only native VLAN traffic on that link is in play, and it is already blocked — that is the fault you are fixing. Production order that keeps it clean: decide the intended native VLAN first (ideally an unused VLAN with no devices in it, as the native VLAN guide recommends), change the far end and the near end in the same change window so the mismatch window is seconds rather than days, then verify. Once the configurations are consistent, spanning tree automatically unblocks the interfaces — Cisco's guidance says exactly that — and you confirm it with show spanning-tree inconsistentports coming back empty and the log showing the consistency restored. If the port stays blocked, inconsistent BPDUs are still arriving: another device on the segment, or the other end of a different trunk, is still disagreeing — the inconsistentports list and a fresh look at the log will say where.
What not to do
Do not disable spanning tree, do not disable the consistency detection, and do not move the problem by deleting one of the VLANs unless that VLAN is genuinely unused — each of those removes the guard, not the disagreement, and the leak or loop the guard was preventing becomes possible again. Do not fix only the end you happen to be logged into and walk away: a native VLAN is a pair property, and a one-ended change is how most mismatches were created in the first place — a migration finished on one switch, a replacement switch installed on defaults at the other end. The durable prevention is the native VLAN guide's advice: pick one standard native VLAN for every trunk (or tag the native VLAN), put it in the trunk template, and treat any BLOCK_PVID or NATIVE_VLAN_MISMATCH line in the log as a ticket the day it appears, not background noise.
Try it yourself
When the log line is what you have, open the decoder entry for %SPANTREE-2-BLOCK_PVID_LOCAL and work its checks in order, then read the underlying leak in Native VLAN Mismatch Explained. To spot a native VLAN disagreement across a whole network before spanning tree has to, map the switches and links from their own configurations with the free Config-to-Topology Mapper, and compare a pair of trunk configurations side by side with the free Network Config Verifier.
Fact-check sources: the definition of a PVID inconsistency (a PVST+ BPDU received on a different VLAN than it was originated), the type inconsistency (a PVST+ BPDU received on a non-802.1Q trunk), the PVST+ BPDU containing a VLAN number that lets switches detect a broken consistent-native-VLAN rule, the consequence (ports put into a PVID- or type-inconsistent state, effectively blocking traffic in the corresponding VLAN on the corresponding port, with the inconsistent state also referred to as broken in some outputs), the loop-prevention scenario through a non-PVST+ cloud, and native VLAN BPDUs being sent untagged — Cisco, Troubleshoot Spanning Tree PVID- and Type-Inconsistencies, opened via search result this run. The sample message (%SPANTREE-2-BLOCK_PVID_LOCAL: Blocking GigabitEthernet1/0/49 on VLAN0101. Inconsistent port type.), its meaning, its three causes (native VLAN mismatch; one end trunk and the other access; a VLAN allowed on one end only), its checks (show interfaces trunk on both ends; show spanning-tree inconsistentports) and its fix (make both ends identical — same mode, same native VLAN, same allowed VLANs — after which the port unblocks itself once spanning tree re-checks; never disable spanning tree protections) are quoted from the site's own decoder entry, sourced from Cisco spanning-tree PortFast/PVID documentation. The automatic unblocking once native VLAN configurations are consistent is also stated in Cisco's error-message guidance for %SPANTREE-2-BLOCK_PVID_LOCAL, surfaced in the same search results.
Related guides
- PVID stands for Port VLAN ID: the VLAN a port files untagged traffic into. On an access port it is the access VLAN; on an 802.1Q trunk it is the native VLAN. A PVID inconsistency happens when a PVST+ BPDU is received on a different VLAN than the one it was originated in — proof the two ends of a link disagree about the native VLAN, or that one end is not a trunk at all.
- The block is per-VLAN, not per-port, and it usually names two VLANs: the switch blocks its own native VLAN on the port (BLOCK_PVID_LOCAL, inconsistent local vlan) and the peer VLAN carried inside the BPDU (BLOCK_PVID_PEER, inconsistent peer vlan). Tagged traffic in other VLANs keeps crossing, which is why the symptom is one or two VLANs dead over a trunk that otherwise looks up.
- The fix is alignment, and the port heals itself: make both ends identical — same mode, same native VLAN, same allowed VLANs — and spanning tree automatically unblocks the port once inconsistent BPDUs stop arriving. Changing the native VLAN is a per-interface command that does not require shutting the trunk; only the native VLAN traffic on that link is affected while you change it.
- Never fix this by disabling spanning tree or its consistency checks. The block is the only thing standing between a one-line configuration slip and two VLANs leaking into each other — or a forwarding loop with no blocking port left to stop it.