Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 1998 16:40:27 -0400
From:      Aaron Jeremias Luz <aaron@csh.rit.edu>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: ppp-980609: sticky routes not working
Message-ID:  <19980612164027.24793@homenet>
In-Reply-To: <199806121751.SAA12621@awfulhak.org>; from Brian Somers on Fri, Jun 12, 1998 at 06:51:01PM %2B0100
References:  <19980611200913.07458@homenet> <199806121751.SAA12621@awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 12, 1998 at 06:51:01PM +0100, Brian Somers wrote:
> > I just recently switched from using the /usr/sbin/ppp which came
> > with 2.2.5R to ppp-980609.  Unfortunately, I have been noticing
> > problems with routes and interfaces not properly being updated.
> > 
> > /etc/ppp/ppp.conf includes the following.
> >  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
> >  add default HISADDR
> > 
> > I don't "set ifaddr" or "add" a route anywhere else.  I invoke ppp
> > with "ppp -auto -alias myisp".  However, if I suddenly switch to
> > ddial mode using pppctl, the default route vanishes and tun0 is no
> > longer associated with an IP address.
> 
> Fixed now - thanks for the report.
> 
> >                                        Also, routes associated with
> > real Internet numbers stick around sometimes after the connection
> > has been dropped.  This happens occationally even when I don't mess
> > around with switching to ddial mode.
> 
> Are these ``W'' routes visible via ``show route'' inside ppp ?

Yes.  Here is an example taken after ppp-980610 disconnects and hangs up:

   Destination         Gateway             Flags  Netif
   default             207.198.22.101      UGSc   tun0
   127.0.0.1           127.0.0.1           UH     lo0
   192.168.1/24        link#1              UC     ed1
   192.168.1.2         link#1              UHLW   ed1
   206.64.128.2        207.198.22.101      UGHW   tun0
   207.198.22.101      206.114.185.98      UH     tun0

I originally used "netstat -r" to view the routes.  It leaves out
one of the tun0 routes. 

   Routing tables

   Internet:
   Destination      Gateway         Flags Refs  Use  Netif Expire
   default          207.198.22.101  UGSc     1    0   tun0
   127.0.0.1        127.0.0.1       UH       1  566    lo0
   192.168.1        link#1          UC       0    0
   192.168.1.2      link#1          UHLW     1   70 
   207.198.22.101   206.114.185.98  UH       2    0   tun0

> > Am I doing something wrong?  Is this a bug?  Is there a "stable"
> > version of ppp I should use?
> 
> At the moment it's either the -stable branch (which I don't try to 
> maintain as an archive too) or the stuff you've got.  The stuff 
> you've got is beta, but it's proving reasonably reliable.

Okay, I tried ppp-980612 today.  The first problem, the dissappearing
routes, has been fixed, but the second problem seems to have become
worse.   The "W" routes always remain after the connection is
dropped and the phone is returned on hook.  Perhaps this behavior
is alright for static IP but not for dynamic IP.  Are you cursed
with dynamic IP in your area as I am?

BTW:  At certain times, I have also noticed the RTF_PROTO3 flag
set on one of the tun0 lines.  I have no idea what this means.

Thanks for your time,
Aaron Luz

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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