cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8386
Views
0
Helpful
16
Replies

DHCP not serve IP

Adrian Ardelean
Level 1
Level 1

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!

16 Replies 16

cadet alain
VIP Alumni
VIP Alumni

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.

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!

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 !!    

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.

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

Please check the config for the mapping once again..

I can figure that...

The exact configuration is 3 post ahead.

I don't know what I am missing

can you paste the file text here ?    

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*

Adrian,

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

regards,

Parvesh

Did that, no success

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

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

Adrian Ardelean
Level 1
Level 1

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...

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

regards,

Parvesh

Review Cisco Networking products for a $25 gift card