Hi~<div>Thanks for the help.</div><div><br><div>I did as what you told me. When I restart the network service, I find the new lease file appeared in the folder is dhclient-xxx...xxx-eth0.lease, I don't know what the "xxx" means. (the xxx is a string contains digit, char and -). Also I am wondering why the file name is not dhclient.leases. </div>
<div><br></div><div>Another question is that the file in '/var/lib/dhcp' seems not the result of the config file '/etc/dhcp/dhclient.conf', because I added one private option in the config file, but it does not show in the leases file. If I designated in the command line, the result leases file contains the private option information.</div>
<div>By the way, I downloaded the DHCP source code and installed it.</div></div><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 7:40 AM, Edward DeLargy <span dir="ltr"><<a href="mailto:eddelargy@gmail.com">eddelargy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Morning,<br> Hope this helps:<br> The dhclient lease information should only be stored in the var/lib/dhclient folder. You should rm -rf * inside that folder to totally clear old info. Also, depending on your dhcp config you may find traces inside the network-scripts for the particular interface. A service network restart should clear anything out after you remove all old files. Those are the only two places I can think of that cache dhclient lease information. If you don't remove the old options eventually the old address could pop back in due to the TTL set in your primary dhcp.conf file. <br>
<br>Ed<br><br><br><div class="gmail_quote"><div><div class="h5">On Sat, Mar 17, 2012 at 12:09 AM, Chengyu Fan <span dir="ltr"><<a href="mailto:chengy.fan@gmail.com" target="_blank">chengy.fan@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi~<div>Does anyone know that where does the latest dhcp options store?</div><div>I released the old lease using "dhclient -r", and then request a new lease (I add a new option in the config file) using "dhclient ". The option I mentioned is a private option numbered 246. According to the packets I captured, the request and response is all OK, but I don't know where does the dhclient store this option.</div>
<div><br></div><div>I searched the file /var/lib/dhcp/dhclient.leases, but it is not there...</div><span><font color="#888888"><div><div><br></div>-- <br>Regards,<br>Chengyu Fan<br>
</div>
</font></span><br></div></div>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br>
<br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Chengyu Fan<br>