Forum Discussion

PieroB83's avatar
PieroB83
Occasional Reader
Dec 11, 2025

Issue with Hyper-V VM on Tagged VLAN – Traffic Reaches Local Hosts but Not External Networks

Hi everyone, I’m having an issue getting a Hyper-V VM to work correctly when using a tagged VLAN interface.

I have a test VM configured with a trunk port and a tagged VLAN.

Here is the configuration I’m using:

 

Set-VMNetworkAdapterVlan -VMName "testvlan" -Trunk -NativeVlanId 2 -AllowedVlanIdList "4"

 

The strange part is this:

 

 When the VM is on VLAN 4 (tagged), it can reach other resources on the same VLAN as long as those resources are running on the same Hyper-V host.

But if the target resource is outside the Hyper-V host, the VM cannot reach it at all.

The hardware vendor has already ruled out any issue with the top-of-rack switches interconnecting the hosts.

 

 If I reconfigure the VM’s network adapter in access mode on the same VLAN, then all traffic works normally and the VM can reach resources outside the host without any problem.

 

So it seems that traffic leaves the host correctly only when the adapter is in access mode, not when using a trunk with VLAN tagging. Has anyone seen this behavior before or has suggestions on what to check next?

No RepliesBe the first to reply

Resources