Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

DHCP Lease Time with DHCP Static Mapping


I want to configure a DHCP server on 2851 with 12.4.11T IOS version.

I created a dhcp database as written in

with the "origin file tftp...." command I associate the DHCP Pool with this static mapping file. The IOS parses the file correct and saves it to the DHCP Binding database excepting the DHCP Lease time.

The IOS allways saves infinite in the DHCP database but I want a lease duration of one day.

Has anyone a correct configuration? Please help!


New Member

Re: DHCP Lease Time with DHCP Static Mapping


I'm just wondering why do you want the lease time to be 1 day when it is statically-binded/mapped addresses.

Moreover, this document may help you out.

In dhcp config mode just do :

lease 1(days) 0(hrs) 0(minutes)

or just

lease 1

for one day lease. You have to configure this for all of your static binded IP addresses.

Let me know if it works!


New Member

Re: DHCP Lease Time with DHCP Static Mapping


first of all: thanks for your answer.

I tried it as the documation file says but I have a textfile on a TFTP Server which includes all DHCP bindings. With the "origin file" command I include this bindings to the DHCP database in the Router memory.

Here the example of the Cisco documentation

*time* Jan 21 2005 03:52 PM

*version* 2

!IP address Type Hardware address Lease expiration /24 1 0090.bff6.081e Infinite /28 id 00b7.0813.88f1.66 Infinite /21 1 0090.bff6.081d Infinite


This "infinite" keyword in the file overrides every value of the "lease" command.

show ip dhcp binding shows the lease expiration of "infinite" next to every static DHCP binding. But if I write another value in the textfile it will be ignore - the DHCP database shows "infinite" again. The value in the Router memory is allways "infinite" undepends on the value in the file. :(

This is my question: how I can write one day lease expiration to the textfile?