Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Krem on July 17, 2002, 10:51:29 PM

Title: IP Leases
Post by: Krem on July 17, 2002, 10:51:29 PM
I am running an NT network with Netbui protocol
I am running the E-Smith as the IP server

On a windows client I release and renew all IP leases, and it performs the operation but the leases expire 24 hours from doing this.

How tough is it to modify the lease length, as I am a real newbie to the linux stuff.  Our support company has closed and gone away.


Thanks
Title: Re: IP Leases
Post by: Andrew on July 19, 2002, 07:18:28 AM
E-smith actually does this in a safe an clever way.

Default lease time and max lease time are controlled by templates that are read at boot.  This way you don't have to modify the actual config files and risk stuffing them up.

Have a look in  /etc/e-smith/templates/etc/dhcpd.conf

Alter 25LeaseTimeDefault and 25LeaseTimeMax to the values that you want (in seconds).

I have them both set to 1800 which gives me 30 min leases.  I need short leases for network changes but you can set up anything you like.

Hope this helps.

Cheers,
Andrew.