Koozali.org: home of the SME Server

refresh/release script for dhcp leases in server-manager

Craig Jensen

refresh/release script for dhcp leases in server-manager
« on: January 06, 2003, 06:29:46 PM »
This would be cool...

Charlie Brady

Re: refresh/release script for dhcp leases in server-manager
« Reply #1 on: January 06, 2003, 08:19:39 PM »
Craig Jensen wrote:
>
> This would be cool...

If you are talking about dhcp leases for the machines on your LAN, then it cannot be done. DHCP doesn't work that way. There is no way to revoke a DHCP lease. Once a client has a lease, it has a lease (until it expires). It may renew the lease, but the server can't ask it to do so. The same goes for relinquishing the lease. The client can do it; the server can do nothing but wait until is expires.

If you are talking about the DHCP lease your server has from your cable provider, then you can renew the lease by doing:

ifdown eth1
ifup eth1

from a root shell prompt.

Charlie

Craig Jensen

Re: refresh/release script for dhcp leases in server-manager
« Reply #2 on: January 06, 2003, 08:34:46 PM »
Is there a default duration of a lease?  I will have to learn more
abut DHCP, and maybe assign static IP's.  It sounds like most of the
control, once a lease is assigned, is on the client side.


Craig Jensen

guestHH

Re: refresh/release script for dhcp leases in server-manager
« Reply #3 on: January 07, 2003, 11:40:11 AM »
here's a contrib that may help to review DHCP leases.

http://www.star-support.com/downloads/mitel/contrib/DHCP-manager-panel/

In order to change the standard dhcp settings, you must understand 'templating' your SME box (see http://www.e-smith.org/custom/). Then search these forums (all) for DHCP.

Hope it helps a bit.

Regards,
guestHH