What if two tinc daemons received the same Subnet but with different weight?

Guus Sliepen guus at tinc-vpn.org
Wed Aug 23 08:10:19 CEST 2017


On Sat, Aug 19, 2017 at 09:21:11AM +0800, Bright Zhao wrote:

> Two tinc networks/daemons, and received same subnet from the two daemons, how tinc will choose which one is preferred? And the weight settings in each daemon for subnet will or will not be the judge?

If you use weights for Subnets, then the Subnet with the lowest weight
will be chosen, unless the node that owns that Subnet is offline, in
which case the Subnet with the next lowest weight is chosen.

If there are two completely identical Subnets, then it's currently
undefined what happens (in practice it will choose the one with the
lowest name alphabetically, but don't rely on that).

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20170823/2c86cd0b/attachment.sig>


More information about the tinc mailing list