1. The scene installs the virtual machine, the default configuration virtual network is the NAT mode, this mode virtual opportunity shares the host IP to connect the external network, only the host can access the virtual machine, the virtual machine can also access each other, the virtual machine is in a virtual subnet! Nat mode is not available if you want other members of your LAN to access this virtual machine. Need to be changed to "bridge mode", bridge mode is equivalent to virtual machine and host is a separate LAN IP of the physical machine, the other machine in the LAN can be accessed with the virtual machine. In fact, the so-called "NAT mode" and "Bridging mode" are not so mysterious! 2. Implementation process 1) Open CentOS2) Edit 3) virtual Network Editor 4) Change settings 5) Select VMnet86) change "Subnet IP" to host the same network segment (e.g. 172.16.0.0) 7) Click "DHCP Settings" to "Start IP" "End IP" Also change to subnet IP the same network segment, OK return 8) Click "Nat Settings" to "Gateway" Change Cheng host Local Area network gateway (for example: 172.16.250.250), OK return 9) Finalize close virtual Network editor 10) return CentOS11) Right click on your virtual machine, click Settings, change the network adapter to "bridge mode", OK off 12) switch to your virtual machine, Edit the NIC Vim/etc/sysconfig/network-scripts/ifcfg-ens33//Find your network Card Profile 13) Set IP, gateway, etc. to the IP segment and gateway 14 that you just configured) restart the NIC 15) with your virtual machine: Ping Www.baidu.com, Success! 16) How to switch back (same way)
Conversion of NAT mode and bridging mode in VMware