1. First check whether the machine's IP address, mask, gateway, etc. are configured correctly. 2. Ping the gateway to see if it can be pinged. If successful, then ping the external IP address. If it is different, recheck the configuration information mentioned in 1. Whether it matches the current network environment. 3. I can ping the external network, but cannot open the web page. The DNS server is not set or is incorrect. You can set the DNSpod address: 119.29.29.29
Check whether the network connection is connected, use
ifconfig
to check the network card connection IPThe network connection is correct, check whether the dns server is correct,
cat /etc/resolv.conf
,对于公用的dns服务器可以是8.8.8.8
和8.8.4.4
1. First check whether the machine's IP address, mask, gateway, etc. are configured correctly.
2. Ping the gateway to see if it can be pinged. If successful, then ping the external IP address. If it is different, recheck the configuration information mentioned in 1. Whether it matches the current network environment.
3. I can ping the external network, but cannot open the web page. The DNS server is not set or is incorrect. You can set the DNSpod address: 119.29.29.29
It is showing your internet connection problem. Check it .
Computer Softwares
Ask if it is a virtual machine? CentOs?