Very Unusual Problem ->maybe related to IP Aliasing

Hormuzd KHOSRAVI (khosravi@eden.rutgers.edu)
Wed, 28 Jul 1999 11:39:21 -0400 (EDT)


Hi,

i have been faced with a very wiered problem. I have set up a testbed
consisting of a 2 hosts and 1 router (all linux boxes). The router has 2
interface cards and both have different subnet addresses and the router
has been configured to route packets between the subnets. The 2 hosts have
different subnet addresses and route packets to each other via the
router(gw). They are all connected thru the same physical hub though !

The problem is that the ping works fine from host1 to host2 but from
host2 to host1 it only works after the arp cache in all the 3 machines
have got updated with the hardware addresses. it doesnt work otherwise.

could anyone have a clue what the problem could be ??

The answer could be related to the fact that on the router one of the
interface address that i am using for routing is configured as an alias.

I would also appreciate if someone could point me out to any bugs that
have been reported in IP Aliasing in kernel 2.2.2. Thanks a lot.

Regards,
Hormuzd.

p.s. more details of my configuration are as follows :

Ping works fine from 10.1.10.1 > 10.1.11.1 but does not work from
10.1.11.1 > 10.1.10.1 "without updated arp caches".

-------------------------------------------------------------------------
router: eth0 -> IP address 10.1.10.2 Mask 255.255.255.0 (this is an alias
address)
eth1 -> IP address 10.1.11.2 Mask 255.255.255.0

routing table :

Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.10.0 * 255.255.255.0 U 0 0 0 eth0
10.1.11.0 * 255.255.255.0 U 0 0 0 eth1
-------------------------------------------------------------------------
host1 : eth0 -> IP address 10.1.10.1 Mask 255.255.255.0

routing table :

Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.10.0 * 255.255.255.0 U 0 0 0 eth0
10.1.11.0 10.1.10.2 255.255.255.0 UG 0 0 0 eth0
-------------------------------------------------------------------------
host2: eth0 -> IP address 10.1.11.1 Mask 255.255.255.0

routing table :

Destination Gateway Genmask Flags Metric Ref Use Iface

10.1.10.0 10.1.11.2 255.255.255.0 UG 0 0 0 eth0
10.1.11.0 * 255.255.255.0 U 0 0 0 eth0
-------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/