Can I dynamically change the server's data

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Nov 10 18:54:02 UTC 2006


At 09:16 -0500 10/11/06, Li Gan wrote:
>Hi there,
>
>
>I am now working for integrating isr-dhcp server into our software, is it
>possible to dynamically change the server's config data such as subnet, ip
>address pool, options., or I can only change the dhcpd.conf and then restart
>the server?

You have to restart the server. On and off there have been calls for 
a dynamic restart, but the concensus always seems to end up as "it 
would bring significant additional complexity (and scope for bugs) 
whilst providing little benefit over the stop-start operation 
currently done".

>Another question is  how can I get the information of my ip address pool,
>which ones are available, which ones are allocated.

Try the archives, there have been a number of scripts that will give 
you this information. The normal method is to read the config file 
for the subnet & range definitions, then read through the leases file 
to find out about leases. The leases file will always have all the 
information - just be aware that it is append only (apart from the 
hourly cleanup) so there can be multiple entries for any particular 
lease and the last one in the file is always the current one.


More information about the dhcp-users mailing list