LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcp lease time algorithm apparently imprecise? (http://www.linuxquestions.org/questions/linux-networking-3/dhcp-lease-time-algorithm-apparently-imprecise-866243/)

dagril 03-03-2011 11:24 AM

dhcp lease time algorithm apparently imprecise?
 
The system I am working on is a xdsl board running Linux kernel 2.6 and receiving dhcp address from a Microsoft XP PC. What is weird to me is that when looking through the dhclient.leases file I can see there's something wrong with renew time and stuff...strange calculation...as far as you know is this normal? Anyonw know anything about the applied algorithm? You may find below the dhclient.lease file. Thanks in advance!

lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "***";
medium "-link0 -link1 -link2";
option subnet-mask 255.255.0.0;
option dhcp-lease-time 86400;
option routers 10.0.100.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.100.1;
option ntp-servers 10.0.100.1;
option vendor-encapsulated-options "***";
renew 5 2011/2/25 08:37:00;
rebind 5 2011/2/25 18:49:04;
expire 5 2011/2/25 21:49:04;
}
lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "***";
medium "-link0 -link1 -link2";
option subnet-mask 255.255.0.0;
option dhcp-lease-time 86400;
option routers 10.0.100.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.100.1;
option ntp-servers 10.0.100.1;
option vendor-encapsulated-options "***";
renew 5 2011/2/25 19:07:57;
rebind 6 2011/2/26 05:37:00;
expire 6 2011/2/26 08:37:00;
}
lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "***";
medium "-link0 -link1 -link2";
option subnet-mask 255.255.0.0;
option dhcp-lease-time 86400;
option routers 10.0.100.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.100.1;
option ntp-servers 10.0.100.1;
option vendor-encapsulated-options "***";
renew 5 2011/2/25 19:29:51;
rebind 6 2011/2/26 06:49:46;
expire 6 2011/2/26 09:49:46;
}
lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "***";
medium "-link0 -link1 -link2";
option subnet-mask 255.255.0.0;
option dhcp-lease-time 86400;
option routers 10.0.100.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.100.1;
option ntp-servers 10.0.100.1;
option vendor-encapsulated-options "***";
renew 5 2011/2/25 21:56:19;
rebind 6 2011/2/26 07:11:46;
expire 6 2011/2/26 10:11:46;
}
lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "***";
medium "-link0 -link1 -link2";
option subnet-mask 255.255.0.0;
option dhcp-lease-time 86400;
option routers 10.0.100.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.100.1;
option ntp-servers 10.0.100.1;
option vendor-encapsulated-options "***";
renew 5 2011/2/25 20:41:29;
rebind 6 2011/2/26 07:17:08;
expire 6 2011/2/26 10:17:08;
}
lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "****p";
medium "-link0 -link1 -link2";
option subnet-mask 255.255.0.0;
option dhcp-lease-time 86400;
option routers 10.0.100.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.100.1;
option ntp-servers 10.0.100.1;
option vendor-encapsulated-options "****";
renew 5 2011/2/25 22:35:44;
rebind 6 2011/2/26 08:07:05;
expire 6 2011/2/26 11:07:05;
}

rafatmb 03-03-2011 12:09 PM

Try to take a look at: http://www.daemon-systems.org/man/dhcpd.leases.5.html

Good Luck!

[]'s

Rafa
Linux, Linux and Linux! Suporte Linux

dagril 03-04-2011 03:29 AM

Hi,
not helped too much, but thanks anyhow, appreciate it.


All times are GMT -5. The time now is 11:37 PM.