Use it when the symptom is “VLAN Problems”: work through the layers in order and stop at the first one that fails.
VLAN Problems
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.
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.
VM VLAN → vSwitch tag → trunk → switch VLAN
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
A configured VLAN value shows intended policy, not the tag actually carried or accepted at each adjacent boundary.
Operational reference
Fast context before you go deeper.
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 Verification path Verify boundary
Guest frame → vNIC tagging policy → virtual port/switch/bridge → host uplink → physical trunk/access policy → destination VLAN → return path
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.
- 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.
bridge vlan show— VLAN membershipGet-VMNetworkAdapterVlan -VMName <vm>— Hyper-V VLANtcpdump -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
| Design | Host config | VM config |
|---|---|---|
| VLAN-aware bridge (recommended) | bridge-vlan-aware yes, bridge-vids 2-4094 on vmbr0 | net0: virtio,bridge=vmbr0,tag=20 |
| One bridge per VLAN | vmbr20 on bond0.20 | net0: 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
| Symptom | Cause |
|---|---|
| VM works on one node, not after migration | Switch port of the target node does not trunk VLAN 20 |
| No traffic in any VLAN except untagged | Bridge not VLAN-aware, or bridge-vids missing the VLAN |
| Double-tagged frames | Tag set on net0 and VLAN interface configured inside the guest |
| Management lost after enabling VLAN-aware | Host IP on vmbr0 now in VLAN 1/native — put management on vmbr0.<mgmt-vlan> |
| Only some VLANs work | Switch 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.*
Method
VLAN problems in virtual environments typically come from mismatched tagging:
| Symptom | Cause |
|---|---|
| VM works on host A, not after migration to host B | VLAN missing on host B's trunk |
| VM gets IP from wrong subnet | Untagged/native VLAN mismatch |
| No traffic at all with VLAN set | Double tagging (guest tags + vSwitch tags) or VLAN not allowed |
| Only some VLANs work on a bond | LACP 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
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 Virtualization Troubleshooting → VLAN Problems. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%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.
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
Virtualization Troubleshooting → VLAN Problems troubleshooting map
Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → VLAN Problems.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Symptom/scope | Exact failing test, affected VM/host/cluster and incident time are defined | Symptom classification does not identify root cause |
| Observed boundary | Configuration, runtime and counters/logs for this Virtualization Troubleshooting → VLAN Problems boundary are time-correlated | One healthy or failed status does not prove adjacent dependencies |
| Adjacent dependency | The next host, storage, network, device, guest or cluster dependency is tested independently | Local success does not prove end-to-end health |
| Verification | The original workload test succeeds after one controlled change and remains healthy in regression checks | Temporary recovery alone is not durable proof |