From owner-freebsd-questions@FreeBSD.ORG Fri Jul 4 11:55:47 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 6708637B401 for ; Fri, 4 Jul 2003 11:55:47 -0700 (PDT) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C57043FE3 for ; Fri, 4 Jul 2003 11:55:46 -0700 (PDT) (envelope-from stanb@panix.com) Received: from panix.com (brillig.panix.com [166.84.1.76]) by mail1.panix.com (Postfix) with ESMTP id D10274D13E; Fri, 4 Jul 2003 14:49:05 -0400 (EDT) Received: from teddy.fas.com (pcp01010374pcs.mplsnt01.sc.comcast.net [68.58.176.69]) by panix.com (Postfix) with ESMTP id 9C8D52AA10; Fri, 4 Jul 2003 14:48:35 -0400 (EDT) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 19YVbn-0001Ce-00; Fri, 04 Jul 2003 14:48:35 -0400 Date: Fri, 4 Jul 2003 14:48:35 -0400 From: stan To: Bill Moran Message-ID: <20030704184835.GA4612@teddy.fas.com> Mail-Followup-To: Bill Moran , Free BSD Questions list References: <20030704161329.GB1237@teddy.fas.com> <3F05BEEB.40301@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F05BEEB.40301@potentialtech.com> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.21 X-Uptime: 14:46:18 up 18 days, 1:48, 3 users, load average: 0.37, 0.15, 0.05 User-Agent: Mutt/1.5.4i Sender: Stan Brown cc: Free BSD Questions list Subject: Re: How to delete/replace default route using ppp? 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: Fri, 04 Jul 2003 18:55:47 -0000 On Fri, Jul 04, 2003 at 01:52:43PM -0400, Bill Moran wrote: > stan wrote: > >I'm trying to get a new laptop set up for a quick out of town trip. > > > >Can anyone help me with the ppp.conf syntax to clear/replace an existing > >default rout for the duration of a ppp linkup? > > > >That is, the machine starts off with a default route, which I want to > >delete and replace with the ppp route for the duration of the conection. > >Then I wnat to put the orignal route back. > > > >Sugestions? > > Please forgive me if I'm saying something you already know. > > The default ppp.conf file has a line: > add default HISADDR > Which should do what you want. > I'm not 100% sure that this will actually "delete" a previous route. That's the issue. It will not. Yo get an error message about route 0.0.0.0 already existing. Acording to the ppp.conf man page the line delete default or delete ALL _should work, but I'm having troubel getting them to work for me. Thanks for the help. -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin