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 in the following platforms:

  • Access Points — AP505i, AP510i/e, AP560i/h
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000


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


lease infinite


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

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


Configures the lease duration in days

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


Optional. Sets the lease duration in hours


Optional. Sets the lease duration in minutes


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.


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
  address class dhcpclass1
  lease 100 23 59 59
  ddns server
  ddns domainname WID
  ddns multiple-user-class
  excluded-address range
  domain-name documentation
  bootfile test.txt

Related Commands


Resets values or disables the DHCP pool lease settings