dhcp-users Digest, Vol 161, Issue 2

Timothe Litt litt at acm.org
Sun Mar 13 12:39:54 UTC 2022


On 13-Mar-22 08:00, dhcp-users-request at lists.isc.org wrote:
> Date: Sat, 12 Mar 2022 16:41:11 +0000
> From: Simon<dhcp1 at thehobsons.co.uk>
> To: Users of ISC DHCP<dhcp-users at lists.isc.org>
> Subject: Re: Dhcp.leases manually edit
> Message-ID:<ED93C8D4-A29C-4EC9-B0BD-3A9377DF802F at thehobsons.co.uk>
> Content-Type: text/plain;	charset=utf-8
>
> JT ISC<jtisc88 at gmail.com>  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).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20220313/11634449/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20220313/11634449/attachment.sig>


More information about the dhcp-users mailing list