<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
On 13-Mar-22 08:00, <a class="moz-txt-link-abbreviated" href="mailto:dhcp-users-request@lists.isc.org">dhcp-users-request@lists.isc.org</a> wrote:<br>
<blockquote type="cite"
cite="mid:mailman.1.1647172800.75177.dhcp-users@lists.isc.org">
<pre class="moz-quote-pre" wrap="">Date: Sat, 12 Mar 2022 16:41:11 +0000
From: Simon <a class="moz-txt-link-rfc2396E" href="mailto:dhcp1@thehobsons.co.uk" moz-do-not-send="true"><dhcp1@thehobsons.co.uk></a>
To: Users of ISC DHCP <a class="moz-txt-link-rfc2396E" href="mailto:dhcp-users@lists.isc.org" moz-do-not-send="true"><dhcp-users@lists.isc.org></a>
Subject: Re: Dhcp.leases manually edit
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:ED93C8D4-A29C-4EC9-B0BD-3A9377DF802F@thehobsons.co.uk" moz-do-not-send="true"><ED93C8D4-A29C-4EC9-B0BD-3A9377DF802F@thehobsons.co.uk></a>
Content-Type: text/plain; charset=utf-8
JT ISC <a class="moz-txt-link-rfc2396E" href="mailto:jtisc88@gmail.com" moz-do-not-send="true"><jtisc88@gmail.com></a> wrote:
</pre>
<blockquote type="cite" style="color: #007cff;">
<pre class="moz-quote-pre" wrap="">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.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">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
</pre>
</blockquote>
<p>If you edit, it's best to script the process, including checking
syntax, duplicates, etc, to avoid inducing most problems.<br>
</p>
<p>See also omshell (1) / OMAPI, which avoids service interruptions
(as does failover).</p>
<p><br>
</p>
<p>
</p>
</body>
</html>