Use it when configuring, checking or troubleshooting VLAN in VMware vSphere.
VLAN · VMware vSphere
Validate VLAN end-to-end across guest expectation, port group mode/ID, virtual switch handling, host uplink and physical switch trunk/access configuration.
1. VLAN modes: EST (physical switch), VST (port group tag), VGT (4095 / trunk to guest).
2. Physical ports trunk the VLANs.
3. Check native VLAN.
4. Capture with pktcap-uw.
5. Document VLAN map.
guest → port group VLAN → uplink trunk → switch
Context & applicabilityCommon mistakes · platform/version boundaries
Configured VLAN state shows intent at the virtual layer; only packet evidence shows effective tagging and forwarding across the full path.
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/vmk frame → port group VLAN policy → vSwitch/vDS → vmnic → physical switch VLAN domain → destination → return
Step 2 Effective-state and workload closure Verify boundary
Correlate guest counters/routes with virtual-port and uplink counters for the same test, validate VLAN/policy on the exact path, then repeat the original guest transaction.
Local intent: VLAN configuration in vSphere determines how VM and VMkernel traffic is tagged or presented at virtual switch/port-group boundaries before reaching the physical network.
Step 3 Branching troubleshooting Narrow the fault
Concrete boundaries: guest socket/route → virtual NIC → host/hypervisor queue → bridge/vSwitch/port group → VLAN/security policy → physical uplink → external network → return → guest workload.
Path: Virtualization → VMware vSphere → VLAN. Local intent: VLAN configuration in vSphere determines how VM and VMkernel traffic is tagged or presented at virtual switch/port-group boundaries before reaching the physical network.
Step 4 Where it fails Narrow the fault
Common failure classes are stale inventory, asynchronous task overlap, lock conflict, capacity pressure, guest-agent lag, inaccessible dependency, placement mismatch or management/runtime divergence. Also consider stale management inventory, asynchronous task overlap, host capability mismatch, guest-agent/driver lag, CPU feature masking, NUMA pressure, backing-store latency, bridge/VLAN mismatch, MTU mismatch, snapshot chains, lock ownership and partial cluster membership.
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 ≠ 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.
Get-VDPortgroup | ft Name,VlanConfiguration— VLAN per port groupesxcli network vswitch standard portgroup list— vSS VLANspktcap-uw --uplink vmnic0 --dir 1 -o - | tcpdump-uw -enr -— capture tags on uplink
ReferenceWhat it is1 section · depth on demand
In depth
In VMware vSphere, VLANs are configured on port groups. A standard switch (vSS) or distributed switch (vDS) port group with a VLAN ID tags VM traffic on the uplinks; VLAN 4095 (vSS) or VLAN trunking (vDS) passes tags through to the guest.
| Setting | Meaning |
|---|---|
| VLAN ID 1–4094 | Virtual switch tagging |
| VLAN 0 / None | No tagging (external switch tagging) |
| 4095 (vSS) / VLAN trunking (vDS) | Guest tagging |
| Private VLAN (vDS) | Isolated/community secondary VLANs |
esxcli network vswitch standard portgroup list
esxcli network vswitch dvs vmware list
esxcli network nic list
Documented example, not captured output.
vDS health check can verify that the physical switch ports carry the VLANs and MTU configured on the distributed switch — enable it when troubleshooting, then disable it again.
ReferenceWhy it matters1 section · depth on demand
Internals and state
A guest packet leaves the guest IP stack through a virtual NIC, is processed by hypervisor/host tap or synthetic device queues, traverses a bridge/vSwitch/port-group and VLAN/security policy, then reaches a physical uplink and external network.
Management-plane “connected” state does not show VLAN admission, host forwarding, offload behavior or return traffic.
Local intent: VLAN configuration in vSphere determines how VM and VMkernel traffic is tagged or presented at virtual switch/port-group boundaries before reaching the physical network.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Configured VLAN state shows intent at the virtual layer; only packet evidence shows effective tagging and forwarding across the full path.
Networking owns 802.1Q fundamentals; this topic owns VMware vSphere VLAN implementation boundaries.
A guest packet leaves the guest IP stack through a virtual NIC, is processed by hypervisor/host tap or synthetic device queues, traverses a bridge/vSwitch/port-group and VLAN/security policy, then reaches a physical uplink and external network. Management-plane “connected” state does not show VLAN admission, host forwarding, offload behavior or return traffic. Close with Correlate guest counters/routes with virtual-port and uplink counters for the same test, validate VLAN/policy on the exact path, then repeat the original guest transaction. and state what the evidence does not show.
Mechanics
Follow the path in order: management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back. It can coexist with stale placement, missing guest drivers, wrong VLAN/bridge mapping, inaccessible backing storage, CPU incompatibility or a workload that cannot use the resource.
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 VMware vSphere → VLAN. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere.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
VMware vSphere → VLAN reference map
Fast operational boundaries and evidence limits for VMware vSphere → VLAN.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Inventory/config | Expected VMware vSphere → VLAN object, policy or configuration is present | Configured state does not prove effective runtime behavior |
| Runtime/control plane | Relevant vCenter/ESXi object, service or task state matches the intended condition | Management state does not prove storage/network/guest outcome |
| Dependency/data path | Required compute, storage, network, device and guest dependencies are healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after observation or change | Required for end-to-end closure |