I think he's asking more of a way to supply two different gateways on his
linux box.
I have never messed with this, however, your idea is good. You can ping
your gateway and if x number of packets are dropped, then you just rerun
the route command and change the gateway/interface.
fping should do what you want.
On 5 Sep 2000, Chris K. Young wrote:
| Quoted from Shane Wise:
| > I have 2 dsl connections to the internet with seperate providers. As it
| > stands know if the one with the default route dies I am sunk unless I am
| > here to change.
|
| Is there a way to automatically tell when one of the routes will fall
| over? If so, just have a script automatically rewrite ``smtproutes''
| when that happens.
|
| ---Chris K.
--
_ __ _____ __ _________
______________ /_______ ___ ____ /______ John Gonzalez/Net.Tech
__ __ \ __ \ __/_ __ `__ \/ __ /_ ___/ MDC Computers/netMDC!
_ / / / `__/ /_ / / / / / / /_/ / / /__ (505)439-0200/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/ \___/ http://www.netmdc.com
[---------------------------------------------[system info]-----------]
8:00am up 117 days, 14:03, 3 users, load average: 0.42, 0.23, 0.14