Hyper-V not forwarding VLan tags to virtual machine

Jason Doleshall 0 Reputation points
2024-02-25T20:10:20.83+00:00

I am attempting to setup a virtual firewall on the Hyper-V guest. The guest is connected to 1 virtual Nic but the vm has multiple vlans attached to that interface. The host seems to be removing the tag from the traffic either as it leaves the vm or as it returns. I have other guest that use the same trunk from the physical switch utilizing the vlan IT in the hyper-v settings and they work fine it just seems to be when passing the tagged traffic to and/or from the vm. I have set the virtual adapters as trunk but the traffic still doesn't seem to make it there does anyone have any insight?

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-02-27T07:19:46.9733333+00:00

    Hi Jason, Thanks for your post. Generally speaking, starting in Windows 11, version 22H2, Hyper-V firewall is a network firewall solution that enables filtering of inbound and outbound traffic to/from containers hosted by Windows, including the Windows Subsystem for Linux (WSL). Please refer the following article to see how to configure Hyper-V firewall rules and settings using PowerShell or configuration service provider (CSP). Create and configure a virtual switch with Hyper-V | Microsoft Learn Best Regards, Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Mike Russo 16 Reputation points
    2025-12-03T16:35:54.0666667+00:00
    Set-VMNetworkAdapterVlan -Trunk -NativeVlanId 0 -AllowedVlanIdList 1-100 -VMName "Test-vm"
    

    I had to set the native VLAN to 0 before untagged traffic was allowed to get into my guest, along with tagged traffic that I handle on the guest. (my guest is Linux though)

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.