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)
auto eth0
and you won't needifup eth0
. Please post the output ofifconfig eth0
when the connection is lost. – M Noit Jul 10 '14 at 05:22auto eth0
. – nrob Jul 10 '14 at 11:54auto eth0
– thekiwi5000 Feb 16 '15 at 09:40