LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2011, 10:32 PM   #1
mikevandeberg
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
Ethernet auto-connect, auto-sense doesn't work


I have noticed that a common issue to several distros is the fact that the networking subsystem doesn't automatically detect the link if an ethernet connection is disconnected and then re-connected to the NIC after boot. If the ethernet cable is connected after the system is up and running, nothing happens - ethtool eth0 shows link detected: no, and you have to restart the network service to let the NIC know that there is in fact a link, and actually connect.

I have a Fedora14 (KDE) box with a brand new Asus motherboard with embedded NIC. Everything works great except the auto-detect of a freshly connected ethernet connection if the link is down to begin with.

Am I missing a ethernet link sentinel utility or something, or is this just the way linux works?

I have done plenty of research on plenty of posts, and it seems this is a common problem, with no solution other than manually or programatically restarting the network service in a script to detect the link after a disconnect.

Thanks in advance for any ideas/solutions.

Mike
 
Old 02-04-2011, 01:16 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

Quote:
Originally Posted by mikevandeberg View Post
I have noticed that a common issue to several distros is the fact that the networking subsystem doesn't automatically detect the link if an ethernet connection is disconnected and then re-connected to the NIC after boot.
That depends on your definition of "detect". Ubuntu will actually notify you on your desktop that you've lost the link. Others report to syslog. At the very least, the card knows the link is dead and reports to the drive.

Quote:
Originally Posted by mikevandeberg View Post
If the ethernet cable is connected after the system is up and running, nothing happens - ethtool eth0 shows link detected: no, and you have to restart the network service to let the NIC know that there is in fact a link, and actually connect.
That may be true for DHCP clients, however an "ifconfig eth# down" and "ifconfig eth# up" might fix it in most cases. I've seen several opensource projects dedicated to "do stuff when the NIC loses it's connection, do more stuff when the connection comes back", but I can't think of any off the top of my head (I only use DHCP for my WiFi now a days).

Quote:
Originally Posted by mikevandeberg View Post
Am I missing a ethernet link sentinel utility or something, or is this just the way linux works?
Yes, there are things that can watch & configure NICs based on link activity...

Quote:
Originally Posted by mikevandeberg View Post
I have done plenty of research on plenty of posts, and it seems this is a common problem, with no solution other than manually or programatically restarting the network service in a script to detect the link after a disconnect.
Something like ifplugd, perhaps?
I would imagine the reason this isn't implemented across-the-board on most distros is because of this;
When you "ifconfig eth# down", what stops the daemon from upping the NIC again?

Last edited by xeleema; 02-04-2011 at 01:18 AM.
 
1 members found this post helpful.
Old 02-11-2011, 08:08 AM   #3
mikevandeberg
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks xeleema,

I don't really know what happened, but for some reason, without changing anything in the config, the NIC started negotiating to 1 gig with my router, and began auto-connecting when the cable was disconnected and re-connected again!! Weird! I swear I didn't change a thing....

Gotta love the Linux quirks sometimes...
 
Old 02-11-2011, 10:26 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Kewl!
Can you mark this as [SOLVED] via "Thread Tools" (up at the top of the page). Maybe hit "Yes" next to any posts that might have been helpful?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB pen drives not auto prompting or auto mounting on KDE3.5 (PCLOS) k.king Linux - General 1 03-17-2009 03:16 PM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 06:42 PM
eth0 Auto Connect, How to auto start on logon cornish Linux - Networking 2 05-09-2005 12:02 PM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration