0

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?

  • Create another virtual switch and check the option 'Allow management OS....'. See this tutorial. – Biswapriyo Aug 6 '18 at 16:35
  • 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 Aug 6 '18 at 17:17
  • 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 Aug 6 '18 at 17:48
0

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

  • How does it change the guest's IP? Where does it get the IP that it sets? – ssc327 Aug 23 '18 at 20:40
  • 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. – ssc327 Aug 26 '18 at 16:31
  • 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. – Joe Aug 26 '18 at 17:30
  • Thank you Joe, I am trying to use RHEL, have you had any experience with that? – ssc327 Aug 26 '18 at 17:35
  • 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_linux/… – Joe Aug 26 '18 at 17:50
0

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.