dhclient question?

Kyle McDonald kmcdonald at egenera.com
Thu Mar 18 19:58:32 UTC 2010


I have a RedHat Ent. Linux 5u3 machine here, that is using dhclient to 
obtain a DHCP address.

I recently looked at teh /var/lib/dhclient/dhclient-eth1.leases file for 
another reason, and what I see leads me to beleive it is adding an 
additional lease {...} section to this file everytime the address is 
renewed?

Could that be right?
Should it be this way?
This file will just continue to grow if this continues no?

Why wouldn't it just continue to overwrite the original lease info with 
the renewed info? (The info is identical except for the last 3 lines.

Here's the contents of the file right now:

> lease {
>   interface "eth1";
>   fixed-address 172.30.171.126;
>   option subnet-mask 255.255.255.0;
>   option time-offset -18000;
>   option routers 172.30.171.254;
>   option dhcp-lease-time 43200;
>   option time-servers 172.30.172.30;
>   option dhcp-message-type 5;
>   option domain-name-servers 172.30.171.81;
>   option dhcp-server-identifier 172.30.171.30;
>   option unknown-150 "(nd)/pxeGRUB/Lin/RHEL3/u6/X32-b";
>   option broadcast-address 172.30.171.255;
>   option ntp-servers 172.30.171.30;
>   option host-name "Einstein06.RelEng.Egenera.COM";
>   option router-discovery false;
>   option domain-name "RelEng.Egenera.COM";
>   renew 4 2010/3/18 01:01:14;
>   rebind 4 2010/3/18 05:31:16;
>   expire 4 2010/3/18 07:01:16;
> }
> lease {
>   interface "eth1";
>   fixed-address 172.30.171.126;
>   option subnet-mask 255.255.255.0;
>   option time-offset -18000;
>   option routers 172.30.171.254;
>   option dhcp-lease-time 43200;
>   option time-servers 172.30.172.30;
>   option dhcp-message-type 5;
>   option domain-name-servers 172.30.171.81;
>   option dhcp-server-identifier 172.30.171.30;
>   option unknown-150 "(nd)/pxeGRUB/Lin/RHEL3/u6/X32-b";
>   option broadcast-address 172.30.171.255;
>   option ntp-servers 172.30.171.30;
>   option host-name "Einstein06.RelEng.Egenera.COM";
>   option router-discovery false;
>   option domain-name "RelEng.Egenera.COM";
>   renew 4 2010/3/18 06:08:52;
>   rebind 4 2010/3/18 11:31:19;
>   expire 4 2010/3/18 13:01:19;
> }
> lease {
>   interface "eth1";
>   fixed-address 172.30.171.126;
>   option subnet-mask 255.255.255.0;
>   option time-offset -18000;
>   option routers 172.30.171.254;
>   option dhcp-lease-time 43200;
>   option time-servers 172.30.172.30;
>   option dhcp-message-type 5;
>   option domain-name-servers 172.30.171.81;
>   option dhcp-server-identifier 172.30.171.30;
>   option unknown-150 "(nd)/pxeGRUB/Lin/RHEL3/u6/X32-b";
>   option broadcast-address 172.30.171.255;
>   option ntp-servers 172.30.171.30;
>   option host-name "Einstein06.RelEng.Egenera.COM";
>   option router-discovery false;
>   option domain-name "RelEng.Egenera.COM";
>   renew 4 2010/3/18 10:57:15;
>   rebind 4 2010/3/18 16:38:52;
>   expire 4 2010/3/18 18:08:52;
> }
> lease {
>   interface "eth1";
>   fixed-address 172.30.171.126;
>   option subnet-mask 255.255.255.0;
>   option time-offset -18000;
>   option routers 172.30.171.254;
>   option dhcp-lease-time 43200;
>   option time-servers 172.30.172.30;
>   option dhcp-message-type 5;
>   option domain-name-servers 172.30.171.81;
>   option dhcp-server-identifier 172.30.171.30;
>   option unknown-150 "(nd)/pxeGRUB/Lin/RHEL3/u6/X32-b";
>   option broadcast-address 172.30.171.255;
>   option ntp-servers 172.30.171.30;
>   option host-name "Einstein06.RelEng.Egenera.COM";
>   option router-discovery false;
>   option domain-name "RelEng.Egenera.COM";
>   renew 4 2010/3/18 15:49:16;
>   rebind 4 2010/3/18 21:27:15;
>   expire 4 2010/3/18 22:57:15;
> }
> lease {
>   interface "eth1";
>   fixed-address 172.30.171.126;
>   option subnet-mask 255.255.255.0;
>   option time-offset -18000;
>   option routers 172.30.171.254;
>   option dhcp-lease-time 43200;
>   option time-servers 172.30.172.30;
>   option dhcp-message-type 5;
>   option domain-name-servers 172.30.171.81;
>   option dhcp-server-identifier 172.30.171.30;
>   option unknown-150 "(nd)/pxeGRUB/Lin/RHEL3/u6/X32-b";
>   option broadcast-address 172.30.171.255;
>   option ntp-servers 172.30.171.30;
>   option host-name "Einstein06.RelEng.Egenera.COM";
>   option router-discovery false;
>   option domain-name "RelEng.Egenera.COM";
>   renew 4 2010/3/18 20:39:22;
>   rebind 5 2010/3/19 02:19:16;
>   expire 5 2010/3/19 03:49:16;
> }
Am I doing something wrong?

   -Kyle




More information about the dhcp-users mailing list