[mesh-dev] Route selection question
Mitar
mitar at tnode.com
Wed May 27 05:41:21 PDT 2015
Hi!
Random comment. Policy routing is really helpful. You can then have
routes from a routing protocol in one routing table, then default/WAN
routes in another.
ip rule
Mitar
> I thought I understood how route selection works: Most specific route is
> always selected.
>
> So if you have a route for 10.0.0.0/8 and another for 10.0.0.0/24 then the
> /24 will be selected when the destination falls within the /24
>
> This works as expected.
>
> However, if I add a /32 route e.g. 10.0.0.42/32 then it gets prioritized
> _lower_ than the /8 and /24
>
> Why does this happen and is there anything I can do about it?
>
> Example:
>
>> ip route add 10.0.0.42/32 src 10.0.0.1 dev eth0
>
>> ip route add 10.0.0.0/24 src 10.0.0.1 dev eth0
>
>> ip route
>
> 10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.1
> 10.0.0.0/8 dev eth0 proto kernel scope link src 10.0.0.1
> 10.0.0.42 dev eth0 proto kernel scope link src 10.0.0.1
>
> Aaaa! Why is the /32 all the way at the bottom?
>
> In other news: Made some progress on extender node stuff tonight. I decided
> to use VLANs to put both the open and adhoc networks on the extender nodes
> and have updated the configs for tp-link and extender node accordingly.
>
>
>
> _______________________________________________
> mesh-dev mailing list
> mesh-dev at lists.sudoroom.org
> https://sudoroom.org/lists/listinfo/mesh-dev
>
--
http://mitar.tnode.com/
https://twitter.com/mitar_m
More information about the mesh-dev
mailing list