By connecting to Hyper-v Default Switch the VM can't ping it's IP

2023-08-30T05:33:13.01+00:00

Environment

Host Windows versionUser's image

Hyper-V manager version

User's image

Hyper-V configuration:

User's image

User's image

User's image

User's image

Issue:

My VM is not able to ping the IP of the connected Hyper-V switch

User's image

It seems incredible because the VM is configured to be connected to the Default Switch and they have the same network section and also in one LAN.

Because of this, the VM is also not able to access internet via the NAT supplied by Default Switch.

Could you help here? Thanks

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,706 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Ian Xue 36,751 Reputation points Microsoft Vendor
    2023-08-30T07:07:32.37+00:00

    Hi,

    Please check the Windows Defender Firewall rules make sure ICMP is allowed. You can follow the steps in the below link.

    https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/create-an-inbound-icmp-rule

    To access internet, you have to change the type of the virtual switch to external or no physical NIC is connected to the virtual switch.

    Best Regards,

    Ian Xue


    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.


  2. 2023-09-05T01:49:01.9533333+00:00

    I create an external virtual switch and connect my VM to it, the result is the same.

    User's image

    User's image

    Below is the virtual switch in the host PC:

    User's image

    User's image

    Below is the network card in the VM connected to the External switch

    User's image

    User's image

    0 comments No comments

  3. 2023-10-10T02:34:04.44+00:00

    Any further support from Microsoft QA team?

    0 comments No comments

  4. Anonymous
    2023-10-10T02:39:26.9566667+00:00

    What is the result?

    tracert 8.8.8.8
    

  5. 2023-10-13T03:08:53.89+00:00

    I get the result User's image

    with below configuration:

    User's image

    User's image

    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.