I’ve added settings for interface definitions and local addresses for WAN uplinks (part static, part by DHCP client) and LAN.
Some local addresses are disabled as I cannot use them yet: they are for future use.
Goal is to route 0.0.0.0/0 via all WANs (static via 37.153.243.241 reachable on ether7 and dynamic via both WAN DHCP client configurations).
The above settings result in some automatically added routes (for DHCP WANs) and one manually (for static WAN).
Two of the routes are blue. Why is that?
If in the topmost route I change gateway from “ether7” to “37.153.243.241” it will indicate “37.153.243.241 unreachable”.
The blue ones are not active. It’s how it works, if you have multiple default routes, only one “wins”. The way to use multiple WANs is to add default routes with different routing mark each, and then set up some rules to mark routing, i.e. tell the traffic which route it should use. It’s simple with static addresses, but less straightforward with dynamic ones, because you can’t tell dhcp client to set routing mark. But it can be done using routing filters (in /routing filter, chain=dynamic-in, action set-routing-mark).