Use this topic when a Windows host has link but no expected subnet access, VLAN ID settings differ between NIC/virtual switch/switch port, a VM sees the wrong network, or tagged/untagged expectations are unclear.
VLAN
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.
1. VLAN ID on the adapter: Get-NetAdapterAdvancedProperty -RegistryKeyword VlanID.
2. Hyper-V VM: Get-VMNetworkAdapterVlan.
3. Switch port is a trunk allowing the VLAN?
4. Address in the VLAN's subnet.
5. Ping the VLAN gateway.
VLAN tag set on NIC/vNIC → switch trunk → VLAN gateway
Correlate with switch VLAN/port evidence and packet/counter observations, then verify IP subnet state.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not set a NIC VLAN ID simply because the switch port is in that VLAN; access ports commonly deliver traffic untagged. Do not mix physical-NIC and Hyper-V VLAN settings without a clear ownership model.
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
Document VLAN ID and tag/untag role at each boundary, then compare switch configuration and a controlled packet/counter test. Only after Layer 2 is confirmed should IP/routing be investigated.
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 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.
ReferenceWhat it is1 section · depth on demand
Core model
Windows VLAN configuration is implementation-specific because tagging may occur in a NIC driver, team or virtualization switch. The correct troubleshooting question is therefore where the VLAN boundary is supposed to live.
ReferenceImportant terms & boundaries2 sections · depth on demand
Windows boundary
Map the packet path from Windows interface to switch. A duplicated tag or missing tag can result when both host and switch/virtualization layers are configured with incompatible assumptions.
In depth
VLAN tagging on Windows hosts:
Set-NetAdapterAdvancedProperty -Name Ethernet -RegistryKeyword VlanID -RegistryValue 20 # driver-level tag (single VLAN)
Add-NetLbfoTeamNic -Team Team1 -VlanID 30 -Name 'Team1 - VLAN 30' # team interface per VLAN
Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName Mgmt -Access -VlanId 10 # Hyper-V host vNIC
The switch port must be a trunk carrying those VLANs. Driver support for VLAN IDs varies; on Hyper-V hosts tag at the vSwitch/vNIC level instead.
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 Windows Networking → VLAN. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · 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
Windows Networking → VLAN reference map
Fast lookup boundaries for Windows Networking → VLAN.
| 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 |