Skip to content

My Hyper-V VMs don't see VLAN-tagged networks.

On the host the physical NIC or virtual switch must be on a trunk, and on the VM NIC you set the right VLAN ID. Forgetting one of the two is the most common mistake.

Try this first

  1. 1Check the physical switch port: trunk mode with the correct VLANs allowed. No native/untagged VLAN if it would cause confusion.
  2. 2On the Hyper-V host: New-VMSwitch -SwitchType External, bound to the correct physical NIC. No VLAN config at vSwitch level, that lives per VM.
  3. 3On the VM NIC: Set-VMNetworkAdapterVlan -VMName 'vm' -VMNetworkAdapterName 'NIC' -Access -VlanId 20.
  4. 4Test: inside the VM run ipconfig, ping the default gateway of VLAN 20. If it fails check Get-NetAdapter and Get-VMNetworkAdapterVlan.
  5. 5For the management OS in a VLAN: Set-VMNetworkAdapterVlan on the management OS adapter. Careful: misconfigured and you lose admin access.

When to bring us in

For cluster hosts or SCVMM, configure Logical Networks and VM networks consistently on every host. Otherwise migrations fail when a VM moves from host A to a host B that lacks the SCVMM vNet.

See also

None of the above fits?

Describe your situation below. We pass your input plus the steps you already saw to our AI and return tailored next-step advice. If it's too risky to DIY, we'll say so.

Who are you?

For the AI question we need your email and company, so we can follow up if the AI gets stuck, and to prevent abuse.

Limited to 2 questions per hour and 5 per day, kept lean so the AI stays useful. For more, contacting us directly works better for you and us.

Or skip the DIY entirely

Our Managed IT clients do not look these things up. One point of contact, a fixed monthly price, resolved within working hours.