<div dir="ltr"><div class="gmail_quote">On Tue, Dec 27, 2011 at 9:56 AM, Robert Wallner <span dir="ltr"><<a href="mailto:kodixos@gmail.com">kodixos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In a DHCP server setup, I have 2 requirements:<br>
<br>
1. Each client's mac address must be recorded in a database together<br>
with the IP address assigned.<br>
2. Every new assigned IP address must be given from now on to the same<br>
mac address only, and to nobody else.<br>
<br>
The first one is easy, I use the on-submit event handler to run an<br>
external program to insert the mac address in the database.<br>
I have problems with the second one. The same external program scans<br>
the database, and generates a config file for the DHCP server that is<br>
included from the main config file, and contains "fixed-address"<br>
entries for all the mac addresses. The problem is how I make the<br>
server reload it's configuration files, from it's own "on-submit"<br>
event handler??<br>
<br>
Or am I completely in the wrong direction?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br><br>Couldn't both requirements be solved[*] by using:<br><br>default-lease-time infinite;<br>max-lease-time infinite;<br>min-lease-time infinite;<br>
<br>in dhcpd.conf ?<br><br>-- Shimi<br></div></div><br>[*] I tried answering myself, and found [1] which claims the lease will hold for 914M seconds [per a sniffer]. From some reason he believes that would be 14.4 years. My Kcalc said 914M/(86400*365) is actually 28.98 years... Wouldn't we have to worry about Bug 2038 first?<br>
<br>[1] <a href="https://lists.isc.org/pipermail/dhcp-users/2009-February/008040.html">https://lists.isc.org/pipermail/dhcp-users/2009-February/008040.html</a><br></div>