VMware Network Connection mode description and troubleshooting

Source: Internet
Author: User

One, VMware network connection mode-bridging, NAT, and host-only mode details and differences

VMware Bridging mode

VMware bridging mode, that is, the virtual network adapter of the VM is handed over to the host's physical network adapter, and the virtual network adapter in the virtual machine is directly accessible to the external network through the physical network adapter in the host (the LAN and the Internet, as shown in the example). In short, it's like adding a new, stand-alone computer to the local area network as shown. As a result, virtual machines also occupy an IP address on the LAN and can be accessed from other terminals. The Bridging mode network connection supports both wired and wireless host network adapters. If you want to treat a virtual machine as a completely separate computer and allow it to communicate with other terminals, the bridge mode is usually the simplest way for a virtual machine to access the network.

VMware NAT Mode

NAT, which is the abbreviation for network address translation, is the translation of Web addresses. Nat mode is also the default network connection mode for VMware to create virtual machines. When using NAT mode network connections, VMware establishes a separate private network on the host to communicate with each other between the host and the virtual machine. The request data "parcel" sent by the virtual machine to the external network will be forwarded to the NAT network adapter with "special token", and the response data returned by the external network "parcel", which is received by the host, is then referred to the NAT network adapter according to the "Special tag" is identified and forwarded to the corresponding virtual machine, so the virtual machine does not have to have its own IP address in the external network. From the external network, the virtual machine and host are sharing an IP address, and by default, the external network terminal cannot access the virtual machine.

In addition, only one virtual network with a NAT mode is allowed on a single host. As a result, multiple virtual machines with NAT mode network connections on the same host can be accessed from each other.

As we mentioned earlier, the external network cannot access the virtual machine by default, but we can also implement port forwarding by manually modifying the NAT settings to forward the data sent by the external network to the host-specified port to the specified virtual machine. For example, we "establish" a site on the 80 port of the virtual machine, as long as we set up port forwarding, the host 88 port data forwarded to the virtual machine 80 port, you can let the external network through the host's 88 port access to the virtual machine 80 port on the site.

VMware Host-only mode

Host-only mode, which is a more closed network connection mode than NAT mode, creates a private network that is fully contained in the host. Only the host-mode virtual network adapter is visible to the host and provides network connectivity between the virtual machine and the host system. Compared to NAT mode, host-only mode does not have NAT, so by default, virtual machines that use only host-mode network connections cannot connect to the Internet (install the appropriate routing or proxy software on the host Or, you can still have the virtual machine connected to the Internet or another network by using the Internet Connection Sharing feature on the host on the Windows system.

Multiple host-only virtual networks can be created on the same host, and if multiple virtual machines are in the same host-only mode network, they can communicate with each other, and if they are in a different host-only mode network, they cannot communicate with each other by default ( You can communicate with each other by setting up routers between them.

Customizing the network Connection Configuration

You can also create complex virtual networks with the virtual network connectivity components provided by WMware. Here we don't go into detail, you can refer to the official documentation and then create the virtual network with VMware's Virtual network editor.

The image says:

Bridge mode virtual machine, like a router "Civil Affairs bureau" there "on the account" of adults, have their own separate residential address, although and host live in the same compound, but at least there are accounts of people, can swagger directly and outside communication.

Nat mode virtual machine, is purely a Heihu account, the router "Civil Affairs Bureau" does not know that there is such a person, nature will not actively communicate with it. Even if the virtual machine occasionally to send the point of the letter to the host to be forwarded to the host in the name of the forwarding out, the host also specifically invited a NAT called the grandfather to specifically responsible for these virtual machine's letter, receiving letters.

Host-only virtual machine, purely a thorough bottom of the black slaves, not only have no account, router "Civil Affairs Bureau" do not know so people, but also by the main organs in the small black House, even the letter is not allowed outward.

Second, the system can not be connected to the trouble-shooting method

1.

First, verify that the system is installed as a virtual machine or a physical server.
If it is a virtual machine, but also to consider the host network hosting the virtual machine, if the host is the direct dial-up method of Internet access, the virtual network card mode is selected NAT mode,
If the host uses the router LAN mode to surf the Internet, then the virtual Machine network card selection bridged and Nat two mode can be. If it is a physical server, it can be configured directly. Refer to the configuration of the virtual machine bridge.

2.

If the system installation method is correct, still cannot surf the Internet, continue to verify that the network card is actually configured correctly.
If the virtual machine is NAT mode, you need to use DHCP to obtain the IP automatically; In the case of virtual machine bridged bridging mode, you need to connect to the host network that the virtual machine resides in
Set IP. Subnet mask and gateway, more convenient way to use DHCP to obtain IP. Whether you are using brdged or NAT mode, it is best to manually specify DNS.

If it is a physical server, check the IP, subnet mask, gateway and DNS settings are correct, can be compared with other Internet-connected machines in the LAN for one by one comparison, or find a network management inquiry

3.

After the above two types of problems are excluded, you need to confirm the network card configuration file.
The process of configuring the NIC using the Setup command is essentially modifying the NIC configuration file as follows, so you can verify that it is consistent with what you want to configure by looking at the configuration file for the NIC.

VMware Network Connection mode description and troubleshooting

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.