I have 2 different home internet connections and I have an IP from each router's LAN (such as 10.0.0.2/24 and 10.0.1.2/24 with each ISP's routers being the .1) configured on my private server, which then distributes internet access to my network.The problem is when one of my ISPs goes down I have to manually change my default gateway from 10.0.0.1 to 10.0.1.1 because those IPs are set in each router and the routers are not in bridge mode. Since the downtime has nothing to do with the routers at my home there's no way my server can know the routing table is down because the router is still answering ICMP packets.The question is, does the Linux kernel support setting to check an IP through a gateway and using the state of that route to also change my gateways? For example, if I were to set 8.8.8.8 to always go through 10.0.0.1 and if that IP stopped responding then bring down the 10.0.0.1 default route as well, that'd work for me.I know for a fact setting both my routers to bridge mode and letting my server do the PPPoE handshake would work best and avoiding having to do this but at least one of my routers doesn't support bridge mode.
Does the Linux kernel support changing gateways based on state of IP outside your network?
linux;iproute;gateway
does the Linux kernel support setting to check an IP through a gateway and using the state of that route to also change my gateways?No. Something like that is not in scope for the kernel. You should do it in userspace.The usual kind of software daemon that has the job of controlling and maintaining your routing table probably doesn't support it either because it runs standards-based routing protocols like OSPF and BGP to learn the correct routes to install from neighbouring routers, not ping something remote and set default route accordingly if successful, but it might have such a feature...I know for a fact setting both my routers to bridge mode and letting my server do the PPPoE handshake would work best and avoiding having to do this but at least one of my routers doesn't support bridge mode.FWIW that's not a guarantee either. Just because the PPPoE session comes up doesn't mean that the (whole) Internet is reachable through that path. There might be a problem further along in the ISP network.