Virtual Network in VMWare
There are three network connection modes in VMWare:
- VMnet0 (bridged mode)
- VMnet8 (NAT mode)
- VMnet1 (host only mode)
Network configuration in the virtual machine centOS
cd /etc/sysconfig/network-scripts
vi ifcfg-ens33
If it is NAT mode, set the network adapter to NAT in VMWare, and configure centOS to the same network segment according to the network information of the host's virtual network card VMnet8.
This will allow you to ping the external network