Sorry for bad English.
I have dhcp server on Mikrotik’s router. Address pool is 192.168.0.0-192.168.0.254. Lease is 3 days. When I started using the router, my desktop got ip 192.168.0.254 (as first device connected to the router), my laptop got 192.168.0.253. After some days (both desktop and router has multiply reboot this time), the laptop still have 192.168.0.253, but desktop now have 192.168.0.252. IP 192.168.0.254 is free now.
Question: why dhcp server now assign to my desktop 192.168.0.252 whereas 192.168.0.254 is free?
P.S. The list of leases have two records now: 192.168.0.252 for the desktop, 192.168.0.253 for the laptop.
That was my original problem. I was fortunate enough to have the library/driver code for my device, and was able to correct the “ip creep”. The V6.1 mod may fix your problem also.
Take a look in “/ip dhcp-server lease”. After every other renew, my device would be issued another ip, and the previously assigned ip would be marked as “busy”. Is that what yours shows?
I have RouterOS 6.1.
My lease list contain two records now:
192.168.0.253 laptop
192.168.0.252 desktop
There is no 192.168.0.254 in the list.
Maybe your problem is not the same as mine. I have not tried v6.1 yet. My problem was caused by the MikroTik dhcp server not storing the correct expires-after value after the initial renew. It would issue the address to the client, but did not reset the expires-after value. This caused the lease to expire just seconds before the next renew, so the dhcp server would ping the current ip, and my device would respond. At that point, the old ip lease was set to status=busy and the device was issued the next ip in line by the dhcp server.
If you want to check that stuff, use this to see all the numbers. The “last-seen” and “expires-after” times should add up to your lease time. Mine did only every other lease.
/ip dhcp-server lease
print detail
edit: If you want the device with that mac address to be issued the same ip all the time, then set the lease to static.
/ip dhcp-server lease
make-static X
Replace X with the line number of the lease.
Today I connected new device (tablet) by Wi-Fi and router’s DHCP server assign 192.168.0.251 for it (although 192.168.0.254 is still free and is in the dhcp pool).
So, I have now:
.254 --free–
.253 laptop
.252 desktop
.251 tablet
Why DHCP server don’t use .254? Although at first time it used it for desktop (see first message)…