I see.<br><br>Thank you for the trick. Surely this is what I will do.<br><br>Best regards.<br><br><div class="gmail_quote">On Sun, Aug 7, 2011 at 1:47 PM, Simon Hobson <span dir="ltr"><<a href="mailto:dhcp1@thehobsons.co.uk">dhcp1@thehobsons.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br></div>
It isn't an option and never has been.<br>
<br>
The allocation algorithm is, in decreasing priority :<br>
1) Allocate an address that has never been used before.<br>
2) Re-allocate a previously used address on a least recently used basis.<br>
3) Recover an abandoned lease.<br>
<br>
Step 1 uses the order the unused addresses end up in a hash table, which in the current implementation is top-down and sequential.<br>
<br>
What you may have been seeing in the past is an "old" server with no never-used addresses left. Once that state is reached, allocation will appear random.<br>
<br>
What you could do is to knock up a script that will create dummy leases with random end times in the past and pre-pend that to the leases file. So stop the server, stick a bunch of dummy leases on the front of the leases file, restart the server. There will now be no unused addresses and future allocations will now appear random - they are actually determinate if you know the contents of the leases file, but from an outside view they will now be "random".<br>
<br>
Why prepend rather than append ? Well if you happen to duplicate an existing lease, then by prepending the real lease entry will take precedence as the server reads the leases file back in. That means you can just create dummy leases for an entire range without having to worry about conflicts.<br>
<br>
-- <br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.<u></u>magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
______________________________<u></u>_________________<br>
dhcp-users mailing list<div class="im"><br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
</div><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/<u></u>listinfo/dhcp-users</a><br>
</blockquote></div><br>