<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Thank you Albert. I guess where I was going wrong was thinking that the static lease addresses referenced in a dhcp-host config needed to fall within another configured dhcp-range. So I guess I should just be able to remove that line from my configuration and have the same behavior as before (the first 128 ips in my subnet not being dynamically allocated but needing dhcp-host configurations).</div> <br> <div id="bloop_sign_1467820166787812096" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Matthew Keeler<br></div></div><p class="airmail_on">On July 6, 2016 at 11:45:44, Albert ARIBAUD (<a href="mailto:albert.aribaud@free.fr">albert.aribaud@free.fr</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hi Matthew,
<br>
<br>Le Wed, 6 Jul 2016 10:31:05 -0400
<br>Matthew Keeler <<a href="mailto:mjkeeler7@gmail.com">mjkeeler7@gmail.com</a>> a écrit:
<br>
<br>> I have been using dnsmasq for a while on my local network with
<br>> several dhcp ranges specified. One of them no longer parses in v2.76
<br>> although it did in v2.75.
<br>>  
<br>> dhcp-range=10.3.2.1,10.3.2.127,static,255.255.254.0,infinite
<br>>  
<br>> It looks like it is now no longer valid to have a start and end ipv4
<br>> address with the static mode where this was allowed previously. Was
<br>> this an intentional removal? My understanding (which may be
<br>> incorrect) was that to have a ip range reserved for dhcp reservations
<br>> required having the dhcp range specified and the dhcp-hosts specified
<br>> to ips that fall within that range. Then that range would have the
<br>> static mode to prevent auto assignment of ips to other unknown hosts.
<br>>  
<br>> If this is intended behavior and not a bug, how can I allocate an IP
<br>> range for DHCP reservations? I think something like the following
<br>> should work to produce the same results although it is a rather ugly
<br>> solution as it requires adding tags in many, many places.
<br>>  
<br>> dhcp-range=tag:reserved,10.3.2.1,10.3.2.127,255.255.254.0,infinite
<br>> dhcp-host=00:01:02:03:04:05,set:reserved,10.3.2.7,myhost
<br>
<br>What do you mean by "reservations"? Static leases? For that you need
<br>nothing more than a dhcp-host= line mapping the MAC or DUID to a static
<br>IPv4 address, for each static lease you want.
<br>
<br>The static keyword in dhcp-range= tells dnsmasq to not do dynamic
<br>allocation, so basically a range is useless (as far as allocation is
<br>concerned) if you specify static.
<br>
<br>I personally define my dhcp-range= line without static and with a
<br>small range for the odd guest machine, and my dhcp-host= lines with IPv4
<br>addresses lying outside that range -- but even if a static lease IP
<br>address fell within the dynamic DHCP range, dnsmasq would not use that
<br>address for dynamic allocation.
<br>
<br>Amicalement,
<br>--  
<br>Albert.
<br></div></div></span></blockquote></body></html>