Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Native VLAN mismatch

Direct answer

A native VLAN mismatch means the two ends of a trunk use different native VLANs. Untagged frames leave in one VLAN and arrive in another, merging the two VLANs.

When to use this

Use it when CDP logs "Native VLAN mismatch", STP marks ports type-inconsistent, or hosts appear in the wrong VLAN.

First 30 seconds

1. show interfaces trunk on both ends — compare the Native vlan column.

2. show cdp neighbors <if> detail / log — native VLAN mismatch message?

3. show spanning-tree inconsistentports — ports blocked as type-inconsistent?

4. Set switchport trunk native vlan <id> to the same value on both ends.

5. Inconsistency clears; traffic in both VLANs works.

Operational verification

both ends trunking → same native VLAN → VLAN allowed on both ends → VLAN exists on both switches → VLAN forwarding in STP → frames tagged and delivered

Evidence · next step

Align the intentional native VLAN on both ends and re-verify; capture tagged/untagged traffic if symptoms remain.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandshow interfaces trunk
Scope / prerequisiteUse it when CDP logs "Native VLAN mismatch", STP marks ports type-inconsistent, or hosts appear in the wrong VLAN.
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show interfaces trunk

Look first: trunk status, native VLAN, allowed/active/forwarding VLAN lists

Healthy: Expected trunk is up and VLAN is allowed, active and forwarding.

Warning: VLAN missing from any stage, native mismatch or non-trunk interface.

Does not prove: VLAN allowed on trunk does not prove endpoint MAC/L3 reachability.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Known-good, broken and when it is fixed Verify boundary

Known-good is an intentional, matching native VLAN on both trunk peers with target control/data traffic stable. Broken state is a reproducible mismatch tied to untagged traffic symptoms or control-plane warnings. The limit of what it shows: a mismatch warning shows configuration disagreement, not necessarily the observed application failure; matching native VLAN does not show allowed-VLAN or STP forwarding. Close by repeating the original workload and verifying VLAN-specific state.

Step 2 Native failure isolation and next-check logic Narrow the fault

Confirm both interfaces are the same physical/logical link, then compare operational trunk mode and native VLAN on both peers. Inspect logs/CDP mismatch messages and identify which traffic is untagged. If only one VLAN/service fails, verify whether it depends on native VLAN rather than assuming the mismatch explains all symptoms. On port-channels, compare the port-channel configuration and member consistency. Correct one side to the intended design and immediately re-read both peers.

Step 3 Common mistakes Narrow the fault
  • Different native VLANs on each end.
  • Native VLAN carrying user traffic.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

state · 1
Command lookup Jump straight to Cisco syntax
Key points

The trunk stays up, so the fault is easy to miss. Spanning tree (PVST+) blocks the port in the affected VLANs as type-inconsistent. Fix by setting the same native VLAN on both ends.

Key checks
  • show interfaces trunk — trunk ports, mode, encapsulation, native VLAN, allowed / active / forwarding VLANs.
  • show interfaces <if> switchport — administrative and operational mode, negotiation, native VLAN.
  • show dtp interface <if> — DTP state and negotiation.
  • show spanning-tree interface <if> — per-VLAN STP state on the trunk.
  • show cdp neighbors <if> detail — the neighbour's port, and native VLAN mismatch messages.
ReferenceHow it works1 section · depth on demand

How it works

The 802.1Q native VLAN carries untagged frames on a trunk. A mismatch means each side assigns received untagged traffic to a different VLAN, potentially affecting control protocols, management or untagged hosts while other tagged VLANs still work. CDP may report the mismatch, but the operational impact depends on whether untagged traffic is actually used. Native VLAN is a per-link boundary and must match across all logical members of an EtherChannel.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Native VLAN mismatch: untagged frames land in different VLANs on each side

On an 802.1Q trunk, frames in the native VLAN are sent untagged. If the two ends use different native VLANs, untagged frames from switch A's native VLAN arrive in switch B's native VLAN. That silently merges two VLANs. The Catalyst 9300 trunk guide states that the native VLAN must be the same on both ends of an 802.1Q trunk, and that a mismatch can cause spanning-tree loops. The default native VLAN is VLAN 1.

C9300-A# show logging | include NATIVE_VLAN
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on TenGigabitEthernet1/1/1 (99), with SW-B TenGigabitEthernet1/1/1 (1).
C9300-A# show interfaces Te1/1/1 trunk | include Native|Te1/1/1
Port        Mode         Encapsulation  Status        Native vlan
Te1/1/1     on           802.1q         trunking      99
C9300-B# show interfaces Te1/1/1 trunk | include Te1/1/1
Te1/1/1     on           802.1q         trunking      1

Effects

EffectDetail
VLAN leakingHosts in VLAN 99 on A and VLAN 1 on B end up in one broadcast domain
STP inconsistencyPVST+ detects the mismatch and can block the port (*PVID_Inc state)
Intermittent connectivitySome traffic uses the native VLAN (management, untagged devices)
C9300-B# show spanning-tree inconsistentports
Name                 Interface                Inconsistency
-------------------- ------------------------ ------------------
VLAN0001             TenGigabitEthernet1/1/1  Port VLAN ID Mismatch

Fix

Set the same native VLAN on both ends in the same change window:

C9300-B(config)# interface Te1/1/1
C9300-B(config-if)# switchport trunk native vlan 99

Prevention

PracticeReason
A dedicated, unused native VLAN on all trunksNo user traffic depends on untagged frames
vlan dot1q tag native where supportedTags native VLAN frames too, preventing double-tagging attacks
CDP or LLDP on trunksMismatch messages appear immediately
Templates for trunk configurationBoth ends configured from the same standard

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

The native VLAN is the one VLAN whose traffic crosses a trunk without a tag. If the two ends disagree on which VLAN is native, untagged frames leave one switch in one VLAN and arrive at the other in a different VLAN — silently joining two networks that should be separate. CDP usually reports the mismatch, which makes it easy to spot.

Native VLAN mismatch: each side sends untagged frames in its own native VLAN, so untagged traffic silently crosses into the wrong VLAN.

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Te1/1/1 (999), with SW2 Te1/1/1 (1).
show interfaces trunk | include Native|Te1/1/1
interface Te1/1/1
 switchport trunk native vlan 999

Also a security issue (VLAN hopping via double tagging uses the native VLAN). Set the same unused native VLAN on both sides, or tag the native VLAN (vlan dot1q tag native).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → 802.1Q Trunking → Trunk Troubleshooting → Native VLAN mismatch. 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%
Confirmation

Confirm action

Continue?