I have connection and route marking set up so that inbound traffic on Ether2 and Ether3 are routed back out the respective interface. All traffic originating on Ether1 is routed out Ether2, the default gateway.
I would like to setup failover routing so that if the default gateway on Ether2 is unreachable, traffic from Ether1 will be routed out Ether3. The problem I’m running into is that since the default gateway is created dynamically, I cannot modify it to add the check-gateway flag to it, which is required from what I understand.
Is there another way to accomplish what I’m trying to do? All help is greatly appreciated.
Write a script for this. Whilst the IP you receive on Ether2 may be dynamic, your gateway address (what you use to route to), is more than likely static.
Get a script to periodically ping the gateway - if the gateway is not accessable, alter the default route, or add a new one. The PPPoE profile should overwrite your default gateway again once a new connection is established to it.
First off, I forgot to mention I’m running ROS 2.9.12.
Actually I am not using PPPoE. Ether2 is a cable connection and Ether3 is a DSL connection, neither of which require any authentication.
I will look into scripting and see what I can find. I’m running a RB532 without any compactflash storage on it so I’ll probably need to add that first to store the script once it’s created.