When the installed operating system Ping www.google.com, report name or service not known
It’s OK to check the virtual network settings. Some virtual machines from the same template can or can’t Ping the Internet
Finally, several data are integrated, and the solutions are as follows:
1 add DNS server first
vi /etc/resolv.conf
Add the following two lines to the file:
nameserver 8.8.8.8
nameserver 8.8.4.4
Save, exit and restart the server. Then Ping again and try again
If not, continue:
2 set a file:
VI/etc/sysconfig/network scprits/ifcfg-ens33 (the file name may be different. Mine is ens33, and some seem to be ENS plus other numbers)
Find onboot = no in the file and change to onboot = yes
Save exit
Restart network: systemctl restart network
Similar Posts:
- [Solved] Yum command error: could not retrieve mirrorlist http://mirrorlist.centos.org…
- CentOS 7 network could not retrieve error [Solved]
- Solve the problem of could not retrieve mirrorlist in centos7 yum
- LINUX: How to Fix Ping Warning unknown host www.google.com
- How to Solve Warning: Permanently added ‘ 192.168.1.230′(RSA) to the list of known hosts.
- Bringing up interface eth0: Error: No suitable device found: no device found for connection ‘System eth0’. [FAILED]
- “ping: unknown host www.baidu.com “Problem solving
- [Solved] Device eth0 does not seem to be present,delaying initialization
- Linux: CentOS 7 executes service network restart error [Solved]
- CentOS7 Failed to start LSB: Bring up/down [How to Solve]