From owner-freebsd-questions Mon Aug 11 22:02:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA29196 for questions-outgoing; Mon, 11 Aug 1997 22:02:11 -0700 (PDT) Received: from obie.softweyr.ml.org ([199.104.124.49]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA29178 for ; Mon, 11 Aug 1997 22:02:02 -0700 (PDT) Received: (from wes@localhost) by obie.softweyr.ml.org (8.7.5/8.6.12) id XAA16507; Mon, 11 Aug 1997 23:04:23 -0600 (MDT) Date: Mon, 11 Aug 1997 23:04:23 -0600 (MDT) Message-Id: <199708120504.XAA16507@obie.softweyr.ml.org> From: Wes Peters To: Royce Tidwell CC: questions@freebsd.org Subject: ppp-routing tables In-Reply-To: References: Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Royce Tidwell writes: > Hey guys hopefully just a quick question here... > > After a clean boot, everything works just fine, I dial in and my default > routes are added normally. When I disconnect (or get disconnected), and > then try to dial in again, the original default route is not deleted, and > another entry for tun0 is added. > > Now, I can manually manipulate the routing table and get it to work, but > it's getting tiresome. > > My ppp.linkup: > > MYADDR: > delete ALL > add 0 0 HISADDR > > (both MYADDR and HISADDR are dynamically allocated) Make that: MYADDR: delete 0 0 add 0 0 HISADDR You don't want to delete ALL routes, just the default one. It sounds like the 'delete ALL' statement is getting ignored, thus the routes never get deleted. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com