[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhclient renews lease every 5 secs



begin  quotation of David Purton:

> This is finally driven me nuts enough to try and fix it.
> 
> I use dhcp to get an ip address from my dlink dsl 300+ modem.
> 
> The problem is, that it wants to renew it every 5 seconds and syslog
> *fills* up with this sort of log message:
> 
> Jul 23 22:41:29 vetinari dhclient-2.2.x: DHCPREQUEST on eth1 to 203.87.20.175 port 67
> Jul 23 22:41:29 vetinari dhclient-2.2.x: DHCPACK from 203.87.20.175
> Jul 23 22:41:29 vetinari dhclient-2.2.x: bound to 203.87.20.174 -- renewal in 5 seconds.
> 
> 
> I've tried stuffing around with dhclient.conf to try and specify the
> lease time, but I can't get it working.

In dhclient.conf there's an option for renew; I assume this is the one
that didn't work for you (if not, look at dhclient.conf(5)).
 
Otherwise, this doesn't seem like your problem; DHCP servers are the
ones to set lease time.  For example, in ISC DHCPD, one of the first
options set is 'default-lease-time'.  Perhaps your ISP has this set
low?  If you can boot to another Linux distribution (knoppix, perhaps)
and you still see the excessive messages, this is probably the case.
There's not much you can do short of calling your ISP and telling them
that they're wasting bandwidth; if it gets annoying, tell syslog to
shunt DHCP off to another log that you rotate much more frequently.

Attachment: signature.asc
Description: Digital signature


Reply to: