C
OMMAND
L
INE
I
NTERFACE
4-170

lease

Use this command to configure the duration that an IP address is assigned
to a DHCP client. Use the no form to restore the default value.
Syntax
lease {days [hours][minutes] | infinite}
no lease
days - Specifies the duration of the lease in numbers of days.
(Range: 0-364)
hours - Specifies the number of hours in the lease. A days value must
be supplied before you can configure hours. (Range: 0-23)
minutes - Specifies the number of minutes in the lease. A days and
hours value must be supplied before you can configure minutes.
(Range: 0-59)
infinite - Specifies that the lease time is unlimited. This option is
normally used for addresses manually bou nd to a BOOTP client via
the host command.
Default Setting
One day
Command Modes
DHCP Pool Configuration
Example
The following example leases an address to clients using this pool for 7
days.

host

Use this command to specify the IP address and network mask to
manually bind to a DHCP client. Use the no form to remove the IP
address for the client.
Console(config-dhcp)#lease 7
Console(config-dhcp)#