Routing question

Good morning,
We are installing an Ubiquity 60 GHz link with a 5 Ghz backup. Both radios will be connected to a CCR2116 router using two vlans on a.b.2.1 and a.b.2.2 respectively.
The 60 Ghz link via a.b.2.1 will break in case of heavy rainfall.

I was planning to use the following configuration.
/ip route
add distance=1 dst-address=a.b.1.0/24 gateway=a.b.2.1
add distance=2 dst-address=a.b.1.0/24 gateway=a.b.2.2

Should this work or am I missing something?
Thanks!

You have to add some method of monitoring the transparency of the 60 GHz path that will inactivate the routes with distance=1 while the cats and dogs keep raining, as the VLAN interface on the CCR will stay up even if the remote 60 GHz terminal is off. So adding check-gateway=arp to those routes might do the trick, but I have never tested that myself yet.

Do not loss time, and simply use correctly RSTP on bridge that contains both ethernet (on both side).

Thank you, sindy, much appreciated. I was assuming the route would be marked as unreachable the moment the connection was broken.
Are there advantages of using arp or ping tp check the gateway?

@extended:
We are using routers on either end of this connection, so it would seem easier to use a route rather than RSTP. Also I’ve been advised on the Ubiquity forum
that using STP may cause problems.


(https://community.ui.com/questions/configuring-5GHz-backup-for-Airfiber-60-LR/0d394a80-7768-4ffa-aa73-09a731fd4576#answer/6db77eec-0d18-4244-9b69-7901cd1f0590)
(We do plan to use this in other parts of our network, but without VLANs)

Thanks!
Ben

I don’t think there are any, except if the gateway would ignore ping requests.

Be patient, check-gateway sends the test packet just once every 10 seconds and it needs 2 failures to declare the route down. If you want something faster, use OSPF and BFD (BFD cannot be used alone and out of the two dynamic routing protocol it works with, OSPF seems easier to set up).

What about netwatch, you can set the time parameter !!!

OSPF + BFD with two tunnels/routes (one per channel) is really easy to set up, very robust and provides rerouting in just a few milliseconds.

That is great news…
EASY!!!
How bout whip up a solution for…
CHR connected to MT router via two ISP connections: pppoe and starlink
Seamless failover both directions with pppoe primary.

The idea is that the main router connects to the CHR via one or the other or both ISPs over wireguard.
All the router LAN traffic flows to the CHR and then out the public IP of the CHR.
Failure of either ISP results in the OSPF BDF combination moving traffic to the remaining ISP if one fails.
In the case of primary WAN failure (pppoe), if it comes back then all traffic previously using the primary WAN should revert back to primary WAN.
It would seem that I have to setup OSPF BDF on both devices, Local MT router and CHR.

Intended Method:
part1 - wireguard and L2TP (to ensure ability to adjust MTU via MRRU) → not the problem
part2 - using ospf to select optimal route and BDF to indicate route needs changing → this is what help is needed to tackle.

If you have an example of an OSPF BDF combination with wirguard, then perhaps I could figure out what the settings are doing and ask pertinent questions.
Perhaps we chat on skype or discord etc…

That’s a pretty standard setup. I can post an example next week. Have a nice weekend, cheers!:beer_mug:

Awesome, its the interplay and settings of OSPF and BFD very unfamiliar with for this relatively ‘simple’ scenario.

Is easier just add two port on bridge that loss time with routing, netwatch, ping and other frills,
since the destination of the route is olny one is a nonsense use routing for same destination…
(Have more sense use bonding than routing…)


For the principle of not advertising other manufacturers, because this forum that hosts us is MikroTik,
I often use 60LR + 5XHD (now that the “integrated version” has come out there will be no need for it)
and everywhere I use a correctly configured RSTP in the switches (not routers),
everything works wonderfully.
If then the STP does not work for the Ubix devices, it is not that all the other manufacturers do not work…

Thanks for all suggestions.
I made a trial setup in a lab setting with two routers connected via different subnets. I tried both the setting with ‘check gateway’ as well as with a netwatch script, and both worked fine. I did have to set up firewall rules to prevent the gateways to be pinged to be accessible only directly via the link with the direct connection (i.e. not via the alternative path)
I have not tried the OSPF routing yet.