Sun Jul 24, 2022 2:06 am
I figured out how to do this, though it may not be best practice & I may have some settings incorrect...
I set this up with my current setup (a single fiber ISP) and my iPhone hotspot connected to a 4011 (as a second gateway router, in essence).
You may consider Location A (far left) of my diagram as Fiber ISP -> Fiber Gateway (192.168.1.1/24) -> hEX S (10.19.56.1/24)
You may consider Location B (far right) of my diagram as iPhone -> wireless 2.4ghz to MikroTik 4011.
These two locations are separated by several miles, but connected via wireless links & switches...
The 4011 will serve as my "redundant fail over link", for testing...
At Location A (hEX S), I created bridge named 'loopback', assigned IP 192.168.255.2
At Location B (4011), I created bridge named 'loopback', assigned IP 192.168.255.1
At Location A (hEX S), I created VLAN id "3", named "vlan3-WAN.FAILOVER", on an interface towards the 4011. (tagging this vlan thru all appropriate switches).
At Location B (4011), I created VLAN id "3" named "vlan3-WAN.FAILOVER", on an interface towards the hEX S.
At Location A (hEX S), I assigned IP "10.0.0.9/29" to "vlan3-WAN.FAILOVER"
At Location B (4011), I assigned IP "10.0.0.10/29" to "vlan3-WAN.FAILOVER"
Performed a ping test to verify that Location A could reach Location B over 10.0.0.8/29 network.
At Location A (hEX S), I create OSPF instance "default" with Router ID: 192.168.255.2 (its loopback), redistribute default route - "never".
At Location B (4011), I create OSPF instance "default" with Router ID: 192.168.255.1 (its loopback), redistribute default route - "always (as type 1)"
At Location A (hEX S), I add backbone networks 0.0.0.0/0 and 192.168.1.0/24
At Location B (4011), I add backbone networks 0.0.0.0/0 and 172.20.10.0/28 (This is the subnet I'm getting from the iPhone hotspot)
At Location A (hEX S), I add OSPF interface "vlan3-WAN.FAILOVER", cost "200", network type "point-to-point".
At Location B (4011), I add OSPF interface "vlan3-WAN.FAILOVER", cost "200", network type "point-to-point".
At this point, the OSPF point-to-point link comes up and I start to see the other side in the OSPF neighbors tab.
Now, If I look at IP -> Routes table on Location A (hEX S), I see "Do (Dynamic - OSPF)" - 0.0.0.0/0 - 10.0.0.10 reachable via vlan3-WAN.FAILOVER - (Distance) 110
I verified that Location B (4011) has NAT Masq rule.
When I disable DHCP Client at Location A (hEX S), my default route "0.0.0.0/0 - 192.168.1.1 reachable ether5-WAN" disappears and traffic begins to flow thru vlan3-WAN.FAILOVER.
Re-enabling the DHCP Client brings back my default route and traffic is now re-routed back over fiber.