From owner-freebsd-current Sun Mar 25 22:44: 0 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 2664A37B71A; Sun, 25 Mar 2001 22:43:52 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f2Q6g2o97683; Mon, 26 Mar 2001 09:42:02 +0300 (EEST) (envelope-from ru) Date: Mon, 26 Mar 2001 09:42:02 +0300 From: Ruslan Ermilov To: Brian Somers Cc: "Andrey A. Chernov" , current@FreeBSD.ORG, brian@FreeBSD.ORG Subject: Re: Recent interface/routing changes breaks on-demand PPP Message-ID: <20010326094202.A97610@sunbay.com> Mail-Followup-To: Brian Somers , "Andrey A. Chernov" , current@FreeBSD.ORG, brian@FreeBSD.ORG References: <200103250146.f2P1kMf65048@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103250146.f2P1kMf65048@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Sun, Mar 25, 2001 at 02:46:22AM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 25, 2001 at 02:46:22AM +0100, Brian Somers wrote: > > > On Fri, Mar 23, 2001 at 23:11:56 +0000, Brian Somers wrote: > > > > 1. Ppp is in -auto mode (or a ``set mode auto'' has been done). > > > > Here, ppp configures the interface as soon as it sees the ``set > > > > ifaddr'' line and never undoes that configuration. An ``add'' > > > > with a fixed IP number would never have worked if it's before the > > > > ``set ifaddr''. If it's after the ``set ifaddr'', nothing should > > > > ever remove it (as the interface will stay configured). > > > > > > > > 2. Ppp is not in -auto mode. Here, ppp won't assign the interface > > > > address 'till IPCP is up. Any attempt to ``add'' a route with a > > > > static IP number in ppp.conf should fail. > > > > > > > > So, the recent routing changes shouldn't have made a difference. > > > > > > > > Anyone know what I'm missing ? Andre, what does your ppp.conf look > > > > like and how are you running ppp ? > > > > > > ppp in -auto mode, "add" is after "set ifaddr" > > > > In which case your interface should stay configured despite the link > > coming down and your route should *not* be deleted. > > > > I'll see if I can reproduce this here (I need to upgrade a machine > > first). > > This was happening because ppp was deleting then re-adding the > interface address when IPCP came up, causing the new routing code to > nuke the static route. I've added an optimisation to stop this from > happening, so your configuration should work ok again with > src/usr.sbin/ppp/iface.c 1.17. > You mean, ppp(8) does not do this now if negotiated address does not change? -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message