LinuxQuestions.org
Help answer threads with 0 replies.
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 12-02-2010, 07:39 PM   #1
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Cable link-down + link-up disables wired ethernet


I have a sticky situation, and hope someone can help me find a solution. The setup is a Dell laptop (Open Suse 11.3) with a wired ethernet (also wireless, but that doesn't seem to be involved with this problem). The laptop serves as a router between the wireless and the wired ethernet. Exactly one device lives on the wired side; an Arm single-board Linux box connected directly through a cross-over cable (it works with a straight cable, too, and I thought that may have exacerbated the problem, but it seems to have been irrelevant). The laptop also serves as a NFS server for the Arm linux box. All that works great.
The problem is that when the Arm box reboots, the wired ethernet link seen by the laptop goes down, and the ethernet loses its IP. The message log says:
Code:
avahi-daemon[2608]: Withdrawing address record for 192.168.0.1 on eth0.
This becomes a real problem when the Arm box wants to establish an NFS connection to the laptop. It seems only human intervention will bring the wired ethernet back to life, and by that time the re-boot of the single-board Arm box has stalled. The overall system is intended to run for long periods unattended, and at times in remote locations.
It would be great if the link-down condition would not cause the wired ethernet to lose its IP. I have tried disabling the avahi-daemon, but this does not work either.
The ifcfg-eth0 file for the unruly ethernet looks like:
Code:
ONBOOT='yes'
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IFPLUGD_PRIORITY='20'
IPADDR='192.168.0.1/16'
IPV6INIT='no'
MTU=''
NAME='RTL8111/8168B PCI Express Gigabit Ethernet controller'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='yes'
ETHTOOL_OPTS='speed 100 duplex full autoneg off'
The problem goes away if I put an ethernet switch between the two devices, but the reason I'm using a laptop is that it supposed to be a highly portable system, and an extra box in the system (including power source and an additional cable) is considered quite undesirable. A software solution is strongly preferred.
Thanks.

--- rod.

Last edited by theNbomr; 12-02-2010 at 07:41 PM.
 
Old 12-03-2010, 07:46 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
1000base-t and most 100Base-t have auto-sense capabilities so a cross over cable is not required anymore. My first guess is that when the ARM box reboots it can not reestablish a link which means the laptop does not have a line either and so the address is withdrawn. Is the ARM box set for auto negotiation? Try configuring both boxes for auto negotiation and see what happens.
 
Old 12-03-2010, 08:43 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399

Original Poster
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Thanks for your response.
Quote:
when the ARM box reboots it can not reestablish a link
It doesn't even get that far. As soon as the Arm board shuts down, the laptop loses its link-up state, and the IP is withdrawn. Also, if the cable is disconnected, even briefly. I have tried enabling/disabling auto-negotiation on both ends, and it hasn't changed anything.
Do you know where the connection is made between the link status and the maintenance of an IP? It doesn't seem that the two should be necessarily tied together? Could the origins of this lie in the ethernet driver? Perhaps a driver argument can fix it? Just spitballing; I will explore that avenue.

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] ADSL2+ internet connection using D-link DSL-502T modem/router via ethernet cable twum_au Linux - Newbie 7 09-13-2010 12:19 AM
Advantage Using an Ethernet link + a Wireless Link?? drmjh Linux - General 2 08-10-2009 07:54 AM
wired link between router and ethernet card shirishag75 Linux - Hardware 4 01-28-2009 03:15 AM
Linux on D-Link DI-524 (wireless) or Dynex DX-E401 (wired) des_a Linux - Networking 1 11-20-2008 07:23 PM
ADSL access over Ethernet (cable) with D-Link DSL-2640T Router and Mandriva 2008 Pow JGuillou Linux - Newbie 2 08-24-2008 09:51 AM

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

All times are GMT -5. The time now is 10:37 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