How to Configure DHCP Lease Time/Period on Cisco router

DHCP Lease Period Configuration on Cisco Router

You can change the default lease period on your router for DHCP Pool IP addresses. To change the default DHCP lease time for a pool of IP addresses, use the lease command from DHCP configuration Mode on Cisco Router.

Command Syntax for DHCP lease period configuration on Cisco Router

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

Cisco-Router#configure terminal
Cisco-Router(config)#ip dhcp pool 192.168.1.0 255.255.255.0
Cisco-Router(dhcp-config)#lease 6 10 30
Cisco-Router(dhcp-config)#end
Cisco-Router#

With The lease command, you are left three options: lease days, hours, minutes with hours and minutes being optional. You can specify a maximum period of 365 days, 23 hours and 59 minutes, and a minimum of 1 second. The default is 1 day.

Configure Cisco router to assign DHCP addresses with infinite lease period

Use the following command:

Cisco-Router#configure terminal
Router(config)#ip dhcp pool DHCP-POOL
Cisco-Router(dhcp-config)#lease infinite
Cisco-Router(dhcp-config)#end
Cisco-Router#

Verify Lease Time expiry for DHCP IP address

Enter the show ip dhcp binding to display the lease expiration time  and date of the IP address of the host  in privilege execution mode of Cisco Router.

 Cisco-Router#show ip dhcp binding 

Cisco-Router#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
Hardware address/
User name
192.168.1.107          e839.358f.d3b0                 Mar 12 2011 02:05 AM    Automatic
192.168.1.141          0100.1558.1924.b6          Mar 12 2011 07:30 AM    Automatic
192.168.1.232         0063.6973.636f.2d61.    Mar 12 2011 06:23 AM    Automatic
6361.302e.3136.3864.
2e39.3034.302d.566c.
31
192.168.1.236         0063.6973.636f.2d61.    Mar 12 2011 07:45 AM    Automatic
6361.302e.3136.3864.
2e36.3234.302d.566c.
31
192.168.1.237         0063.6973.636f.2d31.    Mar 12 2011 08:58 AM    Automatic
3062.642e.3138.3432.
2e33.6534.302d.566c.
31
192.168.1.241          0063.6973.636f.2d65.    Mar 12 2011 07:59 AM    Automatic
3834.302e.3430.6531.
2e62.6634.302d.566c.
31
Cisco-Router#

Filed Under: DHCP

Tags:

About the Author:

RSSComments (0)

Trackback URL

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.