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?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,613 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 33,301 Reputation points Microsoft Vendor
    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