I am trying to convert a Linux DHCP server to Mikrotik. I am unsure how to match certain MAC addresses starting with a certain hardware ID to certain pools.
I would like to match all MAC addresses starting with “00:0E:08” to a certain pool of addresses, below is an example of how this is obtained in Linux:
class “private-hosts” {
match if substring (option hardware,1,3) = 00:0E:08;
}
pool {
range 192.168.0.150 192.168.0.175;
allow members of “private-hosts”;
}
The necessary feature for your request,not working now, is to be able run DHCP script before address is assigned, not after.
Haveing it we can also easy filter who is receiving address and who is not.