I’m looking to migrate several VLANs from a Cisco layer 3 switch to Mikrotik. I’d like to have several VLANs share a single DHCP pool - on my current Cisco setup, I’m able to do this by creating a loopback interface that acts as a gateway for a large subnet, and each VLAN interface has ip unnumbered to the loopback interface. This allows me to keep VLANs separate, but also not have to worry about tons of DHCP pools filling up. It works quite well for my setup, but I need to add some authentication features available in RouterOS.
Separate pools for each VLAN results in too many wasted IPs, and it’s more of an administration hassle than I prefer to deal with. Is there any way to do something similar with RouterOS?
That’s what I’ve been trying to set up, but so far haven’t been able to get the configuration right. Seems that hosts on only one interface at a time can reach any given destination IP. Relevant config portions look like this:
Ok, seems to be working as long as I add a static route for each DHCP client IP /32 through the proper VLAN interface. Seems that the Cisco does this automatically. Any thoughts as to how to handle this in RouterOS?
do not forget that it is possible to send additional options to clients, for example, additional routes, if all of sudden configuration you have set up for DHCP-server is not working and additional configuration is required on the client side.
You can’t have addresses from the same network on two different interfaces.
To make it work either bridge both interfaces and run one DHCP server ob bridge, or split /27 network in two subnets.
It looks like there’s a dchp server lease-script and maybe a binding-script (is this v6 only?) If you could pass the interface name to it, it could possibly add or remove the static route upon lease assign/deassign.