Chapter 16: DHCP Server with Port-Based IP Assignment Commands
344
LEASE
Syntax
lease <days> <hours> <minutes> [<seconds>]
Parameters
days
Number of days, from 0 to 120, for the lease expiry time. The
default is 1 day.
hours
Number of hours, from 0 to 24, for the lease expiry time. The
default is 0 hours.
minutes
Number of number of minutes, from 0 to 60, for the lease expiry
time. The default is 0 minutes.
seconds
Number of seconds, from 0 to 60, for the lease expiry time. The
default is 0 seconds.
Mode
DHCP Configuration
Description
Use this command to set the lease expiration time for the DHCP pool.
The time set by the days, hours, minutes, and seconds is cumulative. The
minimum total lease time that can be configured is 20 seconds. The
maximum total lease time that can be configured is 120 days.
Example
This example sets the lease expiration time for pool P1 to 35 minutes.
awplus# configure terminal
awplus(config)# ip dhcp pool P1
awplus(dhcp-config)# lease 0 0 35