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 09-14-2005, 07:27 AM   #1
rani_162
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
Unhappy dual ethernet port ping problem


I have a x86 based PCM 6892 motherboard with a dual ethernet port 8139too.I am using Fedora Core 3 linux. I configured the devices so that eth0 has ip address x.x.x.1 and eth1 has ip address x.x.x.2. If eth0 cable is removed then x.x.x.1 and x.x.x.2 both do not respond to a ping request, whereas when eth1 cable is removed i get a response. I also tried bonding. I created a bond0 in active backup mode and enslaved eth0 and eth1. My problem was solved and i began to get response to ping even if one of the cables was removed. BUT if both the cables are present i recieve a DUPLICATE response to ping. Is there any solution?
Or is there any other solution other than bonding?
It would be ok even if i could configure the dual port so that it would behave like 2 separate ports
Thanking in anticipation
 
Old 09-15-2005, 05:46 PM   #2
daem
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian, RH8
Posts: 6

Rep: Reputation: 0
We have the same issue at the office. Two IP addresses over two NICs on the same subnet. The problem is that Linux picks one NIC to route the traffic out of and sticks to it. Only if you ifdown the NIC does it failover to the other connection. Your pings are being received by the server but it can't route them back out as the route it wants to send the traffic over isn't up (cos you unplugged the cable). You can see it in more detail by doing a netstat -rn

You'll see that there is one route for your subnet and it goes out of one NIC. The ip route command helps partially. It will instruct the routing table to send traffic back through the NIC it came in on, which will sort out your ping problem. However, if you need to initiate a connect from the Linux box itself, that will go down a black hole so not ideal.

Could do with a little more info on what you're trying to achieve here as there might be a better way of doing it. Are you looking for resilience across the two NICs? i.e. unplug one cable and you still have connectivity? or are you try to have more than one IP address to bind different applications to (e.g. multiple web instances).

If you're after resilience, then bonding should be the best way. I don't know why you'd be getting duplicate ping responses though I'm afraid.

D
 
Old 12-11-2005, 10:05 PM   #3
rani_162
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
First of all, sorry for replying so late. I was keeping track of replies but donno how I overlooked your reply.
Initially I was using RedHat 8.0, and when I configured them in bonding, active-backup mode, I used to get duplicate responses to pings when both the cables were intact.

Now I am working on X-Linux.I need to have the two ethernet NIC's configured on the same subnet, and routing based on the source address of the packet.Is there any way of achieving this? Currently it routes all packets from one NIC UNLESS you ifconfig it down, in which case it switches to the second NIC.Also I have not tried bonding in embedded linux yet(I dont know if it gives duplicate packets here also), so I have to try it out.

Basically I need to have both
1. Independent operation of NICs
2. Bonded operation of NICs

Thanks a lot for your reply,
Rani
 
  


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
dual ethernet port problem the_raj Linux - Networking 6 08-14-2005 11:28 AM
x86 board PCM 6892 with dual ethernet port.eth1 doesnt ping if eth0 cable removed rani_162 Linux - Newbie 0 07-23-2005 12:29 PM
Detailed problem with *i think* dual boot and ethernet card. OneNight Linux - Networking 8 11-11-2004 05:02 PM
realtek 8139 ethernet port problem. poortl9109 Linux - Networking 10 01-09-2003 11:07 AM
anyone can recomend a quad/dual port 10/100 ethernet card manaskb Linux - Hardware 3 11-11-2002 10:32 PM

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

All times are GMT -5. The time now is 12:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration