*BSD News Article 88988


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!serv.hinet.net!news.uoregon.edu!tezcat!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!news.sprintlink.net!news-peer.sprintlink.net!gail.ripco.com!news.fred.net!not-for-mail
From: mcurry@fred.net ( )
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ppp auto redial after lost connection?
Date: 14 Feb 1997 02:16:13 GMT
Organization: FredNet - Frederick, Md.
Lines: 25
Message-ID: <5e0hte$rg6@news.fred.net>
References: <01bc19cb$48ea4760$05e955c2@iaipc0.iai.rssi.ru> <330379AD.41C6@urc.tue.nl>
NNTP-Posting-Host: bigdog.fred.net
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35367

With pppd, although there is a provision for redialing automatically, it
does not work reliably.  You can get around this by writing a short script
that pings the other end of the line, or checks for carrier detect, or
other things that you personally prefer.  You grep the ping return for
some unique string, and conditionally restart pppd (after killing the
previous pppd process, which has to be identified by grepping the output
of the ps -x command).

Alternatively, and much to be preferred, is to use ijppp with the -ddial
option.  It will redial automatically on loss of carrier.


mc

Peter Benschop (rcbapb@urc.tue.nl) wrote:
: I am using a permanent ppp connection over a serial line. However the
: modem on the other side of the line is reset every 24 hours and the
: connection is lost. Is there an easy solution to make ppp redial after a
: lost connection? It redials automatically when _I_ make a request, but
: the outside world can't enable the connection, so nobody can gain access
: to my computer when I'm not there and the connection is lost.
: Any ideas?
: 
: Thanks,
: Peter.