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 06-29-2006, 04:36 PM   #1
ohalnet
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Rep: Reputation: 0
Ping reply problem


Hi mates : )

Here is my question,

I have drawn a figure and ask my question on the figure in order to make your work easier.

please visit the link below and see my question.

img.photobucket.com/albums/v211/feyk38/linux.jpg

OR

you can read it below,

here is the problem:

There are 2 PCs (PC A and PC B)and one ethernet switch.

---PC B---
PC B(LINUX RED HAT 8.0) has 4 fast ethernet cards installed on it. All four ethernet ports of the PC B are connected to the switch.
Assigned IP Addresses On computer B’s ethernet ports:
eth 0: 10.10.10.1
eth 0: 10.10.10.2
eth 0: 10.10.10.3
eth 0: 10.10.10.4

---PC A---
PC A has 1 fast ethernet card installed on it.
4 command Line windows are open on the PC,
a ping command runs on each window at the same time.

Command Line Window 1: > ping 10.10.10.1
Command Line Window 2: > ping 10.10.10.2
Command Line Window 3: > ping 10.10.10.3
Command Line Window 4: > ping 10.10.10.4

---------------
Purpose of the setup: Ping 4 ethernet ports of PC B from PC A at the same time

Problem: Since all the IP addresses of the PC B are in the same network (10.10.10.0) ping replies come back to PC A only from eth1 (It is the first ethernet port shown on the routing table of the PC B).

From PC A’s point of view, it looks ping replies come from all 4 ports. But when you unplug the eth1's connection, all of the 4 windows on PC A shows: “request time out”

Question: We want PC B to reply packets from all of it’s 4 ports. Is it possible to make this setup work on Linux (with the same IP addresses).

PS: I know assigning different network IP addresses to PC B’s ports is much better idea but cant do it due to my unique situation.
Strange but with the same setup and same IP assignment, it works properly if the PC B’s operating system is XP

I'll really appreciate If anybody can help me, thanks in advance : )
 
Old 06-29-2006, 10:22 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
ahalnet

I do not know if I can help but a couple of things. Is the switch a netgear switch (they have a bad history with linux and ping). I am not sure what you are trying to accomplish with this setup but I suspect you might want to look at channel bonding (teaming or trunking are other names) in a failover mode for high availability of connection or in mode 6 for high through put.

Just a couple of random thoughts.

Lazlow

Last edited by lazlow; 06-29-2006 at 10:23 PM.
 
Old 06-29-2006, 10:27 PM   #3
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Have you assigned the ips in seperate interfaces or as the suinterface of the ethX ?
 
Old 06-30-2006, 03:04 AM   #4
ohalnet
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
hi avijitp

I have assigned the IP addresses to seperate interfces. (each of the 4 rhysical ethernet ports has it's own IP address. by teh way tx for helping.

lazlow,

tx for your attempt to help. it's not a netgear.
 
Old 06-30-2006, 03:50 AM   #5
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
If you assign IPs with the same subnet to different eth interfaces, you need add routing rules.
Otherwise, your system will simply say:
"ping 10.0.0.x"
=> Hmmm. It's subnet 10.0.0. And eth0 (or eth1) is on that subnet.
The packets should thus be sent out via that interface.
Hence it'll always use the same interface to send out the ping packets.

Check out the "route" command and search this forum for similar threads. I've seen a few of them around.
 
  


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
how can i stop ping reply? Guru Mind Linux - Security 22 02-07-2006 05:24 PM
Slow First Ping Reply Fr33B5D Linux - Networking 4 08-27-2005 10:07 AM
Configure ping reply time rabeea General 6 01-27-2005 02:08 AM
No ping reply bambolin Linux - Networking 6 10-29-2004 06:18 AM
no ping reply siriuz Linux - Networking 2 03-16-2004 01:53 AM

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

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