Comcast Cable = 18.104.22.168 on interface ether1
Cellular = 22.214.171.124 on interface ether6-Cell
Cable should be the primary, Cellular should be the failover.
/ip route add comment=MarkComcast distance=10 gateway=126.96.36.199 routing-mark=Comcast add comment=MarkCell distance=10 gateway=188.8.131.52 routing-mark=4Cell add disabled=yes distance=10 gateway=184.108.40.206 routing-mark=4Cell add check-gateway=ping comment="Comcast Static" distance=1 gateway=220.127.116.11 add check-gateway=ping comment="Cellular" distance=2 gateway=18.104.22.168
To make the cellular work when it is not the primary...
/ip firewall mangle add action=mark-connection chain=prerouting comment="Cell Back Up" \ connection-mark=no-mark in-interface=ether6-Cell new-connection-mark=Cell passthrough=no add action=mark-routing chain=prerouting comment=Cell connection-mark=Cell \ in-interface=bridge-local new-routing-mark=4Cell passthrough=no add action=mark-routing chain=output comment=Cell connection-mark=Cell \ new-routing-mark=4Cell passthrough=no
Now here is where I am getting stuck...
I want to monitor a host over each connection and take action based on outages.
Have Comcast Ping 22.214.171.124
Have Cellular Ping 126.96.36.199
When pings to 188.8.131.52 fail... I would like to change the "Comcast Static" to 3.
/ip route set distance=3 [find comment="Comcast Static"]
But I want to keep checking 184.108.40.206 for when it comes back to flip it back to the primary.
/ip route set distance=1 [find comment="Comcast Static"]