DHCP option by rule
Posted: Tue Jul 09, 2019 9:16 am
Hi,
is there a way how to add different dhcp options to different clients ? For example, I'll have list of host, by MAC address or hostname, and I want to assign for hosts in this list different DNS server and different boot file. All hosts, filtered and not filtered will use same vlan. I'm not sure, if something like that is implemented in RouterOS.
I know, that there is dhcp lease script, but I'm not sure if this script is called before or after dhcp options are sent to host, and If I'm able to modify this options.
Example:
host android-2e21a18ae7a87f84 will have DNS server 192.168.2.1
host Kitchen will have DNS server 192.168.2.5
Thank You.
is there a way how to add different dhcp options to different clients ? For example, I'll have list of host, by MAC address or hostname, and I want to assign for hosts in this list different DNS server and different boot file. All hosts, filtered and not filtered will use same vlan. I'm not sure, if something like that is implemented in RouterOS.
I know, that there is dhcp lease script, but I'm not sure if this script is called before or after dhcp options are sent to host, and If I'm able to modify this options.
Example:
host android-2e21a18ae7a87f84 will have DNS server 192.168.2.1
host Kitchen will have DNS server 192.168.2.5
Thank You.