Re: dhcp-users Digest, Vol 161, Issue 2

Timothe Litt <[email protected]> Sun, 13 Mar 2022 08:39:54 -0400
Newsgroups gmane.network.dhcp.isc.dhcp-server
Message-ID <[email protected]>
On 13-Mar-22 08:00, [email protected] wrote:
> Date: Sat, 12 Mar 2022 16:41:11 +0000
> From: Simon<[email protected]>
> To: Users of ISC DHCP<[email protected]>
> Subject: Re: Dhcp.leases manually edit
> Message-ID:<[email protected]>
> Content-Type: text/plain;	charset=utf-8
>
> JT ISC<[email protected]>  wrote:
>
>> However, I have been wondering if you can stop dhcpd service and add in a new lease the very end of the dhcpd.leases file using the correct format for lease start and end times as well as the MAC address.  Then start the dhcpd service again and the dhcpd server update the lease that you just manually created with any new updated information.
> Yes, it?s something I?ve done when I?ve had special requirements - e.g. creating a new reserved lease for a device.
>
> >From memory you might not even need times - it?s sufficient to create a skeleton entry with the IP address, the MAC address or Client-ID the device will use, and in my case, the ?reserved? flag. When the client contacts the server, the server will fill everything else in as required.
>
> Simon

If you edit, it's best to script the process, including checking syntax, 
duplicates, etc, to avoid inducing most problems.

See also omshell (1) / OMAPI, which avoids service interruptions (as 
does failover).

-- 
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
OpenPGP_signature (application/pgp-signature, 495 B) - not displayed