Hi,
Simon Kelley wrote:
Dnsmasq will give that same address after a power failure as long as it recognises the same machine. There are situations involving DHCP client-id options which can cause a machine to not be recognised when it reboots. Check the FAQ for details of this.
Sorry, I should have read it.
Can you give a specific example of behaviour which you think is wrong? Please include the logs of DHCP interactions which dnsmasq puts in the syslog.This afternoon we reboot a machine on a knoppix cd, the address get via dhcp is ok (15:26:16).
After that we reboot the machine (gentoo), but we do a hard reset so there are no dhcprelease, and the host get 10.0.0.7 as ip address instead of 10.0.0.14 (16:22:18).
In /var/lib/misc/dnsmasq.leases , there were 2 entries for 00:d0:b7:4d:d4:3a one for 10.0.0.14 and one for 10.0.0.7
That's surprising, but there must be good reasons to not thrust only the MAC address.
Thanks and sorry, for the false bug
Matthieu
Jan 21 15:08:11 Grid dnsmasq[1710]: DHCPDISCOVER(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:08:11 Grid dnsmasq[1710]: DHCPOFFER(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:08:11 Grid dnsmasq[1710]: DHCPREQUEST(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:08:11 Grid dnsmasq[1710]: DHCPACK(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:34:35 Grid dnsmasq[1710]: DHCPRELEASE(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:36:16 Grid dnsmasq[1710]: DHCPDISCOVER(eth0) 00:d0:b7:4d:d4:3a Jan 21 15:36:16 Grid dnsmasq[1710]: DHCPOFFER(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:36:16 Grid dnsmasq[1710]: DHCPDISCOVER(eth0) 00:d0:b7:4d:d4:3a Jan 21 15:36:16 Grid dnsmasq[1710]: DHCPOFFER(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:36:16 Grid dnsmasq[1710]: DHCPREQUEST(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 15:36:16 Grid dnsmasq[1710]: DHCPACK(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Knoppix Jan 21 16:22:18 Grid dnsmasq[1710]: DHCPDISCOVER(eth0) 10.0.0.14 00:d0:b7:4d:d4:3a Jan 21 16:22:18 Grid dnsmasq[1710]: DHCPOFFER(eth0) 10.0.0.7 00:d0:b7:4d:d4:3a Jan 21 16:22:18 Grid dnsmasq[1710]: DHCPREQUEST(eth0) 10.0.0.7 00:d0:b7:4d:d4:3a Jan 21 16:22:18 Grid dnsmasq[1710]: DHCPACK(eth0) 10.0.0.7 00:d0:b7:4d:d4:3a Jan 21 16:31:56 Grid dnsmasq[1710]: DHCPRELEASE(eth0) 10.0.0.7 00:d0:b7:4d:d4:3a