randomly(!) assign ip's from dynamic address range

Alex Bligh alex at alex.org.uk
Fri Jun 5 19:28:40 UTC 2015


On 5 Jun 2015, at 15:05, Simon Hobson <dhcp1 at thehobsons.co.uk> wrote:

> Hmm, that's a variation I don't think we've seen before ;-)
> What you are seeing is correct operation according to the RFCs - the server is required to keep the address stable as far as is possible, and that means the client can come back after an arbitrary length of time and as long as the address has not been re-used then the client *must* get the same address.
> With the ISC server, addresses are allocated in the following order :
> - The address the client had previously if it is still available
> - An address which has never been issued before
> - An expired lease, picking the least recently used one
> - If there are no free leases available, then any abandoned leases are recovered and tried
> - Else - there isn't one, log "no free leases"

In practice isn't the first address allocated the one the client asks for? IE normally the client is getting
the same address because the client requests it, and it's free.

-- 
Alex Bligh






More information about the dhcp-users mailing list