Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

VLAN Problems

Direct answer

Define exactly one tagging contract for the path: guest frame tagging state → virtual port policy → virtual switch/bridge handling → host uplink/trunk/native VLAN → upstream switching → destination VLAN.

When to use this

Use it when the symptom is “VLAN Problems”: work through the layers in order and stop at the first one that fails.

First 30 seconds

1. VLAN problems: wrong tag, missing on trunk, native mismatch, double tagging.

2. Check VM config.

3. Check physical switch trunk.

4. Capture tags.

5. Fix and test.

Operational verification

VM VLAN → vSwitch tag → trunk → switch VLAN

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common VLAN mistakes
  • VLAN tagged in the guest and on the port group (double tagging).
  • VLAN not allowed on the physical switch trunk to every host.
  • Native VLAN mismatch between host uplink and switch.
  • Proxmox bridge not VLAN-aware, or VLAN outside bridge-vids.
  • Different port group VLAN IDs on different hosts (vSS).

Capture on the host uplink (tcpdump -e -i eno1 vlan) to see actual tags.

Common traps

A configured VLAN value shows intended policy, not the tag actually carried or accepted at each adjacent boundary.

Platform / version applicability
virtualization
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.

Platformvirtualization
Scope / prerequisiteUse it when the symptom is “VLAN Problems”: work through the layers in order and stop at the first one that fails.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

1 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 Verification path Verify boundary

Guest frame → vNIC tagging policy → virtual port/switch/bridge → host uplink → physical trunk/access policy → destination VLAN → return path

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.

observation · 1
Key points
  • VLAN ID configured ≠ packets are tagged correctly on the wire.
  • Guest tagging and hypervisor port tagging can double-tag or strip unexpectedly if both are assumed to own the same boundary.
  • An access/native VLAN concept on one platform may not map one-to-one to another hypervisor implementation.
  • Link Up and MAC learning ≠ correct VLAN membership or bidirectional forwarding.
Key checks
  • bridge vlan show — VLAN membership
  • Get-VMNetworkAdapterVlan -VMName <vm> — Hyper-V VLAN
  • tcpdump -e -i <uplink> vlan — tags on uplink
ReferenceImportant terms & boundaries3 sections · depth on demand

What this shows and what it does not

A configured VLAN value shows intended policy, not the tag actually carried or accepted at each adjacent boundary.

In depth

Two ways to tag VM traffic on Proxmox VE

DesignHost configVM config
VLAN-aware bridge (recommended)bridge-vlan-aware yes, bridge-vids 2-4094 on vmbr0net0: virtio,bridge=vmbr0,tag=20
One bridge per VLANvmbr20 on bond0.20net0: virtio,bridge=vmbr20 (no tag)

The Proxmox host administration chapter shows VLAN-aware bridge examples with bridge-vlan-aware yes and bridge-vids 2-4094.

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

Verify the host side

root@pve1:~# bridge vlan show dev bond0 | head
port      vlan-id
bond0     1 PVID Egress Untagged
          2-4094
root@pve1:~# bridge vlan show dev tap101i0
tap101i0  20 PVID Egress Untagged

The tap shows VLAN 20 as PVID/untagged towards the guest; the bond carries 2–4094 tagged towards the switch.

Symptom → cause

SymptomCause
VM works on one node, not after migrationSwitch port of the target node does not trunk VLAN 20
No traffic in any VLAN except untaggedBridge not VLAN-aware, or bridge-vids missing the VLAN
Double-tagged framesTag set on net0 and VLAN interface configured inside the guest
Management lost after enabling VLAN-awareHost IP on vmbr0 now in VLAN 1/native — put management on vmbr0.<mgmt-vlan>
Only some VLANs workSwitch trunk allowed list incomplete

Switch side (Cisco IOS example)

interface Port-channel10
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30
 switchport trunk native vlan 999

Compare the switch's allowed list with the VLANs actually used by VMs on every node — not just one.

*The VLAN-aware bridge settings and switch trunk configuration above are illustrative examples, not captured from a lab or production host.*

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

Method

VLAN problems in virtual environments typically come from mismatched tagging:

SymptomCause
VM works on host A, not after migration to host BVLAN missing on host B's trunk
VM gets IP from wrong subnetUntagged/native VLAN mismatch
No traffic at all with VLAN setDouble tagging (guest tags + vSwitch tags) or VLAN not allowed
Only some VLANs work on a bondLACP hashing to switch members with different allowed VLANs
bridge vlan show
tcpdump -e -ni bond0 vlan and host 10.0.20.15
show interfaces trunk     # physical switch
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 docvirtualization current

Authoritative/upstream documentation reviewed for bounded claims in Virtualization Troubleshooting → VLAN Problems. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/docs.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
vm vlan problemsvirtualization vlan issuevlan tagging vmvirtual switch vlan troubleshooting
Embedded reference data

Quick lookup tables

Virtualization Troubleshooting → VLAN Problems troubleshooting map

Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → VLAN Problems.

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → VLAN Problems boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof
Confirmation

Confirm action

Continue?