[Dnsmasq-discuss] no address available with static range and dhcp-host

GRANGER Nicolas nicolas.granger at cea.fr
Wed Jan 15 12:59:16 UTC 2025


I forgot to mention that the lease file is empty.

________________________________
De : Dnsmasq-discuss <dnsmasq-discuss-bounces at lists.thekelleys.org.uk> de la part de GRANGER Nicolas
Envoyé : mercredi 15 janvier 2025 11:50:13
À : dnsmasq-discuss at lists.thekelleys.org.uk
Objet : [PROVENANCE INTERNET] [Dnsmasq-discuss] no address available with static range and dhcp-host


Hi all,


I am unable to get dnsmasq to issue ip addresses to known hosts only. Upon DHCPDISCOVER it fails with no address available.


The network interface is called lan with ip address 192.168.2.254/24


$ 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


dnsmasq: started, version 2.90 cachesize 150
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
dnsmasq-dhcp: DHCP, static leases only on 192.168.2.0, lease time 1h
dnsmasq-dhcp: DHCP, static leases only on 192.168.2.0, lease time 1h
dnsmasq-dhcp: DHCP, sockets bound exclusively to interface lan
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 127.0.0.53#53
dnsmasq: read /etc/hosts - 8 names
dnsmasq-dhcp: DHCPDISCOVER(lan) ac:1f:xx:xx:xx:xx no address available


Any idea of what is wrong with this setup ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20250115/595f2fbb/attachment.htm>


More information about the Dnsmasq-discuss mailing list