I’m trying to set up a recursive backup on my Chateu. I can’t figure it out.
The primary internet is provided via mAP Lite which is connected to eth1 (which gets the internet from my phone). Secondary is from the Chateau’s LTE modem. The idea is that when I turn on hotspot on my phone the Chateu should use net from mAP lite, otherwise from LTE modem.
Which requires recursive routing due to extra hop on the mAP lite. Without it I need to disconnect / turn off mAP lite to make Chateu switch to LTE.
Currently my routing table looks like this:
I’ve tried tuts and docs and while I get the idea, I can’t set it up. This is where I got:
Apart from that - why I can’t disable those 2 routes from lte and ether1, can only remove them?
It pretty easy to understand using recursive routing in this simple terms:
A → B (A needs to reach B)
B → C (B is reachable via C)
So, A → C (indirectly via B)
If you hover over the data in the column with the little flag It should tell you what the letters mean.
DAC means Dynamic Active Connected, these routes are automatically (dynamically) created the moment an interface has an IP address, and they are only for the network of the interface IP and network mask, these are always Active because they have distance 0.
DAd means Dynamic, Active, dhcp originated, this comes from a DHCP client that you have enabled on an interface, that received It from a DHCP server connected to It, It Is Active because distance Is 1.
AS means Active Static this Is a router you added manually (static) that happens to be Active because It has distance 1 (the default when you add a router without specifying distance).
USHI means Unreachable Static Hardware-offloaded Inactive, the Hardware-offloaded Is meaningless/an artifact, can be ignored, Static means you added It manually, the Inactive means that It should be Active (because It has distance 1) but It isn’t because the destination or gateway Is Unreachable.
Dm means Dynamic and m means ? probably It Is a special flag meaning that It comes from the LTE interface, this Is not Active (and printed in blue) because It has a higher distance of 2.
Dynamic routes (all of them) cannot be disabled and DAC ones cannot be deleted and having distance 0 are always on.
sure, I’ll look into this - will take a while to clean it though.
I’ve reverted back to my previous setup with working non-recurive WAN backup, but will try again in the weekend. This would solve a huge pain with my current learning lab setup.
Just to make sure - can I leave one of the WANs intact, without any mods (other than increasing distance)? I thought about leaving LTE connection, with higher distance, but I’m not sure whether “Add default route” from Interfaces → LTE → LTE APNs could interfere in some way or not. I assumed not (as there’s distance setting in APNs), but I’m a bit too unexperienced with it - and the GUI doesn’t help (lot of things all over the place), while at the same time I’m really too newb to already know all the CLI options (which I hope to learn asap ).