Re: Move dhcp lease to new ip+reservation. How?

Simon <[email protected]>
Newsgroups gmane.network.dhcp.isc.dhcp-client
Message-ID <[email protected]>
Gregory Sloop <[email protected]> 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;
}

The server will fill in the rest as it goes.

Simon

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/dhcp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.