Move dhcp lease to new ip+reservation. How?

Gregory Sloop gregs at sloop.net
Fri Aug 27 17:06:37 UTC 2021


An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20210827/b01d7741/attachment.htm>
-------------- next part --------------
 


> Gregory Sloop <gregs at sloop.net> wrote:

>> However, I've kind of struggled at knowing exactly what OMAPI commands to use to create the skeleton lease (What I've tried doesn't work) and what, exactly, to do to "expire" the "old" lease. (There doesn't appear to be any way to remove the lease - it looks like all you can do is expire it. (Though I'm not sure if setting the end-time to 0, or something else is the "way" to do it.)

>> Simon - if you have scripts I could look at, it would be very handy - or at least tell me what attributes you set (and to what).
>> OMAPI and I don't get on very well. (I feel like a bumbling fool any time I try to figure out how to do anything in it.)

> I just stop the server and edit the leases file - I only run a home server these days. I never did run anything “big enough” that I needed to do online maintenance and never used OMAPI.

> All you need to create for a skeleton lease is (from memory) :

> lease {
>   hardware 1:xx......;
>   address 192.168....;
>   reserved;
> }

Ah. Bummer. In this case, we've got perhaps 400+ devices on the network getting leases and using fail-over.
 
Stopping and editing the leases file isn't much of an option - especially since operating hours are pretty wide. (Doing it occasionally would work, but I'd like a way I can do this maintence during a regular operating day, instead of 4a in the morning.)
 
I guess I'll just setup a VM here and test against a test server and poke/prod until I think I've got it figure out. I've been playing with the production server, which is a little scary.
 
Can anyone confirm that you _can_ create a new empty lease (like above) with OMAPI?
(I should have kept better track of my searches on the topic. I know I've seen people claiming they've successfully expired a lease, but I'm not sure I've seen any where they are creating new leases.)
 
Thanks again!
 
-Greg


More information about the dhcp-users mailing list