<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 3, 2019 at 4:54 PM 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 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>
--dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-addr>[,<end-addr>|<mode>][,<netmask>[,<broad?<br>
       cast>]][,<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>
<br></blockquote><div><br></div><div>That is half of this.  What I don't know is how the lease comes into play when the 2nd machine comes on line. <br></div><div>to be clear, the first machine will have its network cable unplugged, so no chance of it telling the server releasing the lease:<br></div><div><br></div><div><pre class="gmail-newpage">   DHCPRELEASE  -  Client to server relinquishing network address and
                   cancelling remaining lease.</pre></div><div>(really it is not the rj45 but the power cord being pulled.  yes, this is a hostel environment and who knows what will really happen.) <br></div><div><br></div><div>I suspect if i want this I need to have both clients use the same client ID.  But I am hoping there is a server side option to achieve the same thing.</div><div>(the goal is for all the networking config to be done server side, no tweaking client config.)<br></div><div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Groeten<br>
Geert Stappers<br>
-- <br>
Leven en laten leven<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span>Carl K<br></span></div></div></div>