*BSD News Article 79044


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!news.wildstar.net!newsfeed.direct.ca!op.net!news.mathworks.com!hunter.premier.net!news1.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PPP - setup Question -
Date: Tue, 24 Sep 1996 21:36:56 +0000
Organization: Erol's Internet Services
Lines: 83
Message-ID: <32485478.2858@www.play-hookey.com>
References: <3247300D.57A1@airmail.net> <527igd$amn@csugrad.cs.vt.edu>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win16; U)

H. Jared Agnew wrote:
> 
>   Martin,
> 
>   We need a bit more information, first what are the pseudo devices compiled
> in your kernel, meaning do you have a tun, ppp, sl device compiled in.  Then
> if you want to use the tun0 device, are you using ppp to connect?
> 
> Martin Stack (jumper@airmail.net) wrote:
> : HELP  !
> 
> :       When I boot up here is what I see for tun0,  CAN ANYONE tell me what is
> : going on in this string of stuff  ??????
> 
> : sysconfig:
> :   ifconfig_tun0="inet machine.airmail.net 0.0.0.0 betnast 0xffffff00"
> 
> : MY MACHINE ON BOOT
> :       ifconfig ioctl(CIOCAIFADD):Destination address required
>                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     This means that the ifconfig call wants another parameter, which happens
>     to be the IP of the machine you will be dialing into.
> B
> 
> :       tun0: flags=8010<POINTTOPOINT,MULTICAST> mtu 1500
> 
> : online Doc says:
> :       tun0: flags=51<UP,POINTTOPOINT,RUNNING> mtu 1500
> :               inet x.x.x.x --> y.y.y.y netmask 0xffffffff
> 
> : I think this is the source of my connection problems. I can connect but
> : my connectionb times out due to inctivity.  Any pointer as to which
> : direction to go would greatly be appreciated.
> 
> : You can mail me direct at  jumper@airmail.net if this is a flamable
> : question.  THANKS !!!!
> 
> : Martin
> 
>   Now I'm definatly not a guru, and there will be people posting after this
> that will atest to that fact, but I have found that pppd is much easier, and
> faster.  So if you want here are some tips on using pppd.
> 
> 1.  Make sure that the pseudo-device ppp is compiled into your kernel
>     (It is not by default)
> 
> 2.  Create a /etc/ppp/options file with nothing in it.
> 
> 3.  Create a /etc/ppp/ppp.chat file with the following in it.
> 
>     ABORT BUSY ABORT 'NO CARRIER' '' ATZ OK ATDT<phone number> CONNECT
>     ogin:--ogin: <user name> assword: <password>
> 
> 3b.  You may need to change the ogin: prompt to ame:--ame: if your isp
>      provides you with a different prompt.  Also if you are prommpted to
>      type anything when you login you will need to add it there.
> 
> 4.  Then on the command prompt type
> 
>     pppd <speed> <device> connect 'chat -f /etc/ppp/ppp.chat'
> 
>     ex.  pppd 57600 /dev/cuaa1 connect 'chat -f /etc/ppp/ppp.chat'
> 

Although this may be dragging the original question far afield...

I found it much easier to include in /etc/ppp/options the line:

	connect /etc/ppp/dial-isp

where dial-isp is an executable chat script that has all the
nitty-gritties in it. Since my connection is full-time, my command line
is in /etc/rc.local, and reads:

	pppd 115200 /dev/cuaa1

All else is handled in the options file.
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |