2

Multiple NICS in same machine in same subnet

view story
linux-howto

http://forums.fedoraforum.org – Hi, I have a program that attaches to an interface. I can run two copies of the program on two systems (each running one instance), connect it to a switch, say 1.1.1.1 & 1.1.2.1. In this configuration two instances of the program can communicate and everything is fine. Now, to reduce cost, it want to use only one system with two nics connected to the same switch, running two instances of the above program, each instance attached to two interfaces respectively on the system. I have the following settings: eth1 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXX inet addr:1.1.1.1 Bcast:1.1.1.255 Mask:255.255.255.0 inet6 addr: fe80::5447:deff:feaa:31/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth2 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXX inet addr:1.1.2.1 Bcast:1.1.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 1.1.2.0 * 255.255.255.0 U 0 0 0 eth2 1.1.1.0 * 255.255.255.0 U 0 0 0 eth1 However I cannot ping one from the other. Neither "ping -I eth1 1.1.2.1" nor "ping -I eth2 1.1.1.1" works. Does anyone have any suggestions? Please let me know. (HowTos)