DHCP Lease Time with DHCP Static Mapping

Unanswered Question
Feb 8th, 2008

Hello,

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

I created a dhcp database as written in http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_feature_guide09186a008027fa7c.html#wp1027258

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!

Olli

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
sgvoip001 Sat, 02/09/2008 - 11:36

Hi,

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

10.0.0.4 /24 1 0090.bff6.081e Infinite

10.0.0.5 /28 id 00b7.0813.88f1.66 Infinite

10.0.0.2 /21 1 0090.bff6.081d Infinite

*end*

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?

Olli

Actions

This Discussion