eth0 link is always on even if cable is unplugged

Started by sencer, February 17, 2016, 01:16:06 PM

Previous topic - Next topic

sencer

I would like to detect if network cable is plugged or not to A20-LIME2 eth0 port. I use standart Linux image. Debian 7 kernel 3.4.90

"ethtool eth0" command always displays yes for "link detected" 

also

/sys/class/net/eth0/carrier and and operstate values does not change after cable is unplugged.

What may be the reason?

Regards,

Gerrit

does the green led goes off when you unplug the cable ?

sencer

Yes, the green led goes off after unplugging the cable.

Gerrit

it should work, I would check the board for tin drops or bridges that don't belong

sencer


MBR

Did you tried the ethernet status/diagonostic tool ethtool? (available as a package in Debian-based distributions). What does the link status say?

splite

Hey,

I have pretty much the same issue. Only the kernel is detecting if the cable is plug in/out, but nothing is detected on a higher level. For example, Network-manager does not detect if a cable is plugged in, the only workaround is to reboot the system or down / up the interface which is not convenient.

Florian