*BSD News Article 94244


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!sprint!news-east.sprintlink.net!news-dc-26.sprintlink.net!news.sprintlink.net!news-dc-9.sprintlink.net!news.wwa.com!sokie.kae.net!rory
From: Rory Imua Lampert <rory@wwa.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: User PPP not adding default route
Date: Wed, 23 Apr 1997 08:06:33 -0500
Organization: WorldWide Access (tm) - Midwestern Internet Services http://www.wwa.com
Lines: 30
Message-ID: <Pine.BSF.3.91.970423075644.15777A-100000@sokie.kae.net>
NNTP-Posting-Host: pool2-059.wwa.com
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: rory@sokie.kae.net
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39588


Hello, I have user ppp: Version 0.94 - $Date: 1997/01/14 07:15:44 $

When I dial into my ISP, I authenticate and recieve IP's, tun0 is ifconfig'd
but it will not add the default route.  I have to manually add it.

My ppp.linkup hasn't changed since the previous version and stands at:
MYADDR:
 add 0 0 HISADDR

In the example it also says that a script can be executed after linkup
so I changed it to:
MYADDR:
 add 0 0 HISADDR
 ! sh -c "/etc/ppp/ppp.linkup.routefix"

Where /etc/ppp/ppp.linkup.routefix is :
netstat -rn | grep tun0 | grep -v default | awk '{print "add default "$1}'| \
        xargs route;
echo route fixed > /tmp/routemebaby


Which does not appear to run either.

Can anyone point out what I'm doing wrong and offer suggestions for solving
this?

Thanks much!

Rory Imua Lampert
-rory@wwa.com