Re: Dhcp.leases manually edit

Simon <[email protected]>
Newsgroups gmane.network.dhcp.isc.dhcp-client
Message-ID <ED93C8D4-A29C-4EC9-B0BD-3A9377DF802F__15569.2191956163$1647103296$gmane$org@thehobsons.co.uk>
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

-- 
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.