Just the basic setup, so far so good, i have that set up, using 1.1.1.1 and 8.8.4.4 as hosts i also have a DHCP lease script running to update the gateways on the first part as i have two cablemodem conections with dynamic ips.
Using mangle i was able to set a specific IP to use “ISP1” and “ISP2” routing mark, this works so, so far this is set up correctly, BUT if i remove the default routes created by DHCP clients on both wan0 and wan1, there is not internet, this is not a suprise as i know that if a use /ip filter to add a routing mark on the default routes, they are not used, so i expected this to fail.
So this is the thing, if i only have routes with marks, this case “ISP1” and “ISP2”, how i make it work? What im missing here?
You do need default route in main routing table for router itself, even if you don’t actually use it and set routing for all output to use different routing table. The route doesn’t even have to be real, it can point for example to empty bridge, it just needs to exist.
The second one, right half named “routing”, you’ll see that there’s routing decision first and output (where you can set routing mark) is after that. And that is then handled by “routing adjustment” (in next picture), where the selected routing table is used.
does. The wiki example creates 2 routing marks, ISP1 and ISP2, ISP1 mark using GW1 and main and GW2 as failover, ISP2 mark uses GW2 as main and GW1 as failover, this is very usefull (i use ISP2 mark for wifi clients for example, and this ensures if GW2 is down, it will switch to use GW1).