LinuxQuestions.org
Visit Jeremy's Blog.
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 01-09-2009, 09:43 AM   #1
rozeboom
LQ Newbie
 
Registered: Oct 2003
Distribution: CentOS5
Posts: 20

Rep: Reputation: 0
Question about unplugged NIC behavior in Linux


I'm working on some software that regularly pings another server's IP addresses to detect whether that IP (and therefore the server) is on the network. One means of testing this software is to physically unplug the NIC from the network. However, when I have multiple NICs (eth0, eth1, eth2...) if I unplug 1 or 2, the associated addresses only become unavailable momentarily and then come back alive even while the cable is still unplugged. Unplugging only eth0 causes all addresses to become unavailable. It's almost as if the other addresses get re-routed through eth0, but eth0's address never re-routes through the other NICs.

The addresses of the NICs are all on the same subnet, in my test.
I can simulate the behavior of the software with a couple of ping sessions to each address, so this isn't a problem with the software itself. I'm trying to understand the underlying network config.

Can anyone explain why Linux would behave like this? Is this some kind of high-availability feature? Is there a way to disable this functionality so that the cards act independently?
 
Old 01-09-2009, 01:22 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by rozeboom View Post
Can anyone explain why Linux would behave like this? Is this some kind of high-availability feature? Is there a way to disable this functionality so that the cards act independently?
Are all the cards the same, and therefore using the same driver? If so, it might be a driver bug.
 
Old 01-09-2009, 01:39 PM   #3
rozeboom
LQ Newbie
 
Registered: Oct 2003
Distribution: CentOS5
Posts: 20

Original Poster
Rep: Reputation: 0
It happens on virtual machines as well as physical. In the case of the physical, the cards are not the same. I have an Intel 82540EM Gigabit and 3Com 3c905B cards in the physical machine I am testing on. We've tried this on RedHat, SLES10, and CentOS and seen the same results.

Here are some results from further testing we've done.
· 2 NICs on the same network and subnet – Unplug eth0 and pings to both NICs report “Destination Unreachable”.

· 2 NICs on the same network and subnet – Unplug eth1 and the unplugged NIC cease to return pings for about 70 seconds then resumes returning pings, even though eth1 is still unplugged. ßTwilight Zone music here.

· 2 NICs on different physical networks – Unplug eth0 or 1 and the unplugged NIC reports “Destination Unreachable” while the one still connected ping stops updating. It doesn’t error out it just stops responding with no ping errors.
 
  


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
Linux router, windows network cable unplugged smOk3 Linux - Networking 5 05-02-2008 11:34 PM
Odd NIC/DHCP behavior after reboot phouse Slackware 7 05-23-2007 05:22 PM
Network Cable Unplugged on Windows Caused by Linux Redhat 9.0 nader_hos Linux - Networking 8 07-26-2006 02:24 AM
Making dhcpd listen to unplugged NIC Steamrunner Linux - Networking 4 07-25-2005 04:53 AM
Weird behavior of NIC after boot-up in FC3 logo Fedora 2 02-05-2005 01:47 AM

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

All times are GMT -5. The time now is 05:57 PM.

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