![](http://pdfasset.owneriq.net/3/88/3884ec60-08cc-bac4-b176-2f6590d63c88/3884ec60-08cc-bac4-b176-2f6590d63c88-bg411.png)
IP Configuration Command Set
Configuring Dynamic Host Configuration Protocol (DHCP)
Matrix NSA Series Configuration Guide 12-129
12.2.9.15 lease
Use this command to specify the duration of the lease for an IP address assigned by a DHCP server
to a client.
lease {days [hours] [minutes] | infinite}
Syntax Description
Command Syntax of the “no” Form
The “no” form of this command resets the lease duration to the default value of 1
day (24 hours):
no lease
Command Type
Router command.
Command Mode
Any DHCP configuration mode.
Command Defaults
If hours or minutes are not specified, no values will be configured.
Example
This example shows how to set a one-hour lease to the “localpool” address pool:
days Specifies the number of days an address lease will remain
valid.
hours (Optional) When a days value has been assigned, specifies
the number of hour an address lease will remain valid.
minutes (Optional) When a days value has been assigned, specifies
the number of minutes an address lease will remain valid.
infinite Specifies that the duration of the lease will be unlimited.
Matrix>Router1(config)#ip dhcp pool localpool
Matrix>Router1(config-dhcp-pool)#lease 0 1