DHCP Static Leases disapear from DHCP server config

thread necro



I too am having the same problem. every other week one of my sites looses not just its dhcp settings for static dhcp but it also looses its dhcp servers. I know this topic is very old however there doesnt seem to be a reply or a resolve. has anyone else figured this out yet.

i basically made an export of the dhcp config settings and then set it as a script to load when the router starts. however if one of the devices grabs a wrong ip address its stuck till it renews and id like to avoid that situation.

any advice or would be welcomed thanks.

Me too
A simple advice is : do not power off the device . Just reset it from winbox

change settings you have set in
‘/ip dhcp-server config’ set ‘store-leases-disk’ to immediate or 5 minutes from never. Also, there will be changes starting 5.21 that static lease changes will be saved immediately. you can check full description in wiki.mikrotik.com

i dont think you understand. it blows out all the settings and dhcp servers. and not from power outage but from a simple reboot.


im a little confused. so we have to used that setting or our servers well be wiped out upon a reboot. that seams a little counter productive. that or we are both talking about different things. i find it out that the dhcp servers themself do not stay in the router.

I am using RB750 and v5.25. Problem still exists even with

/ip dhcp-server config
set store-leases-disk=immediately

Upon power failure and reboot, all static leases have disappeared and sometimes dhcp server is lost too.
Is this a universal issues or only for some boxes?

there is something different going on as RouterOS configuration is saved differently than lease information. DHCP-server or any other RouterOS configuration should be preserved during reboots. Also, it takes some time to save it to flash properly.