sigmamiller
Posts: 4
Joined: Sat Nov 23, 2013 11:43 pm

Ethernet stopped working after a few months

Fri Feb 28, 2014 1:47 am

Hello,

I've been using the Pi for a few months now and just recently (last night) the ethernet stopped working. I have been working on some code to communicate with a FLIR A35 infrared camera via ethernet and in order to discover the camera, I needed to send out a UDP broadcast to which the camera would respond. I tested my UDP code first by connecting the Pi to my laptop and then used a packet sniffer on the laptop to see the UDP broadcast from the Pi. When I got that working, I connected the camera to a power over ethernet adapter (needed to power the camera) and then connected the other end of the adapter to the Pi's ethernet port. When I tried to send the same broadcast, sendto() erred with "Cannot reach the destination network." After fiddling around with the Pi, I noticed that the FDX, LNK, and 100 LEDs were constantly on, even when the ethernet cable was unplugged. So, I rebooted the Pi but the LEDs were still on and I could no longer connect to the internet through my router (wired to the router). Defeated, I did a clean install Raspbian today (Release Date 2014-01-07) but the LEDs are still constantly on and I still cannot connect to my router. I checked the voltage across TP1 and TP2 and it was 4.98V and the voltage drop across the F3 polyfuse was something like 0.02V. It should also be noted that I am not having any problems with the USB ports.

Heres my most recent dmesg output: http://pastebin.com/iUhZciYX. I also have a ifconfig output http://pastebin.com/d75zZb6Y. In addition, I tailed the syslog while I did 'ifdown eth0' and then 'ifup eth0': http://pastebin.com/MdjNRS3p (I just noticed that the system date and time are incorrect, all of these were from today).

I'm starting to feel like I'm going to have to buy another Pi, but I want to see if anyone has any ideas first.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Ethernet stopped working after a few months

Fri Feb 28, 2014 9:36 pm

Start by connecting it to your router with a different cable.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

sigmamiller
Posts: 4
Joined: Sat Nov 23, 2013 11:43 pm

Re: Ethernet stopped working after a few months

Mon Mar 03, 2014 1:46 am

I tried a different cable but no success.

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Ethernet stopped working after a few months

Mon Mar 03, 2014 2:14 am

If you changed the time on the pi (backwards in time) and did not reboot, then that can cause all manner of issues with TCP/IP.

I suspect that when you connected the POE adapter to the PI it damaged the Pi.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

ripat
Posts: 191
Joined: Tue Jul 31, 2012 11:51 am
Location: Belgium

Re: Ethernet stopped working after a few months

Mon Mar 03, 2014 1:40 pm

There is nothing wrong with your eth0 interface. It's up and running. The problem is that the eth0 iface is set to request an IP to a DHCP server but you connected it directly to the camera if I understand correctly your post. You can bypass your router that way but you need to:

1- give your camera and RPi a fixed IP's
2- manually populate the arp tables so that your Pi knows what mac address correspond to which IP.

The easy way: connect your camera and the Pi to a router which will manage all that.
Using Linux command line usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

superkojot
Posts: 1
Joined: Tue Nov 18, 2014 9:07 pm

Re: Ethernet stopped working after a few months

Tue Nov 18, 2014 9:13 pm

Hello,
I am facing the same issue - after same time of using of the raspberry PI ethernet stopped working. Now even if the ethernet cable is disconnected all three (FDX, LINK, 100M) are shining. Have you already solved your issue?

Return to “Troubleshooting”