In Raspbian (Debian) on the RaspberryPi, I've got two interfaces,
wlan0, and I'm using
eth0 (a cellular modem) as the primary connection, with only some heavy traffic going out through
wlan0. To that end, I'm using the
ip route command.
Eg: (Routing Google's stuff through wlan0)
ip route add 184.108.40.206/24 dev wlan0
But, unfortunately, the power in our building occasionally goes out, rendering
How can I keep this static connection routed only when the host (eg. Google.com) is reachable via
wlan0 (ie. wireless), but switch to
eth0 (ie. cellular) when the power goes out (eg. Hurricane Sandy), and the wireless router is useless?