Command:

lease


Mode:

Router(dhcp-config)#

Syntax:

lease {days [hours][minutes] | infinite}

no lease


Syntax Description:
days The lease time for the DHCP host in days.
hours The lease time for the DHCP host in hours.
minutes The lease time for the DHCP host in minutes.
infinite Set the lease time to never expire.

Command Description:

To change the lease value for an IP address, use the lease command. To restore the default value, use the no form of this command.


Example:

 

This example configures a DHCP lease for 3 days, 2 hours and 1 minute:

 

Router(dhcp-config)#lease 3 2 1
 

To configure a 3 hour lease, enter the following:

Router(dhcp-config)#lease 0 3

Misconceptions:
None

Related Commands:
ip dhcp pool

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)