03-14-2012 03:50 AM - edited 03-07-2019 05:33 AM
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!
03-14-2012 05:41 AM
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
03-27-2012 01:57 AM
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!
03-27-2012 02:56 AM
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 !!
03-27-2012 03:07 AM
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.
03-27-2012 03:13 AM
THAT MEANS .. your static mapping is not working !!
Please check the config for the mapping once again..
03-27-2012 03:15 AM
I can figure that...
The exact configuration is 3 post ahead.
I don't know what I am missing
03-27-2012 03:18 AM
can you paste the file text here ?
03-27-2012 03:20 AM
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*
03-27-2012 03:32 AM
Adrian,
Can you try changing Lease Expiration to "Infinite" - without qoutes ??
regards,
Parvesh
03-27-2012 03:40 AM
Did that, no success
03-27-2012 03:46 AM
any updates or changes in the behaviour/debug after changing the lease expriation ?
03-27-2012 03:48 AM
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
03-27-2012 04:22 AM
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...
03-29-2012 06:21 AM
It means the lease is being assigned .. what about the ip being received at the hosts .... any update ??
regards,
Parvesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide