VLAN Problems
Cheat sheet · https://pcornel.dk/topic.php?topic=3824
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.
Remember
- 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.
First checks
bridge vlan show— VLAN membershipGet-VMNetworkAdapterVlan -VMName <vm>— Hyper-V VLANtcpdump -e -i <uplink> vlan— tags on uplink
Commands
tcpdump -e -i eno1 vlan
Verify in this order
VM VLAN → vSwitch tag → trunk → switch VLAN
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Virtualization Troubleshooting → VLAN Problems troubleshooting map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3824