lease (dhcpv4-pool-config)

A lease is the duration a DHCP issued IP address is valid. Once a lease expires, and if the lease is not renewed, the IP address is revoked and is available for reuse. Generally, before an IP lease expires, the client tries to get the same IP address issued for the next lease period. This feature is enabled by default, with a lease period of 24 hours (1 day).

Supported on the following devices:

Syntax

lease [<0-365>|infinite]
lease infinite
lease <0-365> {0-23} {0-59} {0-59}

Parameters

lease infinite

infinite

The lease never expires (equal to a static IP address assignment)

lease <0-365> {<0-23>} {<0-59>} {<0-59>}

<0-365>

Configures the lease duration in days

Note: Days may be 0 only when hours and/or minutes are greater than 0.

<0-23>

Optional. Sets the lease duration in hours

<0-59>

Optional. Sets the lease duration in minutes

<0-59>

Optional. Sets the lease duration in seconds

Usage Guidelines

If lease parameter is not configured on the DHCP pool, the default is used. The default is 24 hours.

Examples

rfs4000-229D58(config-dhcp-policy-test-pool-testPool)#lease 100 23 59 59
rfs4000-229D58(config-dhcp-policy-test-pool-testPool)#show context
 dhcp-pool testPool
  network 192.168.13.0/24
  address 192.168.13.4 class dhcpclass1
  lease 100 23 59 59
  ddns server 192.168.13.9
  ddns domainname WID
  ddns multiple-user-class
  excluded-address range 192.168.13.25 192.168.13.28
  domain-name documentation
  bootfile test.txt
  default-router 192.168.13.8 192.168.13.9
  dns-server 192.168.13.19
rfs4000-229D58(config-dhcp-policy-test-pool-testPool)#

Related Commands

no

Resets values or disables the DHCP pool lease settings