Re: Kernel Routing sequence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 10 Aug 2005, Al Boldi wrote:

But:  ip route list match 10.0.1.2/8 reveals:
10.0.0.0/8 dev eth0  proto kernel  scope link  src 10.0.0.1

Is it possible to instruct the kernel to use the dest-mask instead of
just letting it assume /32 ?

What do you want exactly?

  ip route list match 10.0.1.2/8

is equivalent to

  ip route list match 10.0.0.0/8

as you have specified that only the highmost 8 bits are relevant in the address.


To change your routing use "ip route add/del".

To include the source address in your routing decisions see "ip rule add/remove" and the Linux Advanced Routing howto.

Regards
Henrik
-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux