Koozali.org: home of the SME Server

IP Leases

Krem

IP Leases
« 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

Andrew

Re: IP Leases
« Reply #1 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.