Hey there,
I'm currently managing 2 locations both using a MikroTik RB760iGS (hex S) running OpenWRT as their main router.
Those locations are linked through a P2P Wireless link, and also have a Wireguard VPN running between them.
Location 1
root@RTR_LOC1:~# ip a show dev sfp #Wifi Link
3: sfp: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 2c:c8:1b:99:b7:1b brd ff:ff:ff:ff:ff:ff
inet 172.31.0.1/24 brd 172.31.0.255 scope global sfp
valid_lft forever preferred_lft forever
inet6 fe80::2ec8:1bff:fe99:b71b/64 scope link
valid_lft forever preferred_lft forever
root@RTR_LOC1:~# ip a show dev wg0 # Wireguard Link
37: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 172.29.0.2/24 brd 172.29.0.255 scope global wg0
valid_lft forever preferred_lft forever
Location 2:
root@RTR_LOC2:~# ip a show dev lan2 # Wifi Link
5: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 2c:c8:1b:99:b6:49 brd ff:ff:ff:ff:ff:ff
inet 172.31.0.2/24 brd 172.31.0.255 scope global lan2
valid_lft forever preferred_lft forever
inet6 fe80::2ec8:1bff:fe99:b649/64 scope link
valid_lft forever preferred_lft forever
root@RTR_LOC2:~# ip a show dev wg0 # Wireguard Link
19: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 172.29.0.1/24 brd 172.29.0.255 scope global wg0
valid_lft forever preferred_lft forever
LOC1 uses nets within 10.64.0.0/11 and LOC 2 nets within 10.0.0.0/11. Static routes are as follows:
root@RTR_LOC1:~# ip route show 10.0.0.0/11
10.0.0.0/11 via 172.31.0.2 dev sfp proto static
10.0.0.0/11 via 172.29.0.2 dev wg0 proto static metric 1
root@RTR_LOC2:~# ip route show 10.64.0.0/11
10.64.0.0/11 via 172.31.0.1 dev lan2 proto static
10.64.0.0/11 via 172.29.0.2 dev wg0 proto static metric 1
Now my Issue currently is that if I stop a MAN interface on either Router the routes are changed accordingly. But the Router on the other location doesn't know that the route just died. Which ends up with traffic only working from the location that knows of the failed Interface.
I saw that apparently you could add something like:
ip route add 10.0.0.0/11 via 172.31.0.2 dev sfp monitor on
But ip even in the full version isn't happy with that. Error: either "to" is duplicate, or "monitor" is a garbage.
Nor is there a config option where I could use this through /etc/config/network .
Do I have to script something myself here?