I have a strange problem on my Raspberry Pi.

I've Googled for my problem but I cannot find a solution, maybe someone here had same issue.

I have a Pi connected to cable network (eth0), powered by correct power adapter and always on. The problem is that sometime internet connection of Rberry suddenly stops to work, but local network is working without problems. I'm sure issue is on internet connection because everytime it happens I try to ping http://www.google.com and cannot reach it (I tried to ping ip address directly with same result), but if ping other devices in my network there are no problems (and when I do these tries I'm connected with ssh to the raspberry so network is stable)

When it happens I cannot restore internet connection at all. I tried also with ifdown eth0 && sleep 5s && ifup eth0 without luck, the only way seems to reboot raspberry.

This is my /etc/network/interfaces config:

auto lo

iface lo inet loopback
iface eth0 inet static

Someone have an idea about it? I have other devices on my network (Mac, Linux notebook and Windows PC) but no one suffers of this problem...

Many thanks


Just happened and following some advices found googling I discovered that command

sudo route add default gw

restores internet connection without rebooting the Pi. Now the only question is WHY this happens and how avoiding it.

  • What OS and version are you running? How is the Pi powered? Is the WiFI adapter plugged into the Pi or a powered hub? – Steve Robillard Apr 11 '16 at 22:37
  • Hi Steve, I'using Raspbian 7.1, Pi is powered with power adapter and there are no wifi adapter, I'm connected with ethernet cable – Nerkyator Apr 11 '16 at 22:44
  • 1
    does this happen when your DHCP lease runs out? check your router. – rob Apr 12 '16 at 8:37
  • Hi Rob, unfortunately I have no DHCP for raspberry, is a static ip so I don't think is a router problem (well at least not DHCP). – Nerkyator Apr 12 '16 at 8:47

Your Answer

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

Browse other questions tagged or ask your own question.