diff options
author | brian <brian@FreeBSD.org> | 1997-04-21 01:02:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-04-21 01:02:02 +0000 |
commit | ad4ab187936a54f3a8329d804592f12284e6c176 (patch) | |
tree | 7b87206f10e0b3c6831b1d1b453f11c55a48e172 /usr.sbin/ppp/ppp.8.m4 | |
parent | ca8a9db2701fdcbcc35546f2de8867e0b669e7bc (diff) | |
download | FreeBSD-src-ad4ab187936a54f3a8329d804592f12284e6c176.zip FreeBSD-src-ad4ab187936a54f3a8329d804592f12284e6c176.tar.gz |
Add a reconnect capability directing ppp to re-establish
the connection after an unexpected loss of carrier:
set reconnect timer ntries
The man page warns against using this command when your
timeout value is slightly more than the other sides :{}
Suggested by: burton@bsampley.vip.best.com (Burton Sampley)
Diffstat (limited to 'usr.sbin/ppp/ppp.8.m4')
-rw-r--r-- | usr.sbin/ppp/ppp.8.m4 | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4 index 26ad29e..f4431ee 100644 --- a/usr.sbin/ppp/ppp.8.m4 +++ b/usr.sbin/ppp/ppp.8.m4 @@ -1,5 +1,5 @@ .\" manual page [] for ppp 0.94 beta2 + alpha -.\" $Id: ppp.8,v 1.28 1997/04/13 00:54:45 brian Exp $ +.\" $Id: ppp.8,v 1.29 1997/04/14 23:48:17 brian Exp $ .Dd 20 September 1995 .Os FreeBSD .Dt PPP 8 @@ -441,13 +441,44 @@ dial mode on both ends of the link. If each end has the same timeout, both ends wind up calling each other at the same time if the link drops and both ends have packets queued. +At some locations, the serial link may not be reliable, and carrier +may be lost at inappropriate times. It is possible to have +.Nm +redial should carrier be unexpectedly lost during a session. +.Bd -literal -offset indent +set reconnect timeout ntries +.Ed + +This command tells ppp to re-establish the connection +.Ar ntries +times on loss of carrier with a pause of +.Ar timeout +seconds before each try. For example, +.Bd -literal -offset indent +set reconnect 3 5 +.Ed + +tells +.Nm +that on an unexpected loss of carrier, it should wait +.Ar 3 +seconds before attempting to reconnect. This may happen up to +.Ar 5 +times before +.Nm +gives up. The default value of ntries is zero (no redial). Care +should be taken with this option. If the local timeout is slightly +longer than the remote timeout, the reconnect feature will always be +triggered (up to the given number of times) after the remote side +times out and hangs up. + If the .Fl background flag is specified, all phone numbers are dialed at most once until a connection is made. The next number redial period specified with the .Dq set redial -command is honoured. +command is honoured, as is the reconnect tries value. To terminate the program, type |