[luau] PPP connection

Patrick Kennedy patrickjkennedy at hotmail.com
Sat Mar 23 17:18:59 PST 2002


A lot of people connect to the Internet using xWindow configurations 
nowadays.  But I'd like to connect using the pppd scripts, since that's more 
server oriented.  However, when I try, I get the offering error:

Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x20a0000> <magic 0xffbcb5e8> 
<pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0


-----

Does any one know what this means?  Here's my ppp-on, ppp-on-dialer, and 
options script files below.  Until I get this working, I prefer wintel to 
login, since doing minicom/manual workarounds is a pain.  If I could use 
ppp-on to login easily, then I could start doing some cool stuff.  Any ideas 
what the problem may be?

Patrick.

-----

#!/bin/sh
#
# /etc/ppp/scripts/ppp-on
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=999-9999	# The telephone number for the connection
ACCOUNT=username	# The account name
PASSWORD=*******	# The password for this account
LOCAL_IP=0.0.0.0	# Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0	# Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.255	# The proper netmask if needed

-----

# /etc/ppp/scripts/ppp-on-dialer
# Export them so that they will be available at 'ppp-on-dialer' time.
# export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
echo init pppd
exec /usr/sbin/pppd debug lock modem crtscts /dev/modem 38400 \
	asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
	noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT

------

# /etc/ppp/options (NO PAP/CHAP)
#
# Prevent pppd from forking into the background
-detach
#
# use the modem control lines
modem
# use uucp style locks to ensure exclusive access to the serial device
lock
# use hardware flow control
crtscts
# create a default route for this connection in the routing table
defaultroute
# do NOT set up any "escaped" control sequences
asyncmap 0
# use a maximum transmission packet size of 552 bytes
mtu 552
# use a maximum receive packet size of 552 bytes
mru 552
#
#-----END OF SAMPLE /etc/ppp/options (no PAP/CHAP)




/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Kennedy


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the LUAU mailing list