Use Windows as an Ethernet switch

SYC 21 Reputation points
2021-11-23T14:42:58.31+00:00

I've got a Windows 11 PC running several Hyper-V VMs. There are multiple NICs on the PC, one of which is connected to the router, and I would like to have another NIC to provide a wired connection to my LAN for my other devices, i. e., I would like to turn my PC into an Ethernet switch.

151846-img-20211123-234010.jpg

I don't want an extra layer of NAT, so ICS is not an option. Here are my attempts:

  1. Network Bridge, which seemed not compatible with Hyper-V and caused a green (because of Windows Insider) screen.
  2. Open vSwitch for Windows, with both LBFO Teaming (according to the OVS documentation) and SET (as LBFO is deprecated), with which I successfully added the two NICs into a bridge, but no packets are forwarded between the NICs.

I believe this could be achieved with vSwitches, as it is competely feasible on Linux, but I'm stuck. Your help is appreciated.

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-11-23T18:17:42.693+00:00

    A pfsense virtual router may be another option. Also note; that many consumer-grade network adapters do a poor job of hosting an external virtual switch so expect some slowness with whatever you end up doing.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


3 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-11-23T14:48:24.35+00:00

    You can simply add a new external vSwitch. When you create a new external vSwitch the internet protocols are removed from the adapter and the Hyper-V Extensible Switch protocol is added turning that physical port into a multi-port virtual switch.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Anonymous
    2021-11-23T16:07:25.287+00:00

    Ok, well that has nothing much really to do with hyper-v. As to windows as a router to can create a new separate virtual machine for that purpose.
    https://www.dell.com/support/kbdoc/en-us/000118763/configuring-windows-server-2012-r2-as-a-router

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Limitless Technology 39,916 Reputation points
    2021-11-23T19:54:36.567+00:00

    Hello,

    I would recommend the next article that follow the process to create the NIC Teaming for a vm Host.

    https://learn.microsoft.com/en-us/windows-server/networking/technologies/nic-teaming/create-a-new-nic-team-on-a-host-computer-or-vm

    Hope this helps with your query,

    ------
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

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