search for: cable_ip

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

2006 Mar 27
0
Re: Re: multiple isp. masqueraded machines somtimes work and somet
...hould work as >after a defined time in crontab the following script will run and if >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 >} &g...