04-30-2020 07:40 AM
Hi
I have a project where I use a ISR4331 as DHCP server. I need to assign same the same IP address to the same mac address at every connection. There is around 150 devices to be connected and therefore I'm trying to avoid making a BIG config file with 150 address pool - is there a simple way to do that?
My plan is to set lease time to 5 - 10 days...
But if a DHCP client has an address and we have a power failure / reload at the router - is the DHCP database then lost.
Does anybody know the behavior of the Cisco DHCP server in case od power failure?
Is there a simple way to assign IP address to one mac?
Thanks in advance,
Michael
04-30-2020 08:22 AM - edited 04-30-2020 12:20 PM
Hello
When a router reloads it loses its the binding table as this is stored is ram, However you can back it up off site and if/when the rtr reloads it then will restore the binding table as it was before the reload.
ip dhcp database tftp://1.1.1.1/dhcp
As for static clients you want to have 150 statics serviced from the rtr - correct?
04-30-2020 08:28 AM
Hmmm, OK - Is there a way to make it easy here?
04-30-2020 11:37 AM - edited 04-30-2020 12:22 PM
Hello
So you do want 150 static mappings?
Then you could then use a origin file in a single static dhcp pool and have another pool for dynamic allocation but you would need to exclude the static mapping from the dynamic pool.
Example:
ip dhcp database tftp://1.1.1.1/binding.txt < to save the binding table after reload of rtr
ip dhcp excluded-address 192.168.1.100 192.168.1.249 <-to excluded the 150 static mappings
ip dhcp pool LAN <- dynamic dhcp client pool
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1
lease 0 8
ip dhcp pool static <- static dhcp client pool
origin file tftp://1.1.1.1/static.txt < source of static file for client static binding
default-router 192.168.1.1
dns-server 192.168.1.1
lease 5
Origin file:
Ip address Type Hardware address
192.168.1.100 ID 0111.1111.1111
05-24-2020 12:31 AM
Tank you all - I've just hoped that a solution like Cisco Meraki was available.
I've choosen to assign static adresses to the devices instead.
Best regards,
Michael
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