View Full Version : [ubuntu] renewal time for dhcp

January 17th, 2011, 10:05 AM
I get this information by running "dhclient":

mahmood@localhost:~$ sudo dhclient
[sudo] password for mahmood:
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1f:d0:6f:38:89
Sending on LPF/eth0/00:1f:d0:6f:38:89
Sending on Socket/fallback
DHCPDISCOVER on eth0 to port 67 interval 3
DHCPREQUEST of on eth0 to port 67
DHCPACK of from
bound to -- renewal in 364 seconds.

As you can see, the renewal time is very short and I found regular and periodic disconnection. How can I increase that value?

January 17th, 2011, 03:28 PM
/etc/dhcp3/dhclient.conf has an option to
#send dhcp-lease-time 3600;
but the DHCP server should have an option to adjust lease times, too.

January 17th, 2011, 05:17 PM
should I remove the comment? or this the syntax of that file?

January 18th, 2011, 03:15 AM
I just copied that line from my machine - it'd need the comment removed to take effect.
Do you have a way to check settings on DHCP server? Is it only this machine that has a problem?

January 18th, 2011, 07:13 AM
No I don't access to dhcp server. However I will try what you said.