Greetings,
Well, first I would double-check my local network settings, either via
ifconfig or
ip and make sure that your network config is good.
Example of
ifconfig:
Code:
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.89 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::227:eff:fe12:69cd prefixlen 64 scopeid 0x20<link>
ether 00:00:00:00:00:00 txqueuelen 1000 (Ethernet)
RX packets 249128670 bytes 95474238373 (88.9 GiB)
RX errors 0 dropped 13322 overruns 0 frame 0
TX packets 205801437 bytes 108139166244 (100.7 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xee200000-ee220000
...<snip>...
Next, have the system try to ping itself, both localhost as well as the IP address you get from the above command. Remember that you will have to stop the
ping command yourself, hence the "^C" (READ: Ctrl+C).
Code:
$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.029 ms
^C
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 6ms
rtt min/avg/max/mdev = 0.024/0.026/0.029/0.005 ms
Now, if that works, next run a "
route -n" and see what your gateway is set to. Example:
Code:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 2 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Now, if you get a valid gateway, try to ping the gateway and make sure it is responding to you.
Given that the pings above work and the system knows it's gateway, try to ping 8.8.8.8. That is the IP address for Google's Root DNS server, so it always responds to pings. If that
doesn't respond, check your gateway.
If that
does respond, then check
/etc/resolv.conf for where you are pointing your DNS, and make sure you can reach it and get answers.
Code:
$ cat /etc/resolv.conf
nameserver 74.40.74.41
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 8.8.8.8
$ nslookup www.google.com
Server: 74.40.74.41
Address: 74.40.74.41#53
Non-authoritative answer:
Name: www.google.com
Address: 172.217.4.68
Name: www.google.com
Address: 2607:f8b0:4009:80f::2004
Hope that helps... Let us know.