lease
lease
To configure the duration of the lease for an IP address that is assigned from a Cisco IOS Dynamic Host Configuration Protocol (DHCP) Server to a DHCP client, use the lease DHCP pool configuration command. Use the no form of this command to restore the default value.
lease {days [hours][minutes] infinite }
no lease
Syntax Description
days | Specifies the duration of the lease in numbers of days. |
hours | (Optional) Specifies the number of hours in the lease. A days value |
| must be supplied before you can configure an hours value. |
minutes | (Optional) Specifies the number of minutes in the lease. A days value |
| and an hours value must be supplied before you can configure a |
| minutes value. |
infinite | Specifies the duration of the lease is unlimited. |
Defaults
One day
Command Modes
DHCP pool configuration
Usage Guidelines
This command first appeared in Cisco IOS Release 12.0(1)T.
Examples
The following example shows a
lease 1
The following example shows a
lease 0 1
The following example shows a
lease 0 0 1
The following example shows an infinite (unlimited) lease:
lease infinite
Related Commands
ip dhcp pool
Cisco IOS DHCP Server 35