summaryrefslogtreecommitdiff
path: root/etc/ppp
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-04-07 20:22:04 +0000
committerBrian Somers <brian@FreeBSD.org>1997-04-07 20:22:04 +0000
commit54e3ff158ea6feef2f18940991f1d882d93fdc27 (patch)
tree1dedb9a5d8350a232ff7585c43f71d954065601a /etc/ppp
parent98f6d1b8baad9f49d4bf0ee24bb0af6a8079a140 (diff)
Notes
Diffstat (limited to 'etc/ppp')
-rw-r--r--etc/ppp/ppp.conf.sample30
1 files changed, 29 insertions, 1 deletions
diff --git a/etc/ppp/ppp.conf.sample b/etc/ppp/ppp.conf.sample
index 4feaa6cb2b0b..e8b17eca3054 100644
--- a/etc/ppp/ppp.conf.sample
+++ b/etc/ppp/ppp.conf.sample
@@ -4,7 +4,7 @@
#
# Written by Toshiharu OHNO
#
-# $Id: ppp.conf.sample,v 1.5.2.2 1997/03/02 14:56:49 joerg Exp $
+# $Id: ppp.conf.sample,v 1.5.2.3 1997/03/17 00:29:48 jmg Exp $
#
#################################################################
@@ -107,6 +107,34 @@ pmdemand:
add 0 0 HISADDR
set openmode active
+# Examples to connect using a null-modem cable from one machine to another.
+# The important thing here is to get the lqr packets going properly.
+# We disable them on the client side and enable them on the server side.
+# Without them enabled on the server side, we can't tell if the line's
+# dropped - there should always be carrier on a direct connection.
+# Here, the server sends lqr's every 10 seconds and quits if three in a
+# row fail.
+#
+# Make sure you don't have "deny lqr" in your default: on the client !
+#
+direct-client:
+ set dial ""
+ set line /dev/cuaa0
+ set sp 115200
+ disable lqr
+ set timeout 900
+ set debug Phase
+ set login "TIMEOUT 5 -\\r-login:-\\r-login: ppp word: ppp HELLO"
+ set ifaddr 10.0.4.2 10.0.4.1
+ add 10.0.4.2 0 127.0.0.1
+
+direct-server:
+ set timeout 900 10 3
+ set debug Phase LQM
+ enable lqr
+ set ifaddr 10.0.4.1 10.0.4.2
+ add 10.0.4.1 0 127.0.0.1
+
# Example to validate incoming user with CHAP
# Invoke as ``ppp -direct users'' from login script. User's system name
# and secret-key must be registered into /etc/ppp.secret.