1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Add examples for a direct serial connection using lqr

Candidate for 2.2.
This commit is contained in:
Brian Somers 1997-03-13 21:24:18 +00:00
parent 6e4959f072
commit 2b672ee9f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23864

View File

@ -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.