Dear ubuntu users,
I'm encountering a peculiar problem.
I can ping anything, but I do not have web access:
Code:
$ wget www.google.com
--2013-02-18 02:38:11-- http://www.google.com/
Resolving www.google.com (www.google.com)... 173.194.39.244, 173.194.39.240, 173.194.39.242, ...
Connecting to www.google.com (www.google.com)|173.194.39.243|:80... failed: No route to host.
Connecting to www.google.com (www.google.com)|2a00:1450:4017:801::1014|:80... failed: Network is unreachable.
and I cannot figure out why, since I have not done any change that could spoil the system. I did an upgrade to 12.04.2, but the problem appeared a few hours later.
Could you please help me?
Code:
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:c0:9f:2d:a4:c5
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe2d:a4c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:692345 errors:0 dropped:0 overruns:0 frame:0
TX packets:397918 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:591184461 (591.1 MB) TX bytes:65437324 (65.4 MB)
Interrupt:4 Base address:0xec00
$ ping www.google.com
PING www.google.com (173.194.39.241) 56(84) bytes of data.
64 bytes from sof01s02-in-f17.1e100.net (173.194.39.241): icmp_req=1 ttl=59 time=19.7 ms
64 bytes from sof01s02-in-f17.1e100.net (173.194.39.241): icmp_req=2 ttl=59 time=19.1 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 19.132/19.431/19.730/0.299 ms
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default dsldevice.lan 0.0.0.0 UG 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
$ dig
; <<>> DiG 9.8.1-P1 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46024
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 15
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 246700 IN NS d.root-servers.net.
. 246700 IN NS j.root-servers.net.
. 246700 IN NS a.root-servers.net.
. 246700 IN NS l.root-servers.net.
. 246700 IN NS k.root-servers.net.
. 246700 IN NS c.root-servers.net.
. 246700 IN NS i.root-servers.net.
. 246700 IN NS h.root-servers.net.
. 246700 IN NS b.root-servers.net.
. 246700 IN NS g.root-servers.net.
. 246700 IN NS e.root-servers.net.
. 246700 IN NS f.root-servers.net.
. 246700 IN NS m.root-servers.net.
;; ADDITIONAL SECTION:
a.root-servers.net. 505804 IN A 198.41.0.4
a.root-servers.net. 505812 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 508590 IN A 192.228.79.201
c.root-servers.net. 508590 IN A 192.33.4.12
d.root-servers.net. 508589 IN A 199.7.91.13
d.root-servers.net. 24137 IN AAAA 2001:500:2d::d
e.root-servers.net. 508589 IN A 192.203.230.10
f.root-servers.net. 508590 IN A 192.5.5.241
g.root-servers.net. 508590 IN A 192.112.36.4
h.root-servers.net. 508590 IN A 128.63.2.53
i.root-servers.net. 508589 IN A 192.36.148.17
j.root-servers.net. 508590 IN A 192.58.128.30
k.root-servers.net. 508590 IN A 193.0.14.129
l.root-servers.net. 508590 IN A 199.7.83.42
m.root-servers.net. 505993 IN A 202.12.27.33
;; Query time: 36 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Feb 18 02:37:10 2013
;; MSG SIZE rcvd: 492
$ dig www.google.com
; <<>> DiG 9.8.1-P1 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15716
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 111 IN A 173.194.39.241
www.google.com. 111 IN A 173.194.39.240
www.google.com. 111 IN A 173.194.39.242
www.google.com. 111 IN A 173.194.39.244
www.google.com. 111 IN A 173.194.39.243
;; AUTHORITY SECTION:
google.com. 73910 IN NS ns3.google.com.
google.com. 73910 IN NS ns4.google.com.
google.com. 73910 IN NS ns1.google.com.
google.com. 73910 IN NS ns2.google.com.
;; ADDITIONAL SECTION:
ns1.google.com. 74641 IN A 216.239.32.10
ns2.google.com. 78313 IN A 216.239.34.10
ns3.google.com. 75826 IN A 216.239.36.10
ns4.google.com. 75826 IN A 216.239.38.10
;; Query time: 80 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Feb 18 02:35:23 2013
;; MSG SIZE rcvd: 248
$ sudo iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
$ uname -a
Linux madrid 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:57 UTC 2013 i686 athlon i386 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
Bookmarks