05-20-2024 04:00 AM
I have master Cisco ASR1002-X router with dhcp server.
I have 120 Cisco small client routers with dynamic ip dhcp addresses.
All dhcp leases are made by reserved-only IP address with client-id.
When the small client router is restarted sometimes the same client router is identified by:
client-id: 018c.1e80.3b08.00
or
client-id: 0063.6973.636f.2d38.6331.652e.3830.3362.2e30.3830.302d.4769.302f.302f.30 (ascii cisco-8c1e.803b.0800-Gi0/0/0).
Why is that happeing? How to make full static dhcp reserve only address?
05-20-2024 04:51 AM
small client router which model ?
MHM
05-20-2024 06:03 AM
Cisco c1121-4pltep
05-20-2024 05:42 AM
I have had better luck using the "hardware-address" to identify the client as opposed to "client-id". I have done what you describe before. You exclude the entire network using "ip dhcp excluded-address", and then create an "ip dhcp pool" for each reserved client. You can do this using a file on the flash that preserves the lease information, but that is a little more complicated IMHO. I prefer the pool per client method.
05-20-2024 06:07 AM
Unfortunately hardware-address doesn`t work on Cisco ASR 1002-X as dhcp server. Please show me part of your config.
My code looks like this:
05-20-2024 07:02 AM
In client router try config client-id by
Ip dhcp client client-id interface or hex
MHM
05-20-2024 07:09 AM
It has been a long time since I had to do this, and I have never done it in an ASR. The key piece in this is you have to do a unique pool for each client. You can make that less painful by using inheritance. I am cobbling this together from several customer configs, so your mileage may vary.
ip dhcp pool PARENT-66
network 10.66.0.0 255.255.0.0
domain-name company.com
dns-server 192.168.232.227 192.168.232.126 192.168.232.225
!
ip dhcp pool CLIENT-1
network 10.66.1.0 255.255.255.0
default-router 10.66.1.1
!
ip dhcp pool 00110AF64E9C
host 10.66.1.53 255.255.255.0
hardware-address 0011.0af6.4e9c ieee802
!
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