<div dir="ltr">On 16 January 2014 10:51, Robert Collins <span dir="ltr"><<a href="mailto:robertc@robertcollins.net" target="_blank">robertc@robertcollins.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> 1. assigned to the interface attached to default gateway<br></blockquote><div><br></div><div>Which you may not have, or may be on the wrong interface (if I'm setting up a control node I usually have the default gateway on the interface with the API endpoints, which I emphatically don't use for internal traffic like tunnelling)<br>

 <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> 2. being in the specified network (CIDR)<br></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> 3. assigned to the specified interface<br>
>    (1 can be considered a special case of 3)<br></div></blockquote><div><br></div><div>Except that (1) and (2) specify a subnet and a single address, and an interface in (3) can have multiple addresses.<br><br></div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How about 4. Send a few packets with a nonce in them to any of the<br>
already meshed nodes, and those nodes can report what ip they<br>
originated from.<br></blockquote><div><br></div><div>Which doesn't work unless you've discovered the IP address on another machine - chicken, meet egg...<br><br></div><div>I appreciate the effort but I've seen people try this repeatedly and it's a much harder problem than it appears to be.  There's no easy way, for a given machine, to guess which interface you should be using.  Robert's suggestion of a broadcast is actually the best idea I've seen so far - you could, for instance, use MDNS to work out where the control node is and which interface is which when you add a compute node, which would certainly be elegant - but I'm concerned about taking a stab in the dark at an important config item when there really isn't a good way of working it out.<br>

<br></div><div>Sorry,<br></div><div>--<br></div><div>Ian.<br></div></div></div></div>