Re: Bug with ARP - request source address on wrong subnet

From: David S. Miller (davem@redhat.com)
Date: Fri Aug 15 2003 - 14:01:39 EST


On Fri, 15 Aug 2003 14:45:50 +0100
Richard Underwood <richard@xxxxxxxxxxxxxxxxx> wrote:

> 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0

So you told the kernel it can get to the 10.10.10.0 subnet
over eth0. Why shouldn't it try to ARP over eth0 when
trying to resolve 10.10.10.X as a nexthop?

I think what you're really upset about is the source address choosen
by the kernel, and therefore you want to more precisely control the
kernel's default source address selection.

Please check out the "ip" command and how you can use it to
set the preferred source address used when a particular route
matches.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html