alternate gateway for static DHCP leases

Hi all,

I’ve got standart DHCP server configuration for my LAN clients. But some clients have static leases and I need them to get other gateway IP, not the same as dinamic ones. How can I do it?

Thanks in advance

You need create access list of dhcp static leases(f.e. Static)
Mark default route with routing mark:
/ip route
add distance=1 gateway=“IP of your ISP for dhcp leases” routing-mark=ISP1-route(for example)
Mark traffic from LAN with mangle:
/ip firewall mangle
add src-address-list=Static action=mark-routing chain=prerouting connection-mark=dhcp-static
in-interface=bridge(for example) new-routing-mark=ISP1-route
Mark traffic from Internet to your LAN:
/ip firewall mangle
add action=mark-connection chain=forward in-interface=“your ISP interface for dhcp leases”
new-connection-mark=dhcp-static passthrough=no

If you need connectivity from the Tik itself to the world behind this ISP:
/ip firewall mangle
add action=mark-connection chain=input in-interface=“your ISP interface for dhcp leases”
new-connection-mark=dhcp-static passthrough=yes
add action=mark-routing chain=output connection-mark=dhcp-static
new-routing-mark=ISP1-route passthrough=no

If I wrong, please correct rules here.