*BSD News Article 86294


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!mindspring!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news-peer.gsl.net!news.gsl.net!news-lond.gsl.net!news.gsl.net!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!usenet
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PPP problems
Date: 6 Jan 1997 02:28:00 GMT
Organization: Coverform Ltd.
Lines: 76
Message-ID: <5apnvg$bg0@awfulhak.demon.co.uk>
References: <32CD1B09.261@sticky.usu.edu> <5ajmjr$ffk@raven.eva.net>
    <32CDA625.7385@center.uscs.com>
    <Pine.SUN.3.90.970103171257.5133A-100000@bighorn.accessnv.com>
    <5ali7v$jhb@uriah.heep.sax.de>
    <01bbfb30$0587abc0$81c4abc7@cybercomm.net.cybercomm.net>
NNTP-Posting-Host: awfulhak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
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:33674

In article <01bbfb30$0587abc0$81c4abc7@cybercomm.net.cybercomm.net>,
	"Glen" <gi143@cybercomm.net> writes:
> When I try to run ppp -auto default this is the error I receive 
> must specify dstaddr with auto mode.  
> 
> I have looked threw the man pages, but found nothing about dstaddr.
> My isp assigns dynamic IPs.

You need the following lines in ppp.conf:

    ifaddr 127.0.1.1/0 127.0.2.1/0
    delete ALL
    add 0 0 HISADDR

and the following in ppp.linkup:

    delete ALL
    add 0 0 HISADDR

Also, don't use 'ppp -auto default' - it may cause problems.  Define a
different name (in ppp.conf & ppp.linkup) - the special name 'default'
will be used too.  Check out /etc/ppp/ppp.conf.sample for some good
examples.

> Also how do you connect with ppp manually for example.
> 
> ppp
> 
> Then you get ppp prompt.
> 
> I would like to try this manually, but don't know how.
> 
> thanks
> Here is my ppp.conf, ppp.secret, ppp.linkup
> ppp.conf
> 
> 1. default:
> 2. set device /dev/cuaa1
> 3. set speed 57600
> 4. set parity none
> 5. set timeout 1200
> 6. set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATL0M1E1V1X4S0=0
> OK-AT-OK \\dATDT4983885\T TIMEOUT 60 CONNECT"
> 7. set login "TIMEOUT 5 ogin:-\\r-ogin: Pjay word: MyPassword"
> 8. set ifaddr 206.183.68.100/0 206.183.68.11/0 netmask 0xffffff00
> 
> ppp.secret
> 
> 1. # Sysname       Secret Key      Peer's IP address
> 2. mymachine       PPPLetMeIn      127.0.0.1
> 
> ppp.linkup
> 
> 1. MYADDR:
> 2. delete ALL
> 3. add 0 0 HISADDR

Ok, you've got it pretty much correct.  All you need is to insert

fred:

in-between line 6 & 7 in ppp.conf, then append the lines

 delete ALL
 add 0 0 HISADDR

and change MYADDR: to fred: in ppp.linkup.  Then 'ppp -auto fred' should
work.  The extra two lines in ppp.conf are needed so that you get an
initial route.  Without them, you'll need to manually add a route, things
will get a bit mixed up after that.... with the above, no manual "tun"
routes should be done.

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