cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

7035
Views
20
Helpful
10
Replies
Highlighted
Beginner

DHCP - Creating the Static Mapping Text File

I am working with Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(25c), RELEASE SOFTWARE (fc2)

I set dynamic DHCP with no porblem but when I tried use txt file

*time* Dec 24 2010 01:00 PM *version* 2 !IP address    Type      Hardware address               Lease expiration 172.16.0.2 /27         id            yyyy.yyyy.yyyy                   Infinite 172.16.0.3 /27         id            xxxx.xxxx.xxxx                   Infinite 172.16.0.4 /27         id            xxxx.xxxx.xxxx                   Infinite 172.16.0.5 /27         id            xxxx.xxxx.xxxx                   Infinite *end*

sh ip dhcp binding correct results
I am not sure why I am trying get IP address for one device
I am getting an error

DHCPD: there is no address pool for 172.16.0.1.

172.16.0.1 - is router Fa0/1 static IP addess that is internal interface

Router#sh run
(...)
!
!
ip dhcp smart-relay
no ip dhcp use vrf connected
no ip dhcp conflict logging
!
ip dhcp pool STATIC
   default-router 172.16.0.1
   dns-server 68.87.72.134 68.87.77.134
   domain-name static.us
   lease 3
!
!
ip dhcp update dns before
no ip domain lookup
ip domain name static.us
!
!

I added record for int fa0/1 in to the static.txt file

172.16.0.1 /27         1            ffff.ffff.ffff                  Infinite

and after that I am getting another error from console

: DHCPD: Sending notification of DISCOVER:
*Dec 26 19:19:38.912:   DHCPD: htype 1 chaddr yyyy.yyyy.yyyy
*Dec 26 19:19:38.912:   DHCPD: remote id 020a0000ac10000101000000
*Dec 26 19:19:38.912:   DHCPD: circuit id 00000000
*Dec 26 19:19:38.912: DHCPD: Seeing if there is an internally specified pool class:
*Dec 26 19:19:38.912:   DHCPD: htype 1 chaddr yyyy.yyyy.yyyy
*Dec 26 19:19:38.912:   DHCPD: remote id 020a0000ac10000101000000
*Dec 26 19:19:38.912:   DHCPD: circuit id 00000000
*Dec 26 19:19:38.912: DHCPD: requested address 172.16.0.2 has already been assigned.
*Dec 26 19:19:38.912: DHCPD: subnet [172.16.0.1,172.16.0.1] in address pool STATIC is empty.
*Dec 26 19:19:38.912: DHCPD: Sending notification of ASSIGNMENT FAILURE:
*Dec 26 19:19:38.912:   DHCPD: htype 1 chaddr yyyy.yyyy.yyyy
*Dec 26 19:19:38.912:   DHCPD: remote id 020a0000ac10000101000000
*Dec 26 19:19:38.912:   DHCPD: circuit id 00000000
*Dec 26 19:19:38.912: DHCPD: Sending notification of ASSIGNMENT_FAILURE:
*Dec 26 19:19:38.912:  DHCPD: due to: POOL EXHAUSTED
*Dec 26 19:19:38.912:   DHCPD: htype 1 chaddr yyyy.yyyy.yyyy
*Dec 26 19:19:38.912:   DHCPD: remote id 020a0000ac10000101000000
*Dec 26 19:19:38.912:   DHCPD: circuit id 00000000

For testing purpose I am change DHCP to Static on NIC setting on PC 172.16.0.2, and also this is tftpserver with  file on the same machine.
I hope that router do not try read static.txt file every time when NIC asking for IP throught DHCP, I fought after load router keeps file records in  NVRAM.
What did I miss?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Advisor

Re: DHCP - Creating the Static Mapping Text File

have you tried changing id field with 1 field in your text  or prefix hw add with 01 because  in client-identifier 01  is appended to mac address.

Regards.

Alain.

Don't forget to rate helpful posts.

View solution in original post

10 REPLIES 10
Advisor

Re: DHCP - Creating the Static Mapping Text File

Hi,

172.16.0.1 - is router Fa0/1 static IP addess that is internal interface

So you must exclude from pool:  ip dhcp excluded-address 172.16.0.1

Regards.

Alain.

Don't forget to rate helpful posts.
Beginner

Re: DHCP - Creating the Static Mapping Text File

I have tried that as well

The same error from console

DHCPD: subnet [172.16.0.1,172.16.0.1] in address pool STATIC is empty.

Advisor

Re: DHCP - Creating the Static Mapping Text File

Hi,

origin file tftp://172.16.0.2/homedhcp.txt

you are giving a manual mapping for this address you should have a static ip for this tftp server.

Regards.

Alain.

Don't forget to rate helpful posts.
Advisor

Re: DHCP - Creating the Static Mapping Text File

Hi,

I hope that router do not try read static.txt file every time when NIC asking for IP throught DHCP, I fought after load router keeps file records in  NVRAM.

you have no ip dhcp database so I presume you have to look at this file at each reload.

Regards.

Alain.

Don't forget to rate helpful posts.
Advisor

Re: DHCP - Creating the Static Mapping Text File

Dec 26 19:19:38.912: DHCPD: requested address 172.16.0.2 has already been assigned.

the router thinks that the pool has only one entry and it is already assigned or it only reads first entry and because it is assigned stop there.

Did you assign before with a pool on router?

Regards.

Alain.

Don't forget to rate helpful posts.
Beginner

Re: DHCP - Creating the Static Mapping Text File

Hi     

Did you assign before with a pool on router?

I did clear ip dhcp binding * and clear ip dhcp conflict * before I run #(config) service dhcp

and I moved tftp on other server, now I am testing with PC changeing eth settins to ude DHCP and the same erors.

Advisor

Re: DHCP - Creating the Static Mapping Text File

Hi,

what happens if you release your static lease on client then do a no service dhcp then service dhcp.

Regards.

alain.

Don't forget to rate helpful posts.
Advisor

Re: DHCP - Creating the Static Mapping Text File

have you tried changing id field with 1 field in your text  or prefix hw add with 01 because  in client-identifier 01  is appended to mac address.

Regards.

Alain.

Don't forget to rate helpful posts.

View solution in original post

Beginner

Re: DHCP - Creating the Static Mapping Text File

Hi cadetalain

I change formt of my static text file to

...

172.16.0.3  /27      id    01yy.yyyy.yyyy.yy       Infinite            

172.16.0.4  /27      id    01xx.xxxx.xxxx.xx       Infinite

172.16.0.5  /27      id    01zz.zzzz.zzzz.zz      Infinite

.....
And it solve my issue.

Beginner

DHCP - Creating the Static Mapping Text File

I also had a similar issue, it is not clear in Cisco documentation what the combinations are for the id and hardware address, but it worked in this manner:

*time* Jul 25 2013 09:52 PM

*version* 1

!IP address    Type    Hardware address     Lease expiration

142.102.66.22 /24   id     0100.0c29.bc99.9d       Infinite

142.102.66.23 /24   id     0100.0c29.c238.11    Infinite

*end*

Thank you for the input.

Regards

CreatePlease to create content
Content for Community-Ad