Move dhcp lease to new ip+reservation. How?

Simon dhcp1 at thehobsons.co.uk
Fri Aug 27 09:36:23 UTC 2021


Gregory Sloop <gregs at sloop.net> wrote:

> I've thought about pre-creating leases for 51-70 and essentially adding "bogus" information for those leases and reserving them. (While allowing unknown-clients for the 51-70 pool - but since they're all "taken" it won't hand one out),  Then when I want to move something there, I can remove the "bogus" reservation and move the "real" lease to the appropriate IP in the 51-70 block/pool.

That’s what I’ve done for a small pool I’ve created at home for some devices - I wanted to segregate (isolate) some IoT stuff that others insist on having in the house.
When you move the device, as well as assigning it to the reserved lease (which as you’ve probably realised, only initially needs to be a skeleton entry with MAC, IP, and the reserved flag), you need to remove it’s other lease(s) to ensure that it changes address.

I don’t run failover, so I don’t know what you’ll need to do in terms of making the two servers agree on the details - e.g. whether it’s enough to do it on one with OMAPI and it’ll get copied by the failover setup, or whether you have to do it to both servers separately.

Simon



More information about the dhcp-users mailing list