Re: route sorting

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

 



W dniu 17.10.2011 14:22, Mr Dash Four pisze:
When I execute "route" to display my routing table all entries are
sorted by ip address (when -n is specified). This seems to be a bit
different from previous kernel versions (I am using 3.0.6) - 2.6.38 for
example - where the routing table used to show the most specific netmask
first (at the top), which is what I really wanted as it was very easy to
judge how a particular ip address is going to be routed. When I execute

Hello,
i can't help you with "sorting problem" but i can see the real problem is "i want to know which path will be used for given address ip". I suggest to use iproute2, e.g.: ip r g <address_ip>
This is output:
# ip r g 4.5.6.7
4.5.6.7 via 88.198.102.193 dev eth0  src 88.198.102.195
    cache

Regards
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux