STEP BY STEP
Basic Principles
There are three communication methods in the vmwarevm, as shown in
1. Bridged (Bridging Mode)
In the bridge mode, the Virtual Operating System of VMware is like an independent host in the LAN. It can access any machine in the network, but you need more than one IP address, you also need to manually configure the IP address subnet mask for the virtual system, and also need to be in the same network segment as the host machine, so that the virtual system can communicate with the host machine
If you want to use VMware to create a virtual server in the LAN to provide network services for LAN users, you should select the bridge mode.
2. NAT (network address translation mode)
The NAT mode enables the virtual system to use the NAT (Network Address Translation) function to access the public network through the network where the host machine is located. That is to say, in NAT mode, you can access the TCP/IP configuration information of the Virtual System in Internet-based NAT mode. It is provided by the DHCP server of the VMnet8 (NAT) virtual network, as the virtual system cannot be manually modified, it cannot communicate with other real hosts in the Local Area Network. The biggest advantage of using NAT mode is that it is very easy to connect the virtual system to the Internet, you do not need to perform any other configuration. You only need the host machine to access the Internet.
If you want to use VMware to install a new virtual system, you can directly access the Internet without manual configuration in the virtual system. We recommend that you use the NAT mode.
3. Host-only (Host Mode)
In some special network debugging environments, you must isolate the real environment from the virtual environment. In this case, you can use the Host-only mode in the Host-only mode, all virtual systems can communicate with each other, however, the virtual system and the real network are isolated and can be shared using the Internet connection provided in Windows XP (in fact, it is a simple route NAT) to allow virtual machines to access the virtual system through the Host's real network card TCP/IP configuration information (such as the IP address gateway address DNS server), all by VMnet1 (Host-only) DHCP servers in the virtual network for Dynamic Allocation
If you want to use VMware to create a virtual system isolated from other machines in the network and perform some special network debugging, you can select the Host-only mode.
Getting started with Linux: Installing VMware 10 on CentOS 7
NAT configuration
NAT (static IP) configuration method
1. Ensure that the NIC of the VM is normal. Select Edit-Modify unal Network Editor
2. Check the NIC properties to make sure that the VMnet8 Host Connection status is Connected. If there is no connection, click the Restore Default button in the lower left corner to Restore the Default settings.
3. Click the NAT Settings button to check that the gateway is 192.168.84.2. Write down the gateway at this time to prepare for the subsequent configuration.
For more details, please continue to read the highlights on the next page: