Technical data

Table Of Contents
78
2. If the client lease option is "default", then the server goes up one level (to the subnetwork) and uses
the lease time explicitly specified for the subnetwork.
3. If the client and
subnetwork lease options are both "default", then the server goes up one level
(global) and uses the lease time defined at the global level (server).
4. Lease time:
The minimum lease time is 1 hour.
The global default is 168 hours.
Commands
The following commands are used by network administrators to control lease time.
To set the lease time explicitly for the client lease, use:
dhcp set lease <
ipaddr
> <
hours
>
To set the lease time explicitly for the subnetwork lease, use:
dhcp set lease <
net
> <
hours
>
To set the lease time explicitly for the global lease, use:
dhcp set lease <
hours
>
Examples:
To set the lease time to "default" for the client 192.168.254.17, type:
dhcp set lease 192.168.254.17 default
To set the subnetwork lease time to infinite for the subnet 192.168.254.0, type:
dhcp set lease 192.168.254.0 infinite
To set the global lease time to 2 hours, type:
dhcp set lease 2
Manually changing client leases
Administrators will generally NOT need to change client leases manually. However, if the need arises to do
so, use the following commands.
WARNING
: The client will not be aware that the administrator has changed or released a client lease!
This command will change the client lease expiration time to a given value:
dhcp set expire <
ipaddr
> <
hours
>
Setting the expiration time to “default” will cause the server to compute the lease time using the algorithm as
described in section C
, Setting the lease time
.
Use this command to release the client lease so it becomes available for other assignments:
dhcp clear expire <
ipaddr
>