On Mar 22, 2017 6:27 PM, "Lars Kruse" <[email protected]> wrote:

Hi,


Am Wed, 22 Mar 2017 07:51:23 +0100
schrieb Guus Sliepen <[email protected]>:

> [..]
> 1. Use different weights for the otherwise identical Subnets, and ensure
>    you pass that along to the route up/down commands so the kernel can
also
>    distinguish them.

in linux the following command within "subnet-up" accomplishes that
behaviour:

 ip route add "$SUBNET" dev "$INTERFACE" metric "$WEIGHT"


Cheers,
Lars

_______________________________________________
tinc mailing list
[email protected]
https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc

I would use replace rather than add

 ip route replace "$SUBNET" dev "$INTERFACE" metric "$WEIGHT"

Achieves the same goal and avoids exists error.
_______________________________________________
tinc mailing list
[email protected]
https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc

Reply via email to