Three modes of VMware bridging, Nat, and Only-host

Source: Internet
Author: User
Tags virtual environment

If you want to use VMware to install virtual machines, or to create a virtual system that is isolated from other machines in the network, perform special debugging tasks. In this case, the choice of the virtual system network connection mode is very important. If you choose to work in an incorrect mode, you won't be able to achieve this, and you won't be able to take full advantage of VMware's role in network management and maintenance. Now let's get closer to VMware's three modes of operation. Understand three modes of operation. The     vmware provides three modes of operation, which are bridged (bridge mode), NAT (network address translation mode), and host-only (host mode). To properly apply them in network management and maintenance, you should first look at these three modes of work.     1.bridged (bridging mode)      in this mode, VMware virtual operating system is like a local area network and host a separate host, It can access any machine in the network. In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a host machine in the same network segment so that the virtual system can communicate with the host machine. At the same time, because this virtual system is a separate host system in the LAN, it is possible to manually configure its TCP/IP configuration information to enable access to the Internet through a LAN gateway or router.      the relationship between a virtual system using bridging mode and a host machine is like two computers connected to the same hub. To make them communicate with each other, you need to configure the IP address and subnet mask for the virtual system, or you will not be able to communicate.      If you want to use VMware to create a new virtual server within the LAN, to provide network services for LAN users, you should choose bridging mode.     2.host-only (host mode)      in some special network debugging environments, it is required to isolate the real environment from the virtual environment, You can then use the host-only mode. In host-only mode, all virtual systems can communicate with each other, but virtual systems and real networks are isolated.      tip: In host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the two machines connected by twisted-pair wires.      in host-only mode, the TCP/IP configuration information for the virtual system (such as IP address, gateway address, DNS server, etc.) are dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network.      If you want to use VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work.     3.nat (network address translation mode) uses NAT mode to allow the virtual system to access the public network through the network of the host machine, with the help of the NAT (Network address translation) feature. In other words, the use of NAT mode enables access to the Internet in virtual systems. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so the virtual system cannot communicate with other real hosts on the local area network. The biggest advantage of using NAT mode is that virtual system access to the Internet is very simple, you do not need to do any other configuration, only the host machine can access the Internet.      If you want to use VMware to install a new virtual system, you can directly access the Internet without any manual configuration in the virtual system, it is recommended that you use NAT mode.      Hint: The VMNET8 virtual network in the NAT mode mentioned above, the VMNET1 virtual network in host-only mode, and the VMnet0 virtual network in bridged mode, Are generated automatically by VMware virtual machines and do not require the user to set their own. VMnet8 and VMNET1 provide DHCP services, and VMNET0 virtual networks are not available.      Configure the virtual system working mode      in the actual work, because the user's needs are different, the debugging environment requirements are different, different users need to choose different working modes, It may be bridged mode, or NAT mode or Host-only mode. Regardless of which mode of operation you choose to use, it is very simple to configure the virtual system to the appropriate working mode, which you can do in the New Virtual Machine Wizard dialog box.      in the New Virtual Machine Wizard dialog box, click the Next button and enter the Network Type dialog box to select the mode of work you are using. There are four single options in the Network Type dialog box, bridged mode, Nat mode, host-only mode, no networkConnection, select the work mode you need to use, click the "Next" button, you can complete the virtual system operating mode configuration.    Bridging mode and NAT mode  bridged networking (bridging mode)        in this mode, VMware's virtual operating system is like a standalone host on a LAN that can access any machine in the network. In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a host machine in the same network segment so that the virtual system can communicate with the host machine. Also, configure the gateway and DNS addresses to enable access to the Internet through a LAN gateway or router.  network Address Translation (NAT mode)        using NAT mode, is to have the virtual system with NAT (Network address translation) function, Access the public network through the network where the host machine resides. In other words, the use of NAT mode enables access to the Internet in virtual systems. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so the virtual system cannot communicate with other real hosts on the local area network. The biggest advantage of using NAT mode is that the virtual system access to the Internet is very simple, only the host machine can access the Internet, you do not need to configure the IP address, subnet mask, gateway, but the DNS address should be filled according to the actual situation. Add a DNS address in addition to the network card properties, you can also add it by tapping the Edit button in the Nat tab in the Virtual network editor in the virtual machine.       If you just let the virtual function on the Internet, both modes can be, with the bridge if you have a legitimate address in the LAN, such as your ADSL cat is the leading way by the function, if it is in the unit, That will be network management to your legitimate IP (now the company is the Mac and IP bindings).        is now the host and virtual machine interoperability, if your ADSL lead by function, that shut down the virtual machine DHCP, select Bridge, check whether 2 machine is assigned the same network segment IP, shut down the firewall.    Bridging mode:     just like 2 separate computers, the IP address used by the virtual machine and the IP address used by the physical machine are a Class C address. If the physical machine IP is 192.168.0.2, the address of the virtual machine is alsoMust be equipped with a Class C address of 192.168.0.XXX.  nat mode: In the     nat mode, there are actually 3 devices. Physical machine (local connection), virtual network card (VMware network Adapter VMnet8), virtual machine. This mode is actually the same as what we do with Connection sharing under Windows. The physical machine is the line or device that accesses the broadband, the virtual network card is the network card that connects the broadband, the network card of the virtual machine is the network card that connects LAN. Nat mode, because Routing and forwarding are enabled. So if the virtual machine is configured 192.168.200.100, the physical machine configuration 192.168.0.2, that should be able to ping the 192.168.0.2 under the virtual machine, if you do port mapping on the virtual machine, you should use the 192.168.0.2 address to access the various ports on the virtual machine

VMware bridging, Nat, and only-host three modes

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.