Good day
I know this question has been asked more times than I’ve hit the snooze button on my alarm. I’ve searched a few posts and tried recursive routing but I’m still missing something.
I have a PPPoE connection (Primary ISP) with a Dynamic IP on Ether1. “Add default route” is selected with Distance 1.
LTE Router (192.168.8.1) on Ether 2 (192.168.8.2)
The Dynamic route 0.0.0.0/0 send traffic through the gateway “pppoe-out1”
I’ve added a static route as follow:
add dst-address=0.0.0.0 gateway=192.168.8.1 distance=2
There are basically 4 ICMP stages:
Reply from 1.1.1.1: bytes=32 time=4ms TTL=58 1
Reply from 1.1.1.1: bytes=32 time=3ms TTL=58 1
Reply from 1.1.1.1: bytes=32 time=3ms TTL=58 1
Reply from 1.1.1.1: bytes=32 time=28ms TTL=57 2
Reply from 1.1.1.1: bytes=32 time=91ms TTL=57 2
Reply from 1.1.1.1: bytes=32 time=30ms TTL=57 2
Request timed out. 3
Request timed out. 3
Request timed out. 3
Request timed out. 3
Request timed out. 3
Reply from 1.1.1.1: bytes=32 time=3ms TTL=58 4
Reply from 1.1.1.1: bytes=32 time=3ms TTL=58 4
Reply from 1.1.1.1: bytes=32 time=3ms TTL=58 4
Stage 1 is when the primary link is working. I then drop the traffic so stage 2 the traffic goes through the LTE.
When the link is restored, the traffic is dropped by the firewall because they are not valid. This is most likely because there are active connections on the LTE but the primary ISP route distance is 1 and the Mikrotik is prioritizing that route.
When I clear all the firewall connections, I get a response on the primary ISP (stage 4).
Unfortunately I cannot set a static route on the Primary ISP. I’ve tried to add the following IP route:
/ip route
add dst-address=1.1.1.1 gateway=pppoe-out1 distance=1
I then added a Netwatch Monitor:
/tool netwatch
add host=1.1.1.1 interval=00:00:30 timeout=0.5 up-script="ip firewall connection {:foreach r in=[find] do={remove $r}}"
When the primary link goes down I can still reach 1.1.1.1 on the Mikrotik so the Netwatch rule cannot detect that the ISP1 is down.
Any help would be appreciated.
Thanks