From owner-freebsd-questions Sat May 11 17:15: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from arpa.com (arpa.com [199.245.173.5]) by hub.freebsd.org (Postfix) with ESMTP id 9CBD437B406 for ; Sat, 11 May 2002 17:14:56 -0700 (PDT) Received: by arpa.com (Postfix, from userid 103) id 07FA7F0401; Sat, 11 May 2002 19:14:56 -0500 (CDT) Date: Sat, 11 May 2002 19:14:56 -0500 From: Chip Norkus To: chan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: t1 dsl Message-ID: <20020511191456.B9740@arpa.com> References: <3CDDB073.2608B5@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CDDB073.2608B5@attbi.com>; from rchitecture@attbi.com on Sat, May 11, 2002 at 04:59:47PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat May 11, 2002; 04:59PM -0700 chan propagated the following: > we currently have two connections to the internet through > t1 (main) and dsl (backup) > > i would like to see if some can share some idea on > how to automatically change from t1 to dsl when we have a dead t1 > > i am currently manually changing from t1 to dsl by using > > route delete t1_ip_add > route add default dsl_ip_add > > I am not sure how to check when t1 die and auto switch to dsl > & check when t1 is up so to switch it back from dsl > A very 'ghetto' way to do this would be to use ping to check the router on the other end of your t1 for 'alive-ness', and if it's dead, switch over to your dsl for routing. Write a script to do this, then crontab it for every minute, or five minutes. Good luck. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -wd -- chip norkus; unix geek and programmer; wd@arpa.com "question = (to) ? be : !be;" --Shakespeare http://telekinesis.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message