Pcornel
Virtualization · VMware vSphere

VLAN

Cheat sheet · https://pcornel.dk/topic.php?topic=3779

Back to the Topic

Answer

Validate VLAN end-to-end across guest expectation, port group mode/ID, virtual switch handling, host uplink and physical switch trunk/access configuration.

Remember

  • VLAN ID configured ≠ frames are correctly forwarded end-to-end.
  • A working management VLAN ≠ VM or vMotion VLAN works.
  • Port group connectivity ≠ physical trunk allows the VLAN.
  • Same VLAN number ≠ same Layer-2 domain across disconnected fabrics.

First checks

  • Get-VDPortgroup | ft Name,VlanConfiguration — VLAN per port group
  • esxcli network vswitch standard portgroup list — vSS VLANs
  • pktcap-uw --uplink vmnic0 --dir 1 -o - | tcpdump-uw -enr - — capture tags on uplink

Verify in this order

guest → port group VLAN → uplink trunk → switch

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.

VMware vSphere → VLAN reference map

BoundaryWhat to verifyEvidence limit
Inventory/configExpected VMware vSphere → VLAN object, policy or configuration is presentConfigured state does not prove effective runtime behavior
Runtime/control planeRelevant vCenter/ESXi object, service or task state matches the intended conditionManagement state does not prove storage/network/guest outcome
Dependency/data pathRequired compute, storage, network, device and guest dependencies are healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after observation or changeRequired for end-to-end closure

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3779

Confirmation

Confirm action

Continue?