From owner-freebsd-current Sat Mar 24 17:44: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 7BE7337B718; Sat, 24 Mar 2001 17:43:48 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2P1hiT19700; Sun, 25 Mar 2001 02:43:47 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2P1kMf65048; Sun, 25 Mar 2001 02:46:22 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200103250146.f2P1kMf65048@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Brian Somers Cc: "Andrey A. Chernov" , current@freebsd.org, brian@freebsd.org, brian@Awfulhak.org Subject: Re: Recent interface/routing changes breaks on-demand PPP In-Reply-To: Message from Brian Somers of "Sat, 24 Mar 2001 01:27:11 GMT." <200103240127.f2O1RB719000@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 25 Mar 2001 02:46:22 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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. > > -- > > Andrey A. Chernov > > http://ache.pp.ru/ -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message