*BSD News Article 58241


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!uwm.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news.bctel.net!nntp.pinc.com!cue.bc.ca!jnemeth
From: jnemeth@cue.bc.ca (John Nemeth)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Getting PPP Links up and Running
Date: 6 Jan 1996 12:58:58 GMT
Organization: Computer Using Educators of B.C., Canada
Lines: 38
Message-ID: <4clrmi$tpu@nntp.pinc.com>
References: <4btgbk$plv@cynic.portal.ca> <4c4b7p$7u8_001@dialupS165.ici.net> <4c4ekf$75v@cynic.portal.ca>
NNTP-Posting-Host: cue.bc.ca

In article <4c4ekf$75v@cynic.portal.ca> curt@portal.ca (Curt Sampson) writes:
>
>The only real complaint I have is that pppd is not really suited
>to keeping a connection up permanently by redialing whenever it
>goes down (or I missed something somewhere). I've currently got a

     There was a neat trick posted to current-users quite some time
ago.  It involved makeing some changes to pppd in the way it handled
serial ports and adding a line to your /etc/ttys.  The necessary
source code changes are in NetBSD 1.1.  The following line in
/etc/ttys works wonders for makeing a permanent link:

tty01   "/usr/sbin/pppd"                unknown on rtcsts

/etc/ppp/options looks like:

/dev/tty01
115200
connect "/usr/sbin/chat '' 'atdt1' 'ogin:' 'x' 'sword:' 'x'"
crtscts
defaultroute
lock
netmask 255.255.255.0
n.n.n.n:n.n.n.n
-ip
modem
mtu 1500
-detach

You will of course have to make some changes if you have multiple ppp
connections.  The main key here is the '-detach' to make the pppd
remain connected to the controlling terminal (the modem).  The basic
idea is if the link drops (i.e. loses carrier), a hangup signal will
be sent to pppd, causing it to exit, and init will restart it.
-- 
John Nemeth                                                  jnemeth@cue.bc.ca
System Administrator
CUEBC, TC, VIFA, access                                   Opinions are my own.