Re: ARP routing issue

From: James Courtier-Dutton
Date: Fri Jan 14 2005 - 18:03:11 EST


Jan De Luyck wrote:
On Thursday 06 January 2005 17:06, Steve Iribarne wrote:

Hi Jan,


-> default gateway is set to 10.0.22.1, on eth0.
->
-> Problem is, if I try to ping from another network
-> (10.216.0.xx) to 10.0.24.xx, i see the following ARP request:
->
-> arp who-has 10.0.22.1 tell 10.0.24.xx
->

You see that coming out the eth0 interface??

If that is the case it is most definately wrong. Assuming that your
masks are setup properly. But I haven't worked on the 2.4 kernel for a
long time so I'm not so sure if what you are seeing is a bug that has
been fixed.


The network information is:
eth0 10.0.22.xxx mask 255.255.255.0
eth1 10.0.24.xxx mask 255.255.255.0

routing:
10.0.22.0 0.0.0.0 255.255.255.0 eth0
10.0.24.0 0.0.0.0 255.255.255.0 eth1
0.0.0.0 10.0.22.1 0.0.0.0 eth0

Jan


That arp is perfectly OK.
The routing table will cause the icmp echo packet to go from 10.216.0.xx to 10.0.24.xx via the 10.0.24.x network.
The icmp echo response will return via the 10.0.22.x network back to the 10.216.0.xx network.
So the paths in each direction are different.

the "arp who-has 10.0.22.1 tell 10.0.24.xx", you can safely ignore the "10.0.24.xx" bit, as that will be ignored by the device responding to the ARP.
It is just highlighting the point that you have 2 paths to the same destination.

Cheers

James

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