Please help me out with debugging, why my RPI (Raspbian) loses internet connection.

The scenario is this:
1. I start the PI, the ethernet is working.
2. I start one php script, that posts something to remote server with cUrl.
3. The ethernet connection stops after hours.

I need to restart the network with sudo /etc/init.d/networking start and sudo ifup eth0

Content of the /etc/network/interfaces file:

pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo

iface lo inet loopback

iface eth0 inet static

How can I find, what causes the problem?

update: the output of ifconfig eth0 after loosing connection:

eth0      Link encap:Ethernet  HWaddr b8:27:eb:05:0e:a7
          RX packets:156 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10044 (9.8 KiB)  TX bytes:0 (0.0 B)
  • Add auto eth0 and you won't need ifup eth0. Please post the output of ifconfig eth0 when the connection is lost.
    – M Noit
    Commented Jul 10, 2014 at 5:22
  • Actually the OP hasn't presented any evidence that the connection is lost. Even a basic ping between devices would be useful.
    – joan
    Commented Jul 10, 2014 at 8:17
  • Ok, I'll post that output next time the connection lost. Thanks for the auto eth0.
    – nrob
    Commented Jul 10, 2014 at 11:54
  • How has it worked for the last week?
    – Bex
    Commented Jul 16, 2014 at 12:17
  • 1
    I know I'm a bit late, but just to add my "me too" in 2017. Raspberry Pi B+ here. Never had this problem before with wheezy, but yesterday I upgraded to jezzie and begin having such problems. I've added the auto eth0 as suggested by thekiwi5000 but I guess that won't prevent from connections to be broken if it's drop while doing something (for example, transferring a file via SMB). Commented Sep 14, 2017 at 10:27

1 Answer 1


I had this same problem with several Model B's running Wheezy. Its only responsibility was to run WeeWx weather station software, so it was not doing all that much. Experiencing the same failure on multiple Pi's indicates either a poor IC design, or a driver issue. What I found was that the OS thought the LAN was up and running, but pings from other systems returned unreachable.

I decided to migrate to a B+ with a fresh install. It has a different USB/LAN interface IC, and it has been running uninterrupted since then (about 4 years), only rebooting with power failures, which are very seldom, especially now that it has battery backup. I have also upgraded to Jessie, and may upgrade again in the near future.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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