DHCP: static ahead of dynamic leases?

Hello,

a few weeks ago I purchased a RouterOS L4 license and there is a technical problem.

I set up a DHCP server on an interface. This DHCP server assigns dynamic addresses from a pool (10.10.0.1 - 10.10.0.200) and static leases (for example: 192.168.0.3).

If both, static and dynamic assignments exist for the same MAC address, the DHCP server should prefer static.
In my case, he does not, he always confirms the dynamic assignment (renew).
The current solution is the regularly delete of dynamic leases, but that brings other problems with it.

How can I tell the routerOS, that they should take the static assignment, if they exists.

Greetings from english-speaking Germans :stuck_out_tongue:

There shouldn’t be static and dynamic entry for the same mac and client ID in the first place.

That’s not really a help. Because it could happen.

But i’ve solved by myself.
The script gets a “dynamics”-List from Server, compare with db, if match => delete specific entity from dhcp lease.
So the User gets the correct static address.

Topic could be close.
HanD.