Configure a static IP address for CentOS in VMware and access the network-VMware in windows
First, make sure that the virtual Network Adapter VMnet8 is enabled, and then enter "ipconfig/all" in the command line of windows to find the ipv4 address of the VMware Network Adapter VMnet8 (for example: 192.168.16.1). For example, make sure that the network configuration of the VM centos is NAT. For example, set the static IP address as follows: Start and enter the centos system, enter "vim/etc/sysconfig/network-scripts/ifcfg-eth0" in the terminal to modify the ip configuration, and then enter the configuration information such as: Save and exit, enter "service network restart" in the terminal to restart the network service. Then, ping www.163.com in the terminal to view the following information, indicating that the service is successful: