Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 : )
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.