<div dir="ltr"><div>it's basically low budget HA. <br></div><div>"how can we swap out this server and not have it's IP hard coded into it's config?"</div><div>(server = box hosing mmqt server)<br></div><div> Where its config is its local drive and conf files.  <br></div><div>It lets the dhcp server control all the IPs.  which may change over time, and the server and replacement server image don't care because they and everything else on the LAN will do dhcp.</div><div><br></div><div>The problem got kicked down the road.   current solution: "if we are swapping out server hardware, someone can poke the dhcp server and make it release the lease."</div><div><br></div><div>I'm pretty sure this is the answer: <br></div><div> /etc/dhcp/dhclient.conf <br></div><div>#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;</div><div><br></div><div>I think I can set<br></div><div><div>send dhcp-client-identifier foo;</div><div>on both servers, and both will be seen as "the same" to the dhcp server, as if the first box had been power cycled. <br></div><div><br></div></div><div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 14, 2019 at 2:13 AM Geert Stappers <<a href="mailto:stappers@stappers.nl">stappers@stappers.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Oct 04, 2019 at 08:37:03AM +0200, john doe wrote:<br>
> On 10/4/2019 1:25 AM, Geert Stappers wrote:<br>
> > On Thu, Oct 03, 2019 at 06:01:17PM -0500, Carl Karsten wrote:<br>
> >> On Thu, Oct 3, 2019 at 4:54 PM Geert Stappers wrote:<br>
> >>> On Thu, Oct 03, 2019 at 03:52:35PM -0500, Carl Karsten wrote:<br>
> >>>> I want to know if this is in spec, or needs out of spec hacks:<br>
> >>>><br>
> >>>> For any dhcp client request, server gives the same IP.<br>
> >>>><br>
> >>>> The use case: dnsmasq is serving on 1 interface, and a client will be<br>
> >>>> directly connected to that interface - no hub/switch/vlan etc. So there can<br>
> >>>> only be 1 device ever connected, and I want that device to have 10.1.2.3<br>
> >>>> - even if I yank  it and plug in a 2nd device with a different mac etc.<br>
> >>>> The device should get 10.1.2.3.<br>
> >>>><br>
> >>>> Even if the previous lease has not expired.    which is where I suspect<br>
> >>>> this gets sketchy.   But maybe the spec has a prevision for this.<br>
> >>>><br>
> >>><br>
> >>> Quoting manual page of dnsmasq<br>
> >>><br>
> >>><br>
> >>> --dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-addr>[,<end-addr>|<mode>][,<netmask>[,<broadcast>]][,<lease time>]<br>
> >>><br>
> >>><br>
> >>>> I want to know if this is in spec, or needs out of spec hacks:<br>
> >>><br>
> >>> Please let us, the mailinglist archive, know if<br>
> >>><br>
> >>>     dhcp-range=10.1.2.3,10.1.2.3,255.255.255.248<br>
> >>><br>
> >>> serves the request.<br>
> >><br>
> >> What I don't know is how the lease comes into play<br>
> >> when the 2nd machine comes on line.<br>
> ><br>
> <br>
> To always get the same Ip address regardless of the device you connect<br>
> to the server you could try the following (untested):<br>
> <br>
> dhcp-range=192.168.1.4,192.168.1.4,1m<br>
<br>
It would be nice to share the test results.<br>
<br>
Elaborating on how the "original problem" evoled would also be nice.<br>
<br>
<br>
Groeten<br>
Geert Stappers<br>
-- <br>
Leven en laten leven<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Carl K<br></span></div></div>