lease
This command defines the address lease time assigned to the DHCP pool on the specified interface.
Syntax
lease <days> [hours] [minutes]
Command |
Description |
---|---|
<days> |
Sets the number of days (mandatory). Range is 0 to 365. |
<hours> |
Sets the number of hours. Range is 0 to 23. |
<minutes> |
Sets the number of minutes. Range is 0 to 59. |
Default
By default, the lease time is set to 1 hour.
Related Commands
This command is also available from the interface configuration sub-directory. See ip dhcp-server.
Command Mode
Privileged User
Example
This example enters ip dhcp pool on VLAN 5 and sets the lease time to 5 hours and 15 minutes.
(dhcp-conf-VLAN 5)# lease 0 5 15