search for: switch_dsl

Displaying 1 result from an estimated 1 matches for "switch_dsl".

Did you mean: switch_ddc
2006 Mar 27
0
Re: Re: multiple isp. masqueraded machines somtimes work and somet
...my fw is unable to ping www.google.com then it will change my gateway >as well as restart the shorewall...but the point to check is how long >does it takes to find host unreachable.... >#!/bin/sh >CABLE_IP=ISP1 gw ip >DSL_IP=ISP2 gw ip > >## function to switch to dsl router >switch_dsl() >{ >route del default >route add default gw $DSL_IP >} > >## function to switch to cable router >switch_cable() >{ >route del default >route add default gw $CABLE_IP >} > >if ping -c1 -q www.google.com >/dev/null 2>&1; then ># since we can ping...