question

WonderWoman-6288 avatar image
0 Votes"
WonderWoman-6288 asked AlexZhu-MSFT edited

Hyper-v Networking Problem

Hello,

I am going through certification school and I am having problems with a lab and my tutor and instructors cannot figure the problem out either. I am using Hyper-v as opposed to Virtual Box because my Win 10 Pro machine was having problems with the VB and was already configured to do Hyper-v so we chose to use HV instead of VB.

The lab I am doing is having us create 2 VMs and get them able to ping each other but I am not able to do that. We have created a virtual switch and even but when doing that my actual real Ethernet adapter would not show up to select it. The only option available was “default switch” and that never worked. If a switch did show up it was grayed out and said a Broadcom which my machine does not have, my machine has a Realtek but that would never show up. I tried putting a checkmark on the Hyper-v in the config properties of the Ethernet adapter within Win 10 Pro. Every time I try to confirm the checkmark on that item it tells me that it will disable that exact feature/protocol I am attempting to enable, and it will not enable it.

I went ahead and uninstalled/deleted all of the failed virtual switches and started over fresh. For some reason this time when I created a new switch I selected “internal” at the start of the process and clicked next and my actual Realtek adapter finally showed up but I still cannot ping both to both of the VMs from my physical machine, nor between the two VMs to each other.

I do not understand what I am doing wrong or missing and can use all the help possible. If there are screen shots that anyone needs please let me know as I am happy to provide them; just tell me what and where.

Thank you in advance for all assistance and suggestions.


Sincerely,


Wonder Woman

windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WonderWoman-6288 avatar image
0 Votes"
WonderWoman-6288 answered

One of the other teachers figured out what was not configured correctly. We turned off the firewalls on both VMs and unchecked "Enable virtual LAN identification" on the network adapter on both VMs.......IT WORKED! YAHOOOOO! Thank you for your help I truly appreciate it.90799-vm-a-network-adapter-settings.jpg90892-vm-b-network-adapter-settings.jpg



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi,
In scenario 1, do you mean that when you try to create an external switch, the physical adapter of the host doesn’t show?
You can see your virtual switch settings in virtual switch manager:
90228-image.png
90292-image.png
In scenario 2, when you tried to create a new internal switch, did you configure the IP addresses right? You must provide the IP addresses to the VMs, Hyper-V does not. Would you mind providing the screenshot of your IP configuration? You can use cmd let ipconfig /all to get all the details:
90293-image.png
Please note that Microsoft would never ask clients for their personal information. If you want to provide us with screenshots, do remember that you cover your personal data.

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.



image.png (22.1 KiB)
image.png (70.3 KiB)
image.png (151.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WonderWoman-6288 avatar image
0 Votes"
WonderWoman-6288 answered

Hello, Thank you for your reply. I am providing you with multiple screen shots as requested including some extra that may or may not be helpful. I will let you decide if they are.

I really do appreciate your help. Even my teachers cannot figure out why I cannot get the VMs to communicate.

Sincerely,

Wonder Woman90417-hyper-v-mgr-and-virtual-switch.jpg



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi,
May I see the IP addresses configuration of your virtual switch? You can use cmd let ipconfig /all to get all the details:
90694-image.png

If the IP address is not configured correct, you can find the IP address configuration in network and sharing center:
90695-image.png

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.




image.png (206.2 KiB)
image.png (87.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WonderWoman-6288 avatar image
0 Votes"
WonderWoman-6288 answered WonderWoman-6288 edited

90808-ipconfig-all-vm-b.jpgCertainly - for good measure I did the IPConfig /all on VM A and VM B. Here are the screen shots.90786-ipconfig-all-vm-a.jpg



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WonderWoman-6288 avatar image
0 Votes"
WonderWoman-6288 answered WonderWoman-6288 edited

90872-new-realtek-vs.jpg90863-vm-a-new-ip-config-all-and-ping.jpg90864-vm-b-new-ip-config-all-and-ping.jpgI noticed that there was a mistake in the IP address for both machines, it was 200.10.1.1 and 200.10.1.2 (also DNS) which should have been 200.100.1.1 and 200.100.1.2 which I have corrected. I now get Destination host unreachable when I ping from either VM. Here's the new IPConfig /All and ping for both VMs. I am having problems uploading the new images - getting "file is too small" I will try to post images again later.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.