DHCP Server Commands
OL-32830-01 Command Line Interface Reference Guide
290
12
12.13 lease
To configure the time duration of the lease for an IP address that is assigned from a
DHCP server to a DHCP client, use the lease command in DHCP Pool Network
Configuration mode. To restore the default value, use the no form of this command.
Syntax
lease
days
[
hours
[
minutes
]] |
infinite
no lease
Parameters
•
days
—Specifies the number of days in the lease.
•
hours
—(Optional) Specifies the number of hours in the lease. A
days
value
must be supplied before configuring an
hours
value.
•
minutes
—(Optional) Specifies the number of minutes in the lease. A
days
value and an
hours
value must be supplied before configuring a
minutes
value.
•
infinite—Specifies that the duration of the lease is unlimited.
Default Configuration
The default lease duration is 1 day.
Command Mode
DHCP Pool Network Configuration mode
Examples
The following example shows a 1-day lease.
switchxxxxxx(config-dhcp)#
lease 1
The following example shows a one-hour lease.
switchxxxxxx(config-dhcp)#
lease 0 1
Summary of Contents for 300 Series
Page 2: ......