I have a headless Raspberry Pi using Debian Wheezy.
I have a wifi dongle and if I connect my Raspberry using it, everything works fine: I can connect to the Internet, I can ping, I can update.

However, if I get down my wifi and set up the lan interface, I lost my internet connection.
I still can connect to it locally, using my laptop, but the connection doesn't exit (ie ping is not working).

Some useful info:

cat /etc/network/interfaces

auto lo
auto eth0

iface eth0 inet static

ping www.google.com

(nothing request timed out)


eth0      Link encap:Ethernet  HWaddr b8:27:eb:a2:b5:20
          inet addr:  Bcast:  Mask:
          RX packets:1130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:97223 (94.9 KiB)  TX bytes:146140 (142.7 KiB)


PING ( 56(84) bytes of data.
--- ping statistics ---
19 packets transmitted, 0 received, 100% packet loss, time 18007ms

cat /etc/resolv.conf


netstat -r

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         UG        0 0          0 eth0     *        U         0 0          0 eth0

well, I think that's all... Any ideas?


The 100% packet loss, when you ping your router, is a concern. It indicates connectivity issues. This can be caused by a bad cable (try a different one), MAC filtering being enabled in your router, a bad Ethernet port in either your Pi or your router, a bad iptables config, or a number of other issues. Does anything else work using that router port and cable?

  • I checked EVERYTHING and finally I found the reason: my electrician created TWO separated LAN without telling me. I was plugging the cable in the wrong plug. Now I know how to workaround on it (and do a little talk with my electrician...) – tampe125 Jul 5 '13 at 10:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.