On 2019-06-23 03:32, Geert Stappers wrote: > On 23-06-2019 08:06, A C wrote: > >> I'm having trouble removing leases from my system. I have a client that >> accepted a lease in my DHCP range before I remembered to put it in >> /etc/ethers and /etc/hosts to give it a static lease. >> >> I turned off the client, stopped dnsmasq, removed the lease file entry >> in /var/lib/misc/dnsmasq.leases and then restarted dnsmasq. Then I >> restarted the client. It again found the original lease in my DHCP >> range instead of picking one from /etc/ethers (in fact it reports "not >> giving name ap.lan to the DHCP lease of 10.0.200.102 because the name >> exists in /etc/hosts with address 10.0.0.252"). >> >> How can I fully purge the lease and get it to start over? The client is >> an embedded device and has no memory of the lease once I power cycle it >> so somehow dnsmasq is remembering even though the lease file was purged. >> > Recently I had simular sympthoms, infact still have them. > > It give me the akward feeling that `readethers` does not work as I expect. > > Because it was the first time that i used Dnsmasq with /etc/ethers I > choose to continue with the netboots I have to do. > > > Yes, most likely will it bite me another time. > > Meanwhile send your report of (successfull) mapping of IPv4 address on > MAC address through /etc/ethers > > > Cheers > > Geert Stappers
/etc/ethers works fine for me, I have 50 clients listed in it, no issues. My only issue is when I forget to add a client to the list prior to first putting it online and it acquires a lease from the DHCP lease pool instead of the IP I want to give it via the combination of ethers/hosts. After that I have extreme difficulty purging the lease to force a new address. _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss