VLAN
Cheat sheet · https://pcornel.dk/topic.php?topic=3071
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 interfaceGet-NetAdapter— adapters, status and link speedGet-NetRoute -AddressFamily IPv4— routes and metricsTest-NetConnection <host> -Port <p>— ping, route and TCP port testipconfig /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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Access/untagged | Single VLAN delivered untagged to endpoint context | switch and endpoint expectations must align |
| 802.1Q tag | Carries VLAN ID in frame | may be handled by NIC/vSwitch |
| Physical NIC | Wire attachment | driver offload can obscure capture view |
| Hyper-V vNIC | Virtual endpoint policy | separate from host physical NIC |
| IP subnet | Layer-3 config after VLAN | not 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