Use it when untagged traffic crosses a trunk, when CDP reports a native VLAN mismatch, or when hardening trunks.
Native VLAN
The native VLAN is the VLAN whose frames cross an 802.1Q trunk untagged. Any untagged frame received on the trunk is placed in the native VLAN.
1. show interfaces trunk on both ends — Native vlan column identical?
2. CDP log "Native VLAN mismatch" → change one side to match.
3. Is anything sent untagged on purpose (a router's native subinterface, a hypervisor)? Keep it consistent.
4. Hardening: an unused VLAN as native on both ends.
5. show spanning-tree vlan <native> — no inconsistent ports.
native VLAN set on end A → same native VLAN on end B → untagged frames land in the same VLAN on both sides → no CDP mismatch → no STP inconsistency
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
switchport trunk native vlan <id>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 First 30 seconds Verify boundary
Immediate answer: Compare the configured and operational native VLAN on both trunk ends before changing tagging or VLAN membership.
Verification chain: local trunk mode → native VLAN on side A → native VLAN on side B → tagged/untagged behavior → STP forwarding → host traffic
Stop condition: A trunk can be operational while an asymmetric native VLAN silently places untagged traffic into different VLANs.
Step 2 Operational verification and known-good state Verify boundary
Known-good verification reads both ends of the same link. show interfaces trunk should show the intended trunk operational state, native VLAN and VLANs allowed/active/forwarding; show interfaces switchport adds administrative and operational switchport details. Verify that the native VLAN exists where required and that STP is in the expected state. Then generate one controlled untagged/native flow and confirm MAC learning occurs in the intended VLAN on both sides. Compare with one tagged VLAN so you can distinguish a general trunk failure from native-only classification. If the design tags native traffic, verify that policy explicitly rather than assuming default behavior.
Step 3 Verification and output interpretation Verify boundary
Inspect trunk output on both endpoints and compare the operational native VLAN. CDP may report a native VLAN mismatch in Cisco environments, but that message is evidence of differing local expectations rather than complete evidence of every forwarding symptom. Packet capture on the trunk can reveal whether expected traffic is tagged or untagged, while MAC-table entries may expose unexpected VLAN placement. If the trunk is up and most tagged VLANs work but untagged/native traffic behaves oddly, validate native VLAN agreement before changing unrelated routing. Confirm whether native VLAN tagging is globally or per-platform enabled when interpreting captures.
Step 4 Step-by-step troubleshooting Narrow the fault
Boundary rule: A trunk can be operational while an asymmetric native VLAN silently places untagged traffic into different VLANs.
Step 5 Verification & troubleshooting Narrow the fault
Compare show interfaces trunk and show interfaces switchport on both ends; inspect untagged/tagged packets if needed.
Step 6 Why mismatch is dangerous Narrow the fault
If switch A treats untagged traffic as VLAN 10 and switch B treats the same untagged traffic as VLAN 20, the link can silently bridge untagged traffic across different logical VLANs. Cisco discovery/logging can flag the mismatch, but the durable fix is matching intentional configuration on both ends.
Step 7 Failure signatures and troubleshooting branches Narrow the fault
When a native mismatch warning appears, first show that the two interfaces are actual peers and that no intermediate device changes tagging. Compare native VLAN values, DTP/static mode, tag-native settings and allowed VLANs. If only untagged traffic fails while tagged VLANs work, inspect the native classification and any control/management protocol assumptions. If both tagged and untagged traffic fail, broaden to trunk mode, EtherChannel consistency, VLAN pruning and STP. Avoid “fixing” the symptom by simply matching one side to the other without checking the intended design; the wrong VLAN can become consistently wrong and hide the original mistake.
Step 8 When the problem is really fixed Narrow the fault
After the smallest approved change, verify the trunk’s native behavior is symmetric with the design, the affected VLAN is active/forwarding, MAC learning lands in the correct VLAN, and the original untagged flow works. Test at least one tagged VLAN as a regression check. A clean show interfaces trunk result shows only the local switch’s reported trunk state, but it does not show the peer is configured identically or that every VLAN reaches its endpoint. No authored snippet here is a production capture, vendor-source review or verification timestamp. If the fix changed native VLAN or native tagging, verify both ends after configuration persistence and test a control protocol or management flow that actually uses the intended untagged behavior. Also inspect counters/logs for continuing mismatch indications; disappearance of the warning plus correct VLAN-local MAC learning is stronger closure than either signal alone.
Set the same native VLAN on both ends (switchport trunk native vlan <id>). A mismatch silently merges two VLANs: untagged frames from VLAN 10 on one side arrive in VLAN 20 on the other. Use an unused VLAN as native, or tag it with vlan dot1q tag native, to avoid VLAN hopping.
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.
ReferenceWhat it is1 section · depth on demand
What it is
The native VLAN on a Cisco 802.1Q trunk is the VLAN whose frames are normally transmitted untagged on that trunk. Both ends should use the same intentional native VLAN.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Use it when a design requires untagged traffic on a trunk or when troubleshooting native-VLAN mismatch messages and unexpected untagged traffic placement.
ReferenceImportant terms & boundaries6 sections · depth on demand
Key points
A native VLAN mismatch can place untagged traffic into different VLANs on each side and creates both operational and security risk. Tagged VLAN traffic may still work, so do not interpret “some traffic works” as evidence the native VLAN is correct.
In depth
The native VLAN carries untagged frames on a trunk
The Catalyst 9300 trunk guide states that the default native VLAN is VLAN 1 and can be set to any VLAN from 1 to 4094. A frame whose VLAN matches the outgoing port's native VLAN is sent untagged; untagged frames received on the trunk are placed in the native VLAN. Both ends must use the same native VLAN, and a mismatch can cause spanning-tree loops.
C9300-A(config)# interface TenGigabitEthernet1/1/1
C9300-A(config-if)# switchport trunk native vlan 998
C9300-B(config)# interface TenGigabitEthernet1/1/1
C9300-B(config-if)# switchport trunk native vlan 998
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on TenGigabitEthernet1/1/1 (998), with C9300-B TenGigabitEthernet1/1/1 (1).
%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 1 on TenGigabitEthernet1/1/1 VLAN998.
C9300-A# show interfaces trunk | include Native|Te1/1/1
Port Mode Encapsulation Status Native vlan
Te1/1/1 on 802.1q trunking 998
The messages above are what a mismatch looks like before both ends are configured.
What a mismatch does
| Effect | Reason |
|---|---|
| Untagged frames change VLAN as they cross the link | VLAN 998 on one side becomes VLAN 1 on the other |
| STP blocks the port in the affected VLANs | Per-VLAN BPDUs arrive in the wrong VLAN |
| Hosts in two VLANs share a broadcast domain | Traffic leaks between them |
Native VLAN practice
| Practice | Reason |
|---|---|
| A dedicated, unused VLAN as native | No user or management traffic is ever untagged |
| Same native VLAN on every trunk in the domain | Avoids mismatches |
| Don't put access ports in the native VLAN | Prevents double-tagging VLAN-hopping attacks |
| Different native and management VLANs | The guide warns that when they share an ID and a new VLAN is added as a trunk, both VLANs can flap between active and suspended for about 15 s |
Verification
show interfaces trunk on both ends: the Native vlan column must match. CDP reports mismatches automatically if it's enabled on the link.
Documented example, not captured output.
Quick reference
The native VLAN is the VLAN whose frames cross an 802.1Q trunk untagged. Both ends must use the same native VLAN; otherwise untagged frames land in a different VLAN on each side.
| Practice | Reason |
|---|---|
| Same native VLAN on both ends | Avoid VLAN leaking |
| Use an unused VLAN (e.g. 999) | Reduce VLAN-hopping risk |
vlan dot1q tag native (optional) | Tag native VLAN too |
| Do not put users in the native VLAN | Security |
CDP logs %CDP-4-NATIVE_VLAN_MISMATCH when the two ends disagree.
Mechanics and state ownership
An 802.1Q trunk normally carries VLAN identity in the tag for tagged traffic, but untagged frames have no VLAN field for the receiver to read. The trunk therefore needs a local rule for classifying untagged ingress, which is the native-VLAN concept on Cisco switching. If one side uses VLAN 10 as native and the other uses VLAN 20, the same untagged frame can be classified into VLAN 10 on one switch and VLAN 20 on the other. This mismatch can coexist with correctly tagged VLANs, making the trunk appear mostly healthy. Some platforms can tag the native VLAN explicitly, which changes wire behavior and must be symmetric with the design. Allowed-VLAN lists, VLAN existence and STP forwarding remain separate conditions.
State model and protocol mechanics
On an 802.1Q trunk, VLAN tags normally identify the Layer-2 domain for each frame. The native VLAN is the exception used for untagged frames by default on many Cisco configurations. An ingress untagged frame on the trunk is assigned to the local native VLAN, while egress frames from the native VLAN may be sent untagged unless native tagging is enabled. Because the tag is absent, both ends must agree on which VLAN the untagged traffic represents. A mismatch means the same untagged frame is interpreted as different VLANs on each side. Control protocols and legacy behavior can also interact with the native VLAN, so it should be treated as deliberate trunk state rather than a harmless default.
Limits and common misconceptions
A native VLAN mismatch does not necessarily bring the trunk down, which is why it can produce subtle connectivity or security problems. An untagged frame on a trunk does not identify its VLAN without knowledge of the receiving side's native configuration. Conversely, setting the same native VLAN does not show every other VLAN is allowed or forwarding. The native VLAN is not automatically a management VLAN, and using VLAN 1 as native does not make VLAN 1 special from an application perspective beyond default/control-plane conventions. Separate native classification from allowed-VLAN and STP state.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Choose a native VLAN deliberately and configure the same value on both ends of every trunk in the path. Many designs use an otherwise-unused VLAN to reduce accidental exposure of untagged user traffic, while others enable tagging of the native VLAN where supported and operationally appropriate. Avoid using the native VLAN as a substitute for correct access-port configuration. When migrating native VLANs, change both ends in a coordinated window to avoid transient mismatches. Keep the native VLAN included/active as required by platform behavior, and document any trunks that intentionally differ because such exceptions are easy to misinterpret later.
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 → 802.1Q Trunking → Native VLAN. 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%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Native VLAN · operational reference
Compact state and interpretation boundaries for fast lookup.
| Native-VLAN state | Meaning |
|---|---|
| Matching both ends | Untagged traffic classified consistently |
| Mismatch | Untagged traffic maps to different VLANs |
| Native tagging enabled | Native frames may carry 802.1Q tag |
| Trunk up | Does not validate native consistency |
Native VLAN operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Native/trunk check | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| Native VLAN both ends | Same intended VLAN / symmetric tag policy | Different VLANs or tag behavior | Peer configuration |
| Allowed/active list | Required VLAN present and active | VLAN omitted/pruned/inactive | VLAN database/trunk policy |
| STP state | Forwarding where design requires | Blocking/inconsistent | STP topology |
| MAC learning | Untagged source learned in intended VLAN | Learned in wrong VLAN | Native classification |
| Tagged control VLAN | Works independently | Also fails | General trunk/EtherChannel path |