I use static dhcp leases (192.168.1.0/26), how can I block all dynamic dhcp requests ?
I use static dhcp leases (192.168.1.0/26) how can I give only dynamic requests a different ip scope (192.168.10.0/24) thats different then static leases scope ?
For scenario 1: I think I must block all unknows mac address but when I add another static lease I must update the block list, only no clue yet howto block a mac address not in the list or is it possible to let the Mikrotik check the static lease list and when mac address is not static mapped it will be blocked. Or is there a better method ?
For scenario 2: Here must the Mikrotik detect if a request is dynamic when yes it gives it a lease address from a pool different as the static ip pool. But same here how to no clue yet.
You can only have a single DHCP server per interface, but you can give it a list of pools to use rather than a single one. And you do not need a pool for the static leases (but you do need an “/ip dhcp network” for them).
Drawback of using multiple pools per single DHCP “network” is that all DHCP settings (i.e. gateway, DNS server, …) apart leased IP address are same for all leases served via same DHCP “network”.
They are good if one needs large number of IP addresses for dynamic leases but the address space is not continuous.
If you need different set of “other” DHCP settings, have a look at this post.
static-only more or less substitutes “none” here, so when I wrote that you can combine static leases and pools on a single server, it means that you configure at least one pool, the static leases are used automatically even if they don’t fit into any pool.
The /ip dhcp-server network is another case, you need one matching the lease (no matter whether a static one or a dynamic one from a pool) to give the client the default gateway, DNS and other settings based on the subnet to which it fits.
Thanx it works now, first I tested the pool and static leases, after that I did configure a pool for dynamic and pointed the dhcp server to that network pool.
The static mappings also still work.