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

Simon Hobson simon at thehobsons.co.uk
Fri Jun 5 16:32:19 UTC 2015


Sean McMurray <sean at mvtel.com> wrote:

> You could maintain two config files with pools that do not overlap but are within the same subnet. Then you could cron a dhcpd restart that alternates the config files every 24 hours.

That will do it - but it also means that clients will change address mid-session - breaking any existing connections. For all the reasons that get listed when the usual variation of this question comes up, that's a recipe for "unhappy customers".

On a more granular level (ie requiring less than double the required number of addresses), you could do it with several pools and have (say) 9 out of 10 pools active at any time - that would just need 11% extra addresses. It would still have the issue of killing active sessions when a client has it's address pulled from under it.



More information about the dhcp-users mailing list