how to change connection type of default switch on Hyper-v

knight xu 1 Reputation point
2020-10-15T14:31:04.667+00:00

32660-untitled-picture.pngHi Team,

How to change the connection type of default switch on Hyper-v?
last time, I opened Hyper-v, all virtual machines could access to physical network and go through Google.com.
But this time, I opened one of my virtual machines, I found that

  1. Network shows that "Internet Access", but I could not visit google or any other websites.
  2. Network shows "domain network"
  3. After I check the switch of Hyper-v, the connection has been changed into "Internal". I could make sure that it was "External" last time.
  4. My PC runs Hyper-v with domain joint and VPN enabled.

How could I make the virtual machines on Hyper-v could access the Internet again?

Thank you

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

6 answers

Sort by: Most helpful
  1. Leon Laude 85,666 Reputation points
    2020-10-15T14:34:29.717+00:00

    Hi @knight xu ,

    The Hyper-V default switch is in internal mode and automatically uses NAT, the default switch cannot be modified.

    You could consider creating an External virtual switch instead, and connect all your Hyper-V virtual machines to the External virtual switch.

    You can follow the step-by-step guide from the official documentation here:
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/connect-to-network

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    2 people found this answer helpful.
    0 comments No comments

  2. Dave Patrick 426.1K Reputation points MVP
    2020-10-15T14:33:22.45+00:00

    The simplest method is to delete the internal vSwitch, create a new external vSwitch and connect the guests to new external switch.

    --please don't forget to Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

  3. Dave Patrick 426.1K Reputation points MVP
    2020-10-15T14:40:10.057+00:00

    I see you just edited your original post. The "internal" you asked about is the default switch which you cannot edit. The simplest method is create a new external vSwitch and connect the guests to new external switch.
    https://blogs.technet.microsoft.com/jhoward/2008/06/17/hyper-v-what-are-the-uses-for-different-types-of-virtual-networks/

    --please don't forget to Accept as answer if the reply is helpful--


  4. Xiaowei He 9,871 Reputation points
    2020-10-16T02:53:48.867+00:00

    Hi,

    Windows 10 default virtual switch is unable to edit, and the settings in your screenshot if normal:

    32824-image.png

    If you want to make the VMs connect to Internet, we may create an external virtual switch on the Hyper V host, then connect the VMs to the external virtual switch:

    32747-image.png

    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.


  5. Dave Patrick 426.1K Reputation points MVP
    2020-10-17T02:59:37.017+00:00

    Check the Setting here on guest

    33053-image.png

    If the Network Adapter is missing you can add a new one.

    33054-image.png

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments