Has appeared many times before the question, Hey, white, noway.
The premise that ping Tong host.
Libxml2 library and encounter is to use yum upgrade CentOS host could not be resolved. Are generally gateway and CentOS,DNS is not set up.
2. check network settings for Windows
Get parameter in CentOS corresponding settings
3. view the CentOS gateway is set correctly
[root@localhost ethan]# grep GATEWAY /etc/sysconfig/network-scripts/ifcfg*
[Root@localhost Ethan]#/resolv.conf as follows:
See if using DNS resolution file, general use
[Root@localhost Ethan]#. conf is as follows:
#hosts: db files nisplus nis dns
hosts: files dns
Set the gateway:
[Root@localhost Ethan]#/sysconfig/network as follows:
[Root@localhost Ethan]#/sysconfig/network-scripts/ifcfg-eth0 is as follows:
4. restart the network service
service network restart
General finish can ping ….
Baidu is not enough on its own …