summaryrefslogtreecommitdiffstats
path: root/etc/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-03-13 21:24:18 +0000
committerbrian <brian@FreeBSD.org>1997-03-13 21:24:18 +0000
commit8989c275d4ca77a70efc6a4875b0e0608dba54dc (patch)
tree039357bb06d332a92344359bda757eb76f912775 /etc/ppp
parentd14412c59dead9d8b503bd8c6cbbde710b76e7cd (diff)
downloadFreeBSD-src-8989c275d4ca77a70efc6a4875b0e0608dba54dc.zip
FreeBSD-src-8989c275d4ca77a70efc6a4875b0e0608dba54dc.tar.gz
Add examples for a direct serial connection using lqr
Candidate for 2.2.
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 110aca4..821b0c4 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.8 1997/02/23 09:21:11 peter Exp $
+# $Id: ppp.conf.sample,v 1.9 1997/02/23 14:04:22 brian Exp $
#
#################################################################
@@ -107,6 +107,34 @@ pmdemend:
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.
OpenPOWER on IntegriCloud