* multipath routing doesn't work with netlink
@ 2002-10-28 16:10 Rik van Riel
2002-10-28 22:54 ` Julian Anastasov
2002-10-30 6:37 ` Andi Kleen
0 siblings, 2 replies; 6+ messages in thread
From: Rik van Riel @ 2002-10-28 16:10 UTC (permalink / raw)
To: netdev; +Cc: Arnaldo Carvalho de Melo
Hi,
Am I doing something wrong or is there a kernel bug that
prevents multipath routing from working with NETLINK ?
# ip route add default via 10.0.16.1
# ip route add default via 10.0.17.2
RTNETLINK answers: File exists
# route add default gw 10.0.17.2
#
... of course, this last command just works and results in
a routing table like this:
# ip route
10.0.16.0/21 dev eth0 proto kernel scope link src 10.0.17.3
127.0.0.0/8 dev lo scope link
default via 10.0.17.2 dev eth0
default via 10.0.16.1 dev eth0
Is there a fundamental reason that iproute2 (using NETLINK) should
fail here, or is this a bug for which patches will be accepted ?
regards,
Rik
--
A: No.
Q: Should I include quotations after my reply?
http://www.surriel.com/ http://distro.conectiva.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multipath routing doesn't work with netlink
2002-10-28 16:10 multipath routing doesn't work with netlink Rik van Riel
@ 2002-10-28 22:54 ` Julian Anastasov
2002-10-28 23:04 ` Rik van Riel
2002-10-30 6:37 ` Andi Kleen
1 sibling, 1 reply; 6+ messages in thread
From: Julian Anastasov @ 2002-10-28 22:54 UTC (permalink / raw)
To: Rik van Riel; +Cc: netdev, Arnaldo Carvalho de Melo
Hello,
On Mon, 28 Oct 2002, Rik van Riel wrote:
> Am I doing something wrong or is there a kernel bug that
> prevents multipath routing from working with NETLINK ?
Not bug but a hidden feature :) You can define
alternative default routes with "ip route append".
> # ip route add default via 10.0.16.1
> # ip route add default via 10.0.17.2
> RTNETLINK answers: File exists
And this is "ip route prepend" (NLM_F_REQUEST|NLM_F_CREATE
without NLM_F_APPEND):
> # route add default gw 10.0.17.2
> #
> Is there a fundamental reason that iproute2 (using NETLINK) should
> fail here, or is this a bug for which patches will be accepted ?
You can reach exactly the text explaining these features
by searching for "prepend" in ip-cref.tex. Note that the paragraph
recommends to avoid them, may be something that Alexey will change
one day :)
> regards,
>
> Rik
Regards
--
Julian Anastasov <ja@ssi.bg>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multipath routing doesn't work with netlink
2002-10-28 22:54 ` Julian Anastasov
@ 2002-10-28 23:04 ` Rik van Riel
2002-10-28 23:31 ` Julian Anastasov
0 siblings, 1 reply; 6+ messages in thread
From: Rik van Riel @ 2002-10-28 23:04 UTC (permalink / raw)
To: Julian Anastasov; +Cc: netdev, Arnaldo Carvalho de Melo
On Mon, 28 Oct 2002, Julian Anastasov wrote:
> On Mon, 28 Oct 2002, Rik van Riel wrote:
> > # ip route add default via 10.0.16.1
> > # ip route add default via 10.0.17.2
> > RTNETLINK answers: File exists
>
> And this is "ip route prepend" (NLM_F_REQUEST|NLM_F_CREATE
> without NLM_F_APPEND):
"ip route prepend" doesn't work here, but "ip route append" does
exactly what is wanted.
Thank you,
Rik
--
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/ http://distro.conectiva.com/
Current spamtrap: <a href=mailto:"october@surriel.com">october@surriel.com</a>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multipath routing doesn't work with netlink
2002-10-28 23:04 ` Rik van Riel
@ 2002-10-28 23:31 ` Julian Anastasov
0 siblings, 0 replies; 6+ messages in thread
From: Julian Anastasov @ 2002-10-28 23:31 UTC (permalink / raw)
To: Rik van Riel; +Cc: netdev, Arnaldo Carvalho de Melo
On Mon, 28 Oct 2002, Rik van Riel wrote:
> "ip route prepend" doesn't work here, but "ip route append" does
> exactly what is wanted.
Try harder, it should work. Of course, append/prepend
fail too if the same route exists, they simply use different
keys for route uniqueness.
Regards
--
Julian Anastasov <ja@ssi.bg>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multipath routing doesn't work with netlink
2002-10-28 16:10 multipath routing doesn't work with netlink Rik van Riel
2002-10-28 22:54 ` Julian Anastasov
@ 2002-10-30 6:37 ` Andi Kleen
2002-11-04 13:14 ` jamal
1 sibling, 1 reply; 6+ messages in thread
From: Andi Kleen @ 2002-10-30 6:37 UTC (permalink / raw)
To: Rik van Riel; +Cc: netdev, Arnaldo Carvalho de Melo
There are two kinds of multipath routing in the kernel (which are differently
implemented in the kernel and do different things):
- default route failover. You configured it. It doesn't do any load balancing,
but when your default route stops working it'll eventually try the other
one. You configured that.
- real multipath routing.
It is configured by setting multiple nexthops to a single route
(ip route add ... nexthop ... )
The kernel will do load balancing by route (=srcip/dstip/tos tripple)
-Andi
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: multipath routing doesn't work with netlink
2002-10-30 6:37 ` Andi Kleen
@ 2002-11-04 13:14 ` jamal
0 siblings, 0 replies; 6+ messages in thread
From: jamal @ 2002-11-04 13:14 UTC (permalink / raw)
To: Andi Kleen; +Cc: Rik van Riel, netdev, Arnaldo Carvalho de Melo
On Wed, 30 Oct 2002, Andi Kleen wrote:
> - real multipath routing.
> It is configured by setting multiple nexthops to a single route
> (ip route add ... nexthop ... )
> The kernel will do load balancing by route (=srcip/dstip/tos tripple)
>
The only caveat is of course you have to wait for the cache entry to
expire ;-> (or ARPs to fail etc). I have a patch that will force specific
cache entries to be deleted via netlink; if theres a fireman/woman with
some time in their hand and willing to write something in user space,
contact me ;->
cheers,
jamal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-04 13:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 16:10 multipath routing doesn't work with netlink Rik van Riel
2002-10-28 22:54 ` Julian Anastasov
2002-10-28 23:04 ` Rik van Riel
2002-10-28 23:31 ` Julian Anastasov
2002-10-30 6:37 ` Andi Kleen
2002-11-04 13:14 ` jamal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).