CentOS reboot the network card can not lead to a solution Xshell connected via SSH

Has been used on the virtual machine is CentOS pure command line interface, a bit before restarting the default network card (command: ifdown ens33, ifup ens33)

The results Xshell is to face off, and Rom.

Baidu a bit and found a virtual machine is the first time a network connection with the VMnet8, CentOS there are no arrangements gateway.

Solution:

vim /etc/resolv.conf

Add nameserver 114.114.114.114 to later.

Guess you like

Origin www.cnblogs.com/NamingException/p/11419377.html