2

I'm configuring a dhcp pool at my router (Cisco-7200) and I want to set the lease expiration to 1 hour. I checked the cisco manuals and I found this: lease {days [hours] [minutes] | infinite}. So I came up with this: Router(dhcp-config)#lease 0 1. Is this the proper way to do it? Thanks for the attention.

1 Answer 1

6

In a nutshell, yes.

For the future reference of others, a snippet from this document: http://www.cisco.com/c/en/us/td/docs/ios/12_2/ip/configuration/guide/fipr_c/1cfdhcp.html#wp1001095

Configuring the Address Lease Time

By default, each IP address assigned by a DHCP Server comes with a one-day lease, which is the amount of time that the address is valid. To change the lease value for an IP address, use the following command in DHCP pool configuration mode:

Command

Router(dhcp-config)# lease {days [hours][minutes] | infinite}

Purpose

Specifies the duration of the lease. The default is a one-day lease.

  • Use the show ip dhcp binding to display the lease expiration time and date of the IP address of the host.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.