Linux systems CentOS (Internet virtual machine configuration)

1, modify the configuration file

Here Insert Picture Description
Here Insert Picture Description
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!
    Here Insert Picture Description

3, restart the network services centos

Enter service network restart the virtual machine to the Internet in the terminal.
Here Insert Picture Description

Check if you can access

Input ping www.baidu.com
Here Insert Picture Description
press ctrl + c may end ping

Published 87 original articles · won praise 20 · views 1641

Guess you like

Origin blog.csdn.net/a__int__/article/details/103372658