From owner-freebsd-questions Fri Jun 12 15:02:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA25547 for freebsd-questions-outgoing; Fri, 12 Jun 1998 15:02:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA25236 for ; Fri, 12 Jun 1998 15:01:20 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id WAA23696; Fri, 12 Jun 1998 22:57:42 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199806122157.WAA23696@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: aaron@csh.rit.edu cc: Brian Somers , questions@FreeBSD.ORG Subject: Re: ppp-980609: sticky routes not working In-reply-to: Your message of "Fri, 12 Jun 1998 16:40:27 EDT." <19980612164027.24793@homenet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 12 Jun 1998 22:57:41 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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 , , 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