how can i set up virt network on windows to to act like vmware player machines using nat

Creative-Mechanic 21 Reputation points
2021-07-17T23:15:53.413+00:00

when running vmware player i could run 3 virt machines at same time all using nat connection to host .
I could use vpn, WIFI, or ethernet connections for the host.
I could also change the ip on my host ethernet to connect to a PLC while also using wifi to connect to the plant network or internet .
this would allow the VMs to got to plant resources, and the static network of the plc at the same time

i want to do the same with Hyper-V . Im having problems understanding how i can set up the nat, virt switch and virt network adapters to allow this.
I also need to be able to access plant or internet via windows 10 as if hyper-v wasnt on the pc at all .

I can do this all with vmware but want to do same with hyper-v

thanks,

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,710 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,348 questions
{count} votes

Accepted answer
  1. Anonymous
    2021-07-18T01:24:30.937+00:00

    what about when i would need to access both networks from the vm

    Add a second network adapter to the virtual machine connected to the second vSwitch. The host does not need to be involved.

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

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-07-17T23:23:27.427+00:00

    On windows 10 the default switch is a NAT switch. From what you describe the simplest solution may be to create two external vSwiches. Plug one into plant network and other into the other PLC network then connect the virtual machines to one or the other as needed.
    https://blogs.technet.microsoft.com/jhoward/2008/06/17/hyper-v-what-are-the-uses-for-different-types-of-virtual-networks/

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


  2. Yuhan Deng 3,766 Reputation points Microsoft Vendor
    2021-07-19T02:31:48.59+00:00

    Hi,
    I believe Patrick‘s got the solutions,thus I’ll just add some reference articles to this case.
    For NAT network configuration you can refer to this:
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network
    And for virtual network you can refer to this:
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network

    Thanks for your time.
    Best Regards,
    Danny

    -----------------------------

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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Anonymous
    2021-07-23T13:37:45.023+00:00

    Just checking if there's any progress or updates?

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

    0 comments No comments

  4. Creative-Mechanic 21 Reputation points
    2021-07-25T22:35:33.547+00:00

    thank you both ... I tried the dual adapter but didnt get to try it on the plc network yet ... I since have been told that by using the default switch it uses Nat and any connectivity thats available to the host like vmware does ... i moved to default switch and can get to the new and hope to be checking out this week with plc connectivity at same time

    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.