*BSD News Article 94262


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!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: User PPP not adding default route
Date: 23 Apr 1997 16:04:48 GMT
Organization: Awfulhak Ltd.
Lines: 43
Message-ID: <5jlbv0$5r8@ui-gate.utell.co.uk>
References: <Pine.BSF.3.91.970423075644.15777A-100000@sokie.kae.net>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39600


In article <Pine.BSF.3.91.970423075644.15777A-100000@sokie.kae.net>,
	Rory Imua Lampert <rory@wwa.com> writes:
> 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!

Check out http://www.awfulhak.org/ppp.html.  If you still have any
problems, drop me a line.

Hint: /etc/ppp/ppp.linkup.routefix must be executable and have a
      "#!" line at the start of it if it's a script.

> Rory Imua Lampert
> -rory@wwa.com

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !