<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>I forgot to mention that the lease file is empty.<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> de la part de GRANGER Nicolas<br>
<b>Envoyé :</b> mercredi 15 janvier 2025 11:50:13<br>
<b>À :</b> dnsmasq-discuss@lists.thekelleys.org.uk<br>
<b>Objet :</b> [PROVENANCE INTERNET] [Dnsmasq-discuss] no address available with static range and dhcp-host</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi all,</p>
<p><br>
</p>
<p>I am unable to get dnsmasq to issue ip addresses to known hosts only. Upon <span>DHCPDISCOVER</span> it fails with <b>no address available</b>.</p>
<p><br>
</p>
<p>The network interface is called lan with ip address <span>192.168.2</span>.254/24</p>
<p><br>
</p>
<p><span>$ sudo dnsmasq -d --bind-interfaces -i lan --except-interface=lo --dhcp-range=192.168.2.0,static,255.255.255.0 --dhcp-host=ac:1f:xx:xx:xx:xx,192.168.2.19</span><br>
</p>
</div>
<div dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<br>
</div>
<p></p>
<div>dnsmasq: started, version 2.90 cachesize 150<br>
dnsmasq: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfile<br>
dnsmasq-dhcp: DHCP, static leases only on 192.168.2.0, lease time 1h<br>
dnsmasq-dhcp: DHCP, static leases only on 192.168.2.0, lease time 1h<br>
dnsmasq-dhcp: DHCP, sockets bound exclusively to interface lan<br>
dnsmasq: reading /etc/resolv.conf<br>
dnsmasq: using nameserver 127.0.0.53#53<br>
dnsmasq: read /etc/hosts - 8 names<br>
dnsmasq-dhcp: DHCPDISCOVER(lan) <span>ac:1f:xx:xx:xx:xx</span> <b>no address available</b></div>
<p></p>
<p><br>
</p>
<p>Any idea of what is wrong with this setup ?</p>
</div>
</div>
</body>
</html>