From owner-freebsd-stable Mon Aug 14 1:41:26 2000 Delivered-To: freebsd-stable@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 35C1F37B739 for ; Mon, 14 Aug 2000 01:41:22 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (hak.nat.Awfulhak.org [172.31.0.12]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id JAA53903; Mon, 14 Aug 2000 09:41:20 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id JAA02151; Mon, 14 Aug 2000 09:29:45 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200008140829.JAA02151@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Mike Tancsa Cc: stable@FreeBSD.org, brian@Awfulhak.org Subject: Re: ppp and default route In-Reply-To: Message from Mike Tancsa of "Wed, 26 Jul 2000 18:21:43 EDT." <4.2.2.20000726181239.04b06fe0@mail.sentex.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Aug 2000 09:29:45 +0100 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Is there any way to prevent ppp from deleting the default route once a link > is dropped ? I am using it in conjunction with the poptop port and there is > no need for it to mess with the default route. This behavior started > happening after cvsup'ng from a May25th build to a July16th build. I have > it re add the default route in ppp.linkdown, but it only seems to work 80% > of the time. Ppp will remove all routes that use it's interface when it deconfigured the interface. If the default route you want isn't via ppp's interface, it shouldn't be deleted.... however, there's a bug whereby if you ``add default HISADDR'', ppp reckons it needs to delete that sticky route and makes a mess under certain circumstances: ppp.conf tst: add default HISADDR $ netstat -rn | fgrep default default 172.17.0.1 UGSc 0 0 vmnet1 $ ppp tst ppp ON hak> show route Destination Gateway Flags Netif default 172.17.0.1 UGSc vmnet1 ..... $ ppp ON hak> q $ netstat -rn | fgrep default I think the right solution is to have ppp not delete sticky routes. It still deletes all routes using it's interface. I'll commit this change later today. Note, there *was* a bug whereby ``ppp -unit10 ...'' would have its routes nuked by a running ``ppp -unit1 ...'', but that's already been fixed (a few weeks ago). > ---Mike > -------------------------------------------------------------------- > Mike Tancsa, tel +1 519 651 3400 > Network Administration, mike@sentex.net > Sentex Communications www.sentex.net > Cambridge, Ontario Canada www.sentex.net/mike -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message