Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 1998 22:57:41 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        aaron@csh.rit.edu
Cc:        Brian Somers <brian@Awfulhak.org>, questions@FreeBSD.ORG
Subject:   Re: ppp-980609: sticky routes not working 
Message-ID:  <199806122157.WAA23696@awfulhak.org>
In-Reply-To: Your message of "Fri, 12 Jun 1998 16:40:27 EDT." <19980612164027.24793@homenet> 

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

The W routes are ``cloned'' routes.  ``netstat'' doesn't bother 
showing them.  They disappear when the route that they're cloned from 
disappears - in this case the ``default'' route.

If you're running in -auto mode with only the sticky route as per 
your original message, ppp will never bother deleting the default so 
all the cloned routes will hang around 'till they expire.

They shouldn't cause any problems.

If you really want to kill them, you could

  delete default
  add default hisaddr

in ppp.linkdown.

[.....]
> is alright for static IP but not for dynamic IP.  Are you cursed
> with dynamic IP in your area as I am?

I have the choice - for #27/year, I get a static IP - worth every 
penny !

What problems does it cause for dynamic IP ?  Are the cloned routes 
hanging around despite the gateway IP number changing ?

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

Me neither :-/

> Thanks for your time,
> Aaron Luz

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



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?199806122157.WAA23696>