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

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 not serve IP

Hi,

I configured an DHCP server with Static Mapping, but I don't get IPs on clients.

I have:

ip dhcp pool IT

origin file flash1:dhcp-it.txt

domain-name domain.com

dns-server 172.16.5.2 172.16.5.26

default-router 172.16.0.1

...and the txt file:

*time* Mar 14 2012 11:30 AM

*version* 1

! IP address      Type      Hardware address        Lease expiration

172.16.0.2 /27    ID          0100.19b9.6128.e4      1

... and so on

On debug I got:

...DHCPD: No option 125

What did i do wrong?

Thank you!

15 REPLIES
Purple

Re: DHCP not serve IP

Hi,

can you try restarting the dhcp service:

no service dhcp

service dhcp

Have you done this  ?  :

"The  static mapping text file can be copied to flash memory on the router  and served by the routers tftp process. In this case, the IP address in  the origin file line must be an address owned by the router and one  additional line of configuration is required on the router:

tftp-server flash staticfilename"

Regards.

Alain

Don't forget to rate helpful posts.
New Member

Re: DHCP not serve IP

Excuse me but was in a vacation.

Not working, but you were right with the quote.

There is a change after configuring the tftp:

Loading dhcp-it.txt from 172.16.0.1 (via GigabitEthernet0/0): !
[OK - 181 bytes]

I also restarted the dhcp service but the same:

Mar 27 08:50:23.701: DHCPD: DHCPDISCOVER received from client 0100.1c23.3541.98 on interface GigabitEthernet0/0.
Mar 27 08:50:27.697: DHCPD: client's VPN is .
Mar 27 08:50:27.697: DHCPD: No option 125

..and looping.

The text file is:

router1#more flash1:dhcp-it.txt
*time* Mar 14 2012 11:30 AM
*version* 1
!IP address     Type    Hardware address        Lease expiration
172.16.0.2 /27  ID      0100.19b9.6128.e4               1
172.16.0.3 /27  ID      0100.1c23.3541.98               1
*end*

...and the exact configuration is:

ip dhcp pool IT
origin file tftp://172.16.0.1/dhcp-it.txt
domain-name domain.com
dns-server 172.16.5.2 172.16.5.26
default-router 172.16.0.1

Any ideeas?

Thanks!

New Member

Re: DHCP not serve IP

Hey Friend,

Can you please let me know if the same works with using the network command :

Example :

Router(config)# ip dhcp excluded-address 172.16.5.2

ip dhcp excluded-address 172.16.5.26

ip dhcp excluded-address 172.16.5.1

serve dhcp

ip dhcp pool IT

domain-name domain.com

network 172.16.5.0 255.255.0.0

dns-server 172.16.5.2

default-router 172.16.0.1

Waiting for your revert !!    

New Member

Re: DHCP not serve IP

Yes it's working. It gives me an IP.

debug:

Mar 27 10:06:56.583: DHCPD: DHCPREQUEST received from client 0100.1c23.3541.98.

Mar 27 10:06:56.583: DHCPD: Using hostname 'IT-Adi.icepronav.ro' for dynamic update (from FQDN option)

Mar 27 10:06:56.583: DHCPD: Sending DHCPACK to client 0100.1c23.3541.98 (172.16.0.3).

Mar 27 10:06:56.583: DHCPD: no option 125

Mar 27 10:06:56.583: DHCPD: ARP entry exists (172.16.0.3, 001c.2335.4198).

Mar 27 10:06:56.583: DHCPD: broadcasting BOOTREPLY to client 001c.2335.4198.

New Member

DHCP not serve IP

THAT MEANS .. your static mapping is not working !!

Please check the config for the mapping once again..

New Member

Re: DHCP not serve IP

I can figure that...

The exact configuration is 3 post ahead.

I don't know what I am missing

New Member

DHCP not serve IP

can you paste the file text here ?    

New Member

DHCP not serve IP

router1#more flash1:dhcp-it.txt


*time* Mar 14 2012 11:30 AM
*version* 1
!IP address     Type    Hardware address        Lease expiration
172.16.0.2 /27  ID      0100.19b9.6128.e4               1
172.16.0.3 /27  ID      0100.1c23.3541.98               1
*end*

New Member

DHCP not serve IP

Adrian,

Can you try changing Lease Expiration to "Infinite" - without qoutes ??

regards,

Parvesh

New Member

DHCP not serve IP

Did that, no success

New Member

DHCP not serve IP

any updates or changes in the behaviour/debug after changing the lease expriation ?

New Member

DHCP not serve IP

No, I got the same:

Mar 27 10:47:43.707: DHCPD: DHCPDISCOVER received from client 0100.1c23.3541.98 on interface GigabitEthernet0/0.

Mar 27 10:48:00.067: DHCPD: client's VPN is .

Mar 27 10:48:00.067: DHCPD: No option 125

New Member

DHCP not serve IP

Strange is that on sh ip dhcp binding I got:

Bindings from all pools not associated with VRF:

IP address          Client-ID/              Lease expiration        Type

                    Hardware address/

                    User name

172.16.0.2/27       0100.19b9.6128.e4       Infinite                Static

172.16.0.3/27       0100.1c23.3541.98       Infinite                Static

...so it reads the origin file...

New Member

DHCP not serve IP

It means the lease is being assigned .. what about the ip being received at the hosts .... any update ??

regards,

Parvesh

New Member

DHCP not serve IP

No...

Same situation:

Apr  4 07:25:33.959: DHCPD: DHCPDISCOVER received from client 0100.1c23.3541.98 on interface GigabitEthernet0/0.

Apr  4 07:25:42.631: DHCPD: client's VPN is .

Apr  4 07:25:42.631: DHCPD: No option 125

I'm totally out of ideeas...

7476
Views
0
Helpful
15
Replies
CreatePlease login to create content