We have many switches doing L3 Routing. I'd like to replace the Microsoft Central DHCP server by our Mikrotik router.
I've done research for this to no avail. Is it even supported by RouterOS?
It's because Microsoft people may have a perfect understanding what exactly the Central DHCP Server is doing, but they know nothing about RouterOS, whereas Mikrotik people know the possibilities of the RouterOS DHCP server but have no clue what are the features of the Microsoft Central DHCP server.I've done research for this to no avail. Is it even supported by RouterOS?
Unless you run a smaller shop I would not consider letting a Mikrotik take over DHCP services...
The DHCP-implementation is Windows Server is much more advanced then what you would find on RouterOS.
Eh. Server 2016/2019 has "high available" (not using the old fashioned way of splitting scopes) setup with some clicks, either active/failover of load-sharing scopes.
AD-integrated updating of DNS-records is all there with Microsoft DHCP.
Advanced filtering & policies (provide certain pieces of hardware different scopes based on MAC OUI's for example) which cannot be found on RouterOS
So you clearly need to make the analysis what you need in terms of DHCP-features and then you can check what you can cover with RouterOS.
It's because Microsoft people may have a perfect understanding what exactly the Central DHCP Server is doing, but they know nothing about RouterOS, whereas Mikrotik people know the possibilities of the RouterOS DHCP server but have no clue what are the features of the Microsoft Central DHCP server.
So to get any help here, you have to provide the list of required features first. People knowing Mikrotik will then tell you which are supported and which are not.
What's written in that post is how I would do it, so the question is whether the requests from the relays reach the Mikrotik acting as a server and whether the source addresses of those requests are the ones you expect. /tool sniffer and /system logging add topics=dhcp followed by /log print follow-only where topics~"dhcp" are your best friends here.
I remember I had some issues when the requests from the relay were coming via an IPsec tunnel, as the DHCP server was sending the responses from the interface to which it was attached and the IPsec policy did not match those responses. So make sure the DHCP server is attached to the interface through which the relayed requests arrive, and it must be an L2 interface (no GRE, IPIP and alike).
/system ntp client
set enabled=yes primary-ntp=199.182.204.197 secondary-ntp=205.206.70.2
/system ntp server
set enabled=yes
/ip pool
add name=POOL-10-3-6 ranges=10.3.6.96-10.3.6.250
/ip dhcp-server
add address-pool=POOL-10-3-6 disabled=no interface=ether2 name=DHCP-VLAN6 relay=10.3.6.1
/ip dhcp-server network
add address=10.3.6.0/24 caps-manager=10.3.10.1 dns-server=10.3.10.1 gateway=10.3.6.1 ntp-server=10.3.10.1
interface vlan 6
ip address 10.3.6.1 255.255.255.0
ip dhcp relay server 10.3.10.1