From owner-freebsd-questions@FreeBSD.ORG Wed Aug 6 09:50:08 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 0872737B401 for ; Wed, 6 Aug 2003 09:50:08 -0700 (PDT) Received: from nemesis.eahd.or.ug (nemesis.eahd.or.ug [216.129.132.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D4C143F85 for ; Wed, 6 Aug 2003 09:50:03 -0700 (PDT) (envelope-from ezra@cfi.co.ug) Received: from hacker ([192.168.1.12]) by nemesis.eahd.or.ug with smtp (Exim 4.20) id 19kRwP-0006WY-MF; Wed, 06 Aug 2003 20:19:13 +0300 From: "Ezra Banoba" To: "Philip Payne" , "Nick Rogness" Date: Wed, 6 Aug 2003 07:53:55 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <36D04A8168B2D41182250008C7E6F8780484F69A@ukcamexch2.cbg.uk.corp.eu.uu.net> X-Spam-Score: -1.4 (-) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *19kRwP-0006WY-MF*B.u0UDVTsu.* cc: freebsd-questions@freebsd.org 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: Wed, 06 Aug 2003 16:50:08 -0000 Hi, It works like magic. But then, ... that means I still would have to use a script to mark the interface as down when the remote gateway is inaccessible. Or is there a way to automagically mark the interface down if the network is inaccessible? Ezra Banoba Systems Administrator/Programmer Computer Froniters International Plot 32 Lumumba Avenue www.cfi.co.ug +256 031260485 -----Original Message----- From: Philip Payne [mailto:philip.payne@uk.mci.com] Sent: Wednesday, August 06, 2003 1:56 AM To: Nick Rogness; Ezra Banoba Cc: Philip Payne Subject: RE: backup static routes for freebsd (default) Hi, > # route add 0.0.0.0 PRIMARY_GW -netmask 127.0.0.0 > # route add 127.0.0.0 PRIMARY_GW -netmask 127.0.0.0 > # route add default SECONDARY_GW Good thinking, more specific routes take precedence over less specific ones, you always forget the fundamental stuff ;-) ... and it's a routing only solution so no scripts, great. Unfortunately I'm not in a position to try it so, Ezra, if it works let me know for future reference. Would much appreciate it. Thanks, Phil.