Re: Kernel Routing sequence

From: Marc Haber
Date: Tue Aug 09 2005 - 02:52:56 EST

On Tue, Aug 09, 2005 at 10:38:21AM +0300, Al Boldi wrote:
> Kernel IP routing table
> Destination Gateway Genmask Flags Iface
> UH eth0
> UH eth1
> U eth0
> U eth1
> U eth0
> U lo
> Why does the Kernel route a packet from
> netmask out to eth1?

Neither packet source address nor netmask do affect the routing
decision. It is only done based on the target address.

ip route list match <target-address>

is a big helper on systems that have iproute installed.


Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at