<div dir="ltr"><div>Hi.</div><div><br></div><div>I did not manage to find any related discussion, so I'd like to ask this:</div><div><br></div><div>Using ISC DHCP 4.3.5 server and client.</div><div>DHCP server has these two entries in its dhcpd.leases (first lease at line 106, second at line 205):</div><div><br></div><div><span style="font-family:monospace">lease 1.1.1.17 {<br> starts 4 2020/08/13 00:40:24;<br> ends 0 2020/08/23 00:40:24;<br> tstp 0 2020/08/23 00:40:24;<br> cltt 4 2020/08/13 00:40:24;<br> binding state active;<br> next binding state free;<br> rewind binding state free;<br> hardware ethernet 00:0d:ca:00:0f:dd;<br> set lease_mac = "0:d:ca:0:f:dd";<br>}</span></div><div><span style="font-family:monospace">lease 1.1.1.28 {<br> starts 4 2020/08/13 03:03:13;<br> ends 0 2020/08/23 03:03:13;<br> tstp 0 2020/08/23 03:03:13;<br> cltt 4 2020/08/13 03:03:13;<br> binding state active;<br> next binding state free;<br> rewind binding state free;<br> hardware ethernet 00:0d:ca:00:0f:dd;<br> set lease_mac = "0:d:ca:0:f:dd";<br>}</span></div><div><br></div><div>This made me think that 1.1.1.28 is the newest lease and should be the valid one for the client.</div><div>But if I do renew on the client it is being offered 1.1.1.17 (timestamps are in different zone, port is custom):</div><div><br></div><div><span style="font-family:monospace">Aug 13 21:10:39 (none) <a target="_blank" class="gmail-c-link" href="https://slack-redir.net/link?url=http%3A%2F%2Fdaemon.info&v=3" rel="noopener noreferrer">daemon.info</a> dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 17787<br>Aug 13 21:10:39 (none) <a target="_blank" class="gmail-c-link" href="https://slack-redir.net/link?url=http%3A%2F%2Fdaemon.info&v=3" rel="noopener noreferrer">daemon.info</a> dhclient: DHCPACK from 1.1.1.1<br>Aug 13 21:10:41 (none) <a target="_blank" class="gmail-c-link" href="https://slack-redir.net/link?url=http%3A%2F%2Fdaemon.info&v=3" rel="noopener noreferrer">daemon.info</a> dhclient: bound to 1.1.1.17 -- renewal in 392208 seconds.</span>
</div><div><br></div><div>Since some of my applications rely on knowing valid DHCP client IPs, this is a problem.</div><div><br></div><div>I'd like to ask if that is a known issue or there may be something related to my network or DHCP config?</div><div>Am I misinterpreting the dhcpd.leases file? I thought DHCP server appends most recent leases at the end?</div><div><br></div><div>Thank you very much any help is much appreciated.</div><div><br></div><div>RegK<br></div><div><br></div></div>