Pcornel
Windows · Windows Networking

VLAN

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

Back to the Topic

Answer

Windows VLAN handling is the endpoint/platform configuration that places a Windows physical or virtual adapter on an IEEE 802.1Q VLAN or exposes VLAN-aware virtual networking, depending on NIC driver, Hyper-V/vSwitch and platform design.

Remember

  • VLAN is fundamentally a Layer-2 network concept; Windows owns only its endpoint/platform configuration here.
  • A host-side VLAN setting must match switch/trunk/access design.
  • Not every Windows NIC exposes the same VLAN controls; driver/vendor and virtualization layer matter.
  • Correct VLAN membership does not prove IP configuration or routing.
  • Hyper-V virtual NIC/switch VLAN policy can differ from physical NIC advanced properties.

First checks

  • Get-NetIPConfiguration — addresses, gateway and DNS per interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /all — full IP configuration

Verify in this order

VLAN tag set on NIC/vNIC → switch trunk → VLAN gateway

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Windows Networking → VLAN reference map

BoundaryMeaningEvidence limit
Access/untaggedSingle VLAN delivered untagged to endpoint contextswitch and endpoint expectations must align
802.1Q tagCarries VLAN ID in framemay be handled by NIC/vSwitch
Physical NICWire attachmentdriver offload can obscure capture view
Hyper-V vNICVirtual endpoint policyseparate from host physical NIC
IP subnetLayer-3 config after VLANnot proof of Layer-2 membership

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

Confirmation

Confirm action

Continue?