From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 02:17:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5899D37B401 for ; Tue, 5 Aug 2003 02:17:40 -0700 (PDT) Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB70B43FAF for ; Tue, 5 Aug 2003 02:17:38 -0700 (PDT) (envelope-from locus@hispeed.ch) Received: from rock.stable.ch (dclient217-162-228-119.hispeed.ch [217.162.228.119])h759HaCL028621 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 5 Aug 2003 11:17:37 +0200 Received: from locus by rock.stable.ch with local (Exim 3.33 #1) id 19jxwh-000Kzj-00 for freebsd-questions@freebsd.org; Tue, 05 Aug 2003 11:17:31 +0200 Date: Tue, 5 Aug 2003 11:17:31 +0200 From: Thomas Spreng To: freebsd-questions@freebsd.org Message-ID: <20030805091731.GA80282@rock.stable.ch> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: locus Subject: Re: backup static routes for freebsd (default) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 09:17:40 -0000 hi, On Mon, Aug 04, 2003 at 11:52:54PM -0700, Ezra Banoba wrote: > Hello, > I have a gatway box running freebsd 4.8 and several links to the internet > via different ISP's. > This box is connected directly to one of the ISP's but also has access to > the other gatways via the LAN. > I would like to setup static backup (default) routes such that when and if > the main link goes down, the default route for this box is automatically > changed to point to another router on the LAN.I am having trouble > implementing this on freebsd. > Any ideas? you might want to take a look at the ng_one2many(4) manpage. It is a module for the netgraph(4) subsystem which allows routing over several links. If you want a really cheap & dirty solution, you could simply write a script that checks if the main gateway is down and then changes the default route to your backup router. hope that helps...