I would like to setup Mikrotik DHCP server to perform following task:
- DHCP should serve hosts with two different network pools: 192.168.1.0/24 and 192.168.5.0/24.
- Each network has its own gateway: 192.168.1.0/24 gw=192.168.1.1 and 192.168.5.0/24 gw=192.168.5.1
- Each network has its own DNS server: 192.168.1.0/24 dns=192.168.1.1 and 192.168.5.0/24 dns=192.168.5.1
- DHCP server should use radius to obtain IP address for particular MAC ( I have all MAC addresses, which should be served).
I have a problem with understanding how to make sure, that IP address obtain from Radius will match gateway and DNS range?
I mean lets assume MAC address 11:22:33:44:55:66, should get IP address 192.168.1.100, that is radius server job.
Correct IP address is send from Radius server, now I want MT DHCP server to add gateway and DNS set to 192.168.1.1 as DHCP offer for host.
How to make sure it will be gateway and DNS set to 192.168.1.1, and NOT gateway and DNS set to 192.168.5.1 ?
So in case of IP address from 192.168.5.0/24 network, the gateway/dns should be set to 192.168.5.1 in DHCP offer.
So in case of IP address from 192.168.1.0/24 network, the gateway/dns should be set to 192.168.1.1 in DHCP offer.
Is it possible?