Windows 10 Hyper-V "Default Switch" question

Garsha Rostami 126 Reputation points
2020-09-29T11:27:26.74+00:00

Hi,

The VMs on Windows 10 Hyper-V set to use the default switch on Windows 10 Hyper-V receive dynamic IP addresses. There is no setting to set it to static IPs.

To get around this issue I have created an internal switch and set up a NAT to provide VMs external access to the wider LAN and everything works but came across a Hyper-V on Windows 2016 article that stated that on Windows only a single NAT is supported. Two questions:

1- Is is still the case on Windows 10?

2- When I issue "Get-NetNat" command, only my custom NAT shows up. I don't see the one which I assumed to be behind the "default switch" showing up. What am I missing? Or is my assumption incorrect?

Thanks!

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

Accepted answer
  1. Garsha Rostami 126 Reputation points
    2020-09-30T20:21:37.447+00:00

    I received confirmation from the product team that support for multi NATs have been added to Hyper-V. Thanks everyone.

    2 people found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Xiaowei He 9,936 Reputation points
    2020-09-30T08:07:08.417+00:00

    Hi,

    Multiple NAT networks are not supported on windows 10 too.

    Besides, as I learned, we need to use an Internal Virtual switch to create NAT with powershell command. So the NAT may not behind the default virtual switch.

    Please refer to the following article for detailed information:

    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network

    Thanks for your time!
    Best Regards,
    Anne

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

    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

  2. Garsha Rostami 126 Reputation points
    2020-09-30T11:23:10.227+00:00

    Hi @Xiaowei He ,

    Thank you for response, as stated I have already created a switch and bound it to a new custom switch to allow static IPs. The question was now there seem to be three NATS running on my machine, one behind the default switch, one behind my custom switch, and one behind WSL switch and was wondering how is that possible if a single switch is still the limit.

    Anyway on twitter I connected a resource who used to be on the Hyper-V team and she has forwarded my question to an engineer on the product team. I'll post his response here once he responds. Thanks.

    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.