Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2001 09:29:45 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Brian Somers <brian@Awfulhak.org>, "Andrey A. Chernov" <ache@nagual.pp.ru>, current@FreeBSD.ORG, brian@FreeBSD.ORG
Subject:   Re: Recent interface/routing changes breaks on-demand PPP 
Message-ID:  <200103260829.f2Q8Tjv01290@hak.lan.Awfulhak.org>
In-Reply-To: Message from Ruslan Ermilov <ru@FreeBSD.ORG>  of "Mon, 26 Mar 2001 09:42:02 %2B0300." <20010326094202.A97610@sunbay.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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?

Yep.

> -- 
> 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

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103260829.f2Q8Tjv01290>