Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

VLAN

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

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

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse this topic when a Windows host has link but no expected subnet access, VLAN ID settings differ between NIC/virtual …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Terminology layer

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.

Aliases that resolve here
windows vlanwindows nic vlan idhyper v vlan windows networkingwindows vlan troubleshooting
Embedded reference data

Quick lookup tables

Windows Networking → VLAN reference map

Fast lookup boundaries for Windows Networking → VLAN.

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
Confirmation

Confirm action

Continue?