On Tue, Aug 09, 2005 at 10:38:21AM +0300, Al Boldi wrote:
> Kernel IP routing table
> Destination   Gateway Genmask         Flags   Iface
> 10.0.0.1              0.0.0.0 255.255.255.255 UH              eth0
> 10.0.1.1              0.0.0.0 255.255.255.255 UH              eth1
> 10.0.0.0              0.0.0.0 255.255.255.0     U             eth0
> 10.0.1.0              0.0.0.0 255.255.255.0     U             eth1
> 10.0.0.0              0.0.0.0 255.0.0.0                 U             eth0
> 127.0.0.0             0.0.0.0 255.255.255.0     U             lo
> 
> Why does the Kernel route a packet from
> 10.0.1.2 netmask 255.0.0.0 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.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to