Re: Hotplug and Multipath routes = lost route

From: Dâniel Fraga
Date: Wed Jul 25 2007 - 23:10:12 EST


On Wed, 25 Jul 2007 18:05:44 +0200
Patrick McHardy <kaber@xxxxxxxxx> wrote:

> Simple solution, use fallback routes:
>
> default
> nexthop via dev eth1 ...
> nexthop via dev eth2 ...
> default nexthop via dev eth1 ..
> default nexthop via dev eth2 ..
>
> Removing either interface will cause the multipath route and
> one of the other default routes to be removed and the remaining
> one can take over.

Nice solution. Thanks.

But now I see that I won't use multipath, since I couldn't find
a way to force a specific route to be default all times, except when
it's dead. For example if route 1 has weight "256" and route 2 has
weight "128", route 1 will be used more, but it doesn't prevent route 2
from be used. They both will have a flow ratio of 2:1, right?

I'd like that route 1 will be used all the time, except
when itÅ dead. In other words, route 2 will be used *only* when route 1
is dead.

Thank you.

--
Linux 2.6.22: Holy Dancing Manatees, Batman!
http://www.lastfm.pt/user/danielfraga
http://u-br.net
Talk Talk - "It's My Life" (It's My Life)

-
To unsubscribe from this list: 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