static host addresses from dhcp-server

Hi all,

I need to configure dhcp-server to assing ip addresses to only allowed mac addresses.
Do I need to describe the pool or I can only feed /ip dhcp-server lease with address and mac-address ?

Thanks in advance.

You do not need a pool for static leases.

Just set the following on your DHCP sever instance, and then create your leases under /ip dhcp-server lease.

/ip dhcp-server
set 0 address-pool=static-only

Ok, thanks for your answears, the next situation:
one interface, two pools - one is static-only with ip-mac bindings, one with non routable addresses which I want to assing to all clients whose mac addresses are not in static-only pool. Is it possible ?

Yeah. Just add the pool of non-routables to the DHCP server instance. The static leases you configure don’t have to be part of any pool whatsoever. People that match a static lease will get that, everyone else will get an address from the pool.