Windows 10 Hyper-V Default Switch IP Assignment

18,306

Solution 1

The hyper-v "Default Switch" does indeed assign IP addresses to guests that are connected to it.

The issue I was having seems to be related to the configuration of my workstation. When this question was first posted the switch was not assigning an IP. It nows does; it is a corporate workstation and I suspect it was behind on patches and had some restrictions set.

Solution 2

Hyper-V create a NAT based virtual switch called Default Switch and will connect virtual machines to that switch by default. However, you can still use the old way and set networking the way you do for traditional virtual machines.

More info here

Share:
18,306

Related videos on Youtube

ssc327
Author by

ssc327

Updated on September 18, 2022

Comments

  • ssc327
    ssc327 over 1 year

    I am new to hyper-v and have used VirtualBox in the past. I am running Windows 10 version 1709. I created a new RHEL 7.5 VM and connected it to the default switch.

    When I try to use my network adapter from the VM it does not connect.

    Does the 'Default Switch' assign IP addresses to machines that connect to it?

    • Biswapriyo
      Biswapriyo almost 6 years
      Create another virtual switch and check the option 'Allow management OS....'. See this tutorial.
    • ssc327
      ssc327 almost 6 years
      Thank you @Biswapriyo. I tried this and while it worked it dramatically reduced the speed of my adapter to the point that it was practically unusable. Creating your own switch also seems unnecessary with the addition of the default switch and I would like to understand how to use it.
    • ssc327
      ssc327 almost 6 years
      My question is above. Does the hyper V default switch provide DHCP services? I know that in general the virtual switches do not, but this seems to be a very special switch.
  • ssc327
    ssc327 over 5 years
    How does it change the guest's IP? Where does it get the IP that it sets?
  • ssc327
    ssc327 over 5 years
    Thank you Joe, the link is great. It states 'Yes, the default switch does automatically assign an IP to the virtual machine (DNS and DHCP)' which is the first place that I have seen such a statement made. Have you tried this in practice? When I use the default switch, my VM does not get an IP assigned.
  • Joe
    Joe over 5 years
    I cannot give you a definite answer for all OS but it is doing it for Kali, Win 7 and Clear Linux, it even allows you to share your host's internet access without any other manipulations, but the latter does not apply to Kali.
  • ssc327
    ssc327 over 5 years
    Thank you Joe, I am trying to use RHEL, have you had any experience with that?
  • Joe
    Joe over 5 years
    Not really, did you try to ping the host, it might work but won't allow internet connectivity in some cases (like kali), then you'll have to use the external switch. Maybe this will help access.redhat.com/documentation/en-us/red_hat_enterprise_lin‌​ux/…