static route multipath problem

Ondrej Zajicek santiago at crfreenet.org
Fri Sep 19 12:55:33 CEST 2014


On Thu, Sep 18, 2014 at 02:56:32PM +0800, 守得云开 wrote:
>  can i setup like this, 11, 12 and 13 is the ip of ppp0, ppp1 and ppp2:
>  ------------------------------
> route 0.0.0.0/0 multipath
>      via 10.10.10.11 weight 2
>      via 10.10.10.12 weight 3
>      via 10.10.10.12 weight 4;

This should work

> ------------------------------
>  or link this:
>  ------------------------------
> route 0.0.0.0/0 multipath
>      via 10.10.10.1 dev ppp0 weight 2
>      via 10.10.10.1 dev ppp1 weight 3
>      via 10.10.10.1 dev ppp2 weight 4;

We do not currently support 'dev' option here, but you could use this:

 route 0.0.0.0/0 multipath
      via 10.10.10.1%ppp0 weight 2
      via 10.10.10.1%ppp1 weight 3
      via 10.10.10.1%ppp2 weight 4;

This is syntax for link-local IPv6 addresses like fe80::1234:5678%eth0,
but works also for regular IPv4 addresses.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20140919/475659c7/attachment.asc>


More information about the Bird-users mailing list