<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 18, 2015 at 4:59 AM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
</span>Changing the dnsmasq configuration, specifically dhcp-host entries,<br>
won't affect any current DHCP leases, so if you want to end a DHCP<br>
lease early (maybe to re-use the address) then you'll need to call use<br>
dhcp_release. That can be before or after sending SIGHUP it doesn't<br>
matter.<br></blockquote></div><br>Simon,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for clear explanation. Then I think I might find a bug. I manually execute dhcp_release. I can also see the log like:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><span style="font-size:12.8000001907349px"> Feb 15 06:12:45 dnsmasq-dhcp[3521]: DHCPRELEASE(eth2) 10.11.0.3 fa:e1:51:0b:a5:00</span></div><div class="gmail_extra"><span style="font-size:12.8000001907349px"><br></span></div><div class="gmail_extra"><span style="font-size:12.8000001907349px">But when I try to assign the IP to a new MAC, dnsmasq still report:</span></div><div class="gmail_extra"><span style="font-size:12.8000001907349px"><br></span></div><div class="gmail_extra"><div style="font-size:12.8000001907349px"> Feb 15 06:13:13 dnsmasq[3521]: duplicate dhcp-host IP address 10.11.0.3 at line 1 of /etc/hosts.dhcps//fa:e9:4a:40:7f:00</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">And when the VM is starting up, dnsmasq.log will say:</div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> Feb 15 06:13:23 dnsmasq-dhcp[3521]: DHCPDISCOVER(eth2) fa:e9:4a:40:7f:00 no address available</span><br></div><div style="font-size:12.8000001907349px"><div><br></div></div></div><div class="gmail_extra">Do you think if it is an issue? </div><div class="gmail_extra"><br></div><div class="gmail_extra">BTW, if dhcp_release works, I think it might be faster than inotify finds the config is missed.<br clear="all"><div><br></div>-- <br><div class="gmail_signature">Yongkang You</div>
</div></div>