subnet-down
Naemr .
naemrr at gmail.com
Thu Mar 23 18:33:05 CET 2017
On Mar 22, 2017 6:27 PM, "Lars Kruse" <lists at sumpfralle.de> wrote:
Hi,
Am Wed, 22 Mar 2017 07:51:23 +0100
schrieb Guus Sliepen <guus at tinc-vpn.org>:
> [..]
> 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
tinc at tinc-vpn.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20170323/1c4e3b7a/attachment.html>
More information about the tinc
mailing list