From 8989c275d4ca77a70efc6a4875b0e0608dba54dc Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 13 Mar 1997 21:24:18 +0000 Subject: Add examples for a direct serial connection using lqr Candidate for 2.2. --- etc/ppp/ppp.conf.sample | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'etc/ppp') 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. -- cgit v1.1