Issue:ping:unknown Host
Root Cause:linux cannot resolve DNS
Action:
1. Check the network card settings
command:root user under ifconfig-a
Root user under vi/etc/sysconfig/network-scripts/ifcfg-eth0
2. Ping the gateway to confirm that it can ping the
3. Check the system default gateway
command:vi/etc/sysconfig/network
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/54/wKiom1W2QffRoTtsAAC5ue4YuyM225.jpg "style=" float: none; "title=" image010.jpg "alt=" Wkiom1w2qffrottsaac5ue4yuym225.jpg "/>
4. Ping a public IP address to confirm that you can Ping the
5. Check DNS settings to set up a correct DNS server
command:vi/etc/resolv.conf
DNS server addresses can be found through the ipconfig-all of windows
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/51/wKioL1W2Q-PSVfVfAAKaA0PitE8900.jpg "style=" float: none; "title=" image012.jpg "alt=" Wkiol1w2q-psvfvfaakaa0pite8900.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/54/wKiom1W2Qfijuvf_AACb-DZX6-c157.jpg "style=" float: none; "title=" image014.jpg "alt=" Wkiom1w2qfijuvf_aacb-dzx6-c157.jpg "/>
6. Restart the Network Service
command:service network restart
7. View Effects
command:ping www.baidu.com or any public network address
This article is from the "7ntxx-13" blog, make sure to keep this source http://chiliming.blog.51cto.com/4285688/1678926
Virtual Box Linux VMS FAQ--ping:unknown host