Koozali.org: home of the SME Server

Legacy Forums => Suggestions => Topic started by: Craig Jensen on January 06, 2003, 06:29:46 PM

Title: refresh/release script for dhcp leases in server-manager
Post by: Craig Jensen on January 06, 2003, 06:29:46 PM
This would be cool...
Title: Re: refresh/release script for dhcp leases in server-manager
Post by: Charlie Brady 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
Title: Re: refresh/release script for dhcp leases in server-manager
Post by: Craig Jensen 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
Title: Re: refresh/release script for dhcp leases in server-manager
Post by: guestHH 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