Network configuration for Hyper-V virtual machines and hosts

Source: Internet
Author: User

Network configuration for Hyper-V virtual machines and hosts

Mode 1, shared type

This approach is to share the virtual network inside Hyper-V with the external network. Makes the interior a private network. The type that belongs to Nat. (I don't know if that's right)

Advantages:

    1. Relatively private network, good security
    2. Private network does not occupy the public IP

Disadvantages:

1, can only outward connection, cannot from outward inside the connection.

Configuration method:

    1. Open Control Panel \ Network and internet\ Network connections
    2. Set the Ip,dns for local area connection. So the host is already able to surf the Internet.
    3. Open the Local Area Connection Status page and add the network for Hyper-V in the share.

This will share the network. Note that the shared network default IP is 192.168.137.1

How to use:

The new virtual machine uses local Area Connection-virtual network.

IP set to 192.168.137.*

The gateway is set to 192.168.137.1

Method 2, Network Bridge mode

This approach is to bridge the virtual network inside Hyper-V to the external network. make the internal and external IP all on one network segment.

Advantages:

    1. Even if it is a wireless network, can also be bridged (seemingly default Hyper-V can not connect the wireless card, only in this way)
    2. IP in a network segment, good connectivity, convenient configuration.

Disadvantages:

    1. Need to occupy multiple IPs
    2. Poor security

Configuration method:

    1. Open Control Panel \ Network and internet\ Network connections
    2. First, the local network card will have a "local connection-network card model", Hyper-V installation will have a "local connection 2-virtual network", select the two networks, right-click on the "Bridge."
    1. Set the IP, DNS of the bridge, and change it to the previously locally connected IP, DNS.

How to use:

The new virtual machine uses local Area Connection-virtual network. IP is set to the machine on the host network segment.

Network configuration for Hyper-V virtual machines and hosts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.