none
Need to Enable Internet Access to the HyperV vm's in Internal Network

    Question

  • I am using Hyper-V server core to spawn two VMs. I have External Switch connected to a physical interface.

    Is it possible to route my traffic from my Internal network to the External and vice versa?

    If not, what are other ways I ensure my VMs to access the  internet.

    Friday, February 3, 2017 12:31 PM

All replies

  • There are a couple ways to provide internet access to the VMs.  One way, the easiest way, is to use your External virtual switch and assign virtual NICs on that switch, configuring their IP information with the appropriate gateway and DNS servers.

    Another way is to create a single VM with two virtual NICs - one on the internal network and one on the external network.  Configure some routing software, like RRAS from Microsoft, to act as a router between the two networks.  Then VMs configured on the internal network would point to the routing server as their gateway.


    . : | : . : | : . tim

    Friday, February 3, 2017 1:34 PM
  • Hi Aparna,

    Tim is correct.

    Creating an external virtual switch is easier.

    Here is the reference about Hyper-V virtual switch:

    https://technet.microsoft.com/en-us/library/hh831823(v=ws.11).aspx

    Here is the reference about Hyper-V network:

    https://technet.microsoft.com/en-us/library/jj134230(v=ws.11).aspx

    And about different virtual switches:

    https://blogs.technet.microsoft.com/jhoward/2008/06/17/hyper-v-what-are-the-uses-for-different-types-of-virtual-networks/

    Best Regards,

    Leo


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Sunday, February 5, 2017 1:38 PM
    Moderator
  • Hi,
    Are there any updates?
    You could mark the reply as answer if it is helpful.
    Best Regards,
    Leo

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, February 23, 2017 8:04 AM
    Moderator