1, modify the configuration file
After modifying, press the Esc key, then press: key, and then enter wq, press the Enter key before exiting vim editor
2, open the windows service host
- Press win + R keys, enter services.msc,
- Ensure that the VMware DHCP Service and VMware NAT Service they are enabled!
3, restart the network services centos
Enter service network restart the virtual machine to the Internet in the terminal.
Check if you can access
Input ping www.baidu.com
press ctrl + c may end ping