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@xxxxxx>
|