Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 02:46:22 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        "Andrey A. Chernov" <ache@nagual.pp.ru>, current@freebsd.org, brian@freebsd.org, brian@Awfulhak.org
Subject:   Re: Recent interface/routing changes breaks on-demand PPP 
Message-ID:  <200103250146.f2P1kMf65048@hak.lan.Awfulhak.org>
In-Reply-To: Message from Brian Somers <brian@Awfulhak.org>  of "Sat, 24 Mar 2001 01:27:11 GMT." <200103240127.f2O1RB719000@hak.lan.Awfulhak.org> 

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