3

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
address 192.168.2.22
netmask 255.255.255.0
gateway 192.168.2.1

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
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          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)
nrob
  • 139
  • 1
  • 1
  • 4

1 Answers1

2

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.

Tom
  • 39
  • 6