[ale] ppp null modem problems

Zot O'Connor zot at crl.com
Thu Jan 30 21:23:02 EST 1997


Ihave a wierd problem connecting pppd with a null modem.  I have done this 
before with no problems.  My problems started when I upgraded the laptop from 
Redhat 3.0 to 4.0.  What happens is that when I try to connect from the laptop 
to the server, it fails, complaining about a loop back problem.  On the server 
side I see an 8 bit clean problem.  If I do it enough, it connects and there are 
no problems.

A side note is that Icannot seem to kill the ppp link cleanly.  If I remove the 
laptop, the server holds the link open until i use "kill -9"  Isn't there a 
timer to set for inactivity?


The connect script (the first chat line to to clear the channel:
#!/bin/bash
/usr/sbin/chat -v "" "" "" "" login: ""
/usr/sbin/pppd connect 'chat -v "" ""  login: dialp assword: *****' /dev/cua0 
38400 debug crtscts defaultroute 206.29.195.20:


The host passwd entry:

dialp:***removed***:504:100:Dial PPP:/tmp:/usr/sbin/pppd -detach proxyarp debug 
38400 crtscts

The log file from the laptop:
Jan 30 16:49:59 laptop chat[726]: send (^M)
Jan 30 16:49:59 laptop chat[726]: send (^M)
Jan 30 16:49:59 laptop chat[726]: expect (login:)
Jan 30 16:50:44 laptop chat[726]: alarm
Jan 30 16:50:44 laptop chat[726]: Failed
Jan 30 16:50:44 laptop kernel: CSLIP: code copyright 1989 Regents of the Univers
ity of California
Jan 30 16:50:44 laptop kernel: PPP: version 2.2.0 (dynamic channel allocation)
Jan 30 16:50:44 laptop kernel: PPP Dynamic channel allocation code copyright 199
5 Caldera, Inc.
Jan 30 16:50:44 laptop kernel: PPP line discipline registered.
Jan 30 16:50:44 laptop kernel: registered device ppp0
Jan 30 16:50:44 laptop pppd[733]: pppd 2.2.0 started by root, uid 0
Jan 30 16:50:45 laptop chat[734]: send (^M)
Jan 30 16:50:45 laptop chat[734]: expect (login:)
Jan 30 16:50:45 laptop chat[734]: ^M
Jan 30 16:50:48 laptop chat[734]: ^M^M
Jan 30 16:50:48 laptop chat[734]: Red Hat Linux release 2.1^M
Jan 30 16:50:48 laptop chat[734]: Kernel 1.2.13 on a i486^M
Jan 30 16:50:48 laptop chat[734]: ^M
Jan 30 16:50:48 laptop chat[734]: zotnet.com 38400 16:50:47 DR384 login: -- got
it
Jan 30 16:50:48 laptop chat[734]: send (dialp^M)
Jan 30 16:50:48 laptop chat[734]: expect (assword:)
Jan 30 16:50:48 laptop chat[734]:  dialp^M
Jan 30 16:50:48 laptop chat[734]: Password: -- got it
Jan 30 16:50:48 laptop chat[734]: send (*****^M)
Jan 30 16:50:48 laptop pppd[733]: Serial connection established.
Jan 30 16:50:49 laptop pppd[733]: Using interface ppp0
Jan 30 16:50:49 laptop pppd[733]: Connect: ppp0 <--> /dev/cua0
Jan 30 16:50:49 laptop pppd[733]: Serial line is looped back.
Jan 30 16:50:49 laptop pppd[733]: Connection terminated.
Jan 30 16:50:49 laptop pppd[733]: Exit.
Jan 30 16:52:44 laptop kernel: PPP: ppp line discipline successfully unregistere
d

when it works:
Jan 30 17:44:43 laptop chat[847]: send (^M)
Jan 30 17:44:43 laptop chat[847]: send (^M)
Jan 30 17:44:43 laptop chat[847]: expect (login:)
Jan 30 17:45:28 laptop chat[847]: alarm
Jan 30 17:45:28 laptop chat[847]: Failed
Jan 30 17:45:28 laptop kernel: CSLIP: code copyright 1989 Regents of the Univers
ity of California
Jan 30 17:45:28 laptop kernel: PPP: version 2.2.0 (dynamic channel allocation)
Jan 30 17:45:28 laptop kernel: PPP Dynamic channel allocation code copyright 199
5 Caldera, Inc.
Jan 30 17:45:28 laptop kernel: PPP line discipline registered.
Jan 30 17:45:28 laptop kernel: registered device ppp0
Jan 30 17:45:28 laptop pppd[854]: pppd 2.2.0 started by root, uid 0
Jan 30 17:45:29 laptop chat[855]: send (^M)
Jan 30 17:45:29 laptop chat[855]: expect (login:)
Jan 30 17:45:31 laptop chat[855]: ^M
Jan 30 17:45:33 laptop chat[855]: ^M^M
Jan 30 17:45:33 laptop chat[855]: Red Hat Linux release 2.1^M
Jan 30 17:45:33 laptop chat[855]: Kernel 1.2.13 on a i486^M
Jan 30 17:45:33 laptop chat[855]: ^M
Jan 30 17:45:33 laptop chat[855]: zotnet.com 38400 17:45:57 DR384 login: -- got
it
Jan 30 17:45:33 laptop chat[855]: send (dialp^M)
Jan 30 17:45:33 laptop chat[855]: expect (assword:)
Jan 30 17:45:33 laptop chat[855]:  dialp^M
Jan 30 17:45:34 laptop chat[855]: Password: -- got it
Jan 30 17:45:34 laptop chat[855]: send (*****^M)
Jan 30 17:45:34 laptop pppd[854]: Serial connection established.
Jan 30 17:45:35 laptop pppd[854]: Using interface ppp0
Jan 30 17:45:35 laptop pppd[854]: Connect: ppp0 <--> /dev/cua0
Jan 30 17:45:38 laptop pppd[854]: local  IP address 206.29.195.20
Jan 30 17:45:38 laptop pppd[854]: remote IP address 206.29.195.17

from the server:

Jan 30 16:50:51 zotnet pppd[12851]: pppd 2.2.0 started by dialp, uid 504
Jan 30 16:50:51 zotnet pppd[12851]: Using interface ppp1
Jan 30 16:50:51 zotnet pppd[12851]: Connect: ppp1 <--> /dev/ttyS0
Jan 30 16:50:51 zotnet pppd[12851]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0
xaf7e8d98> <pcomp> <accomp>]
Jan 30 16:51:22 zotnet pppd[12851]: LCP: timeout sending Config-Requests
Jan 30 16:51:22 zotnet pppd[12851]: Connection terminated.
Jan 30 16:51:22 zotnet pppd[12851]: Receive serial link is not 8-bit clean:
Jan 30 16:51:22 zotnet pppd[12851]: Problem: nothing was received
Jan 30 17:45:52 zotnet pppd[12851]: Exit.

when it works:
Jan 30 17:46:00 zotnet pppd[13284]: pppd 2.2.0 started by dialp, uid 504
Jan 30 17:46:00 zotnet pppd[13284]: Using interface ppp1
Jan 30 17:46:00 zotnet pppd[13284]: Connect: ppp1 <--> /dev/ttyS0
Jan 30 17:46:00 zotnet pppd[13284]: sent [LCP ConfReq id=0x1 <mru 1500> <magic 0
x2a345dd3> <pcomp> <accomp>]
Jan 30 17:46:00 zotnet pppd[13284]: rcvd [LCP ConfAck id=0x1 <mru 1500> <magic 0
x2a345dd3> <pcomp> <accomp>]
Jan 30 17:46:01 zotnet pppd[13284]: rcvd [LCP ConfReq id=0x2 <mru 1500> <magic 0
x1c56e75c> <pcomp> <accomp>]
Jan 30 17:46:01 zotnet pppd[13284]: sent [LCP ConfAck id=0x2 <mru 1500> <magic 0
x1c56e75c> <pcomp> <accomp>]
Jan 30 17:46:01 zotnet pppd[13284]: sent [IPCP ConfReq id=0x1 <addr 206.29.195.1
7> <compress VJ 0f 01>]
Jan 30 17:46:01 zotnet pppd[13284]: rcvd [IPCP ConfReq id=0x1 <addr 206.29.195.2
0> <compress VJ 0f 01>]
Jan 30 17:46:01 zotnet pppd[13284]: sent [IPCP ConfAck id=0x1 <addr 206.29.195.2
0> <compress VJ 0f 01>]
Jan 30 17:46:01 zotnet pppd[13284]: rcvd [IPCP ConfAck id=0x1 <addr 206.29.195.1
7> <compress VJ 0f 01>]
Jan 30 17:46:01 zotnet pppd[13284]: local  IP address 206.29.195.17
Jan 30 17:46:01 zotnet pppd[13284]: remote IP address 206.29.195.20
Jan 30 17:46:01 zotnet pppd[13284]: found interface eth0 for proxy arp


-- 
Zot O'Connor                     zot at crl.com
Home Page:                       http://www.crl.com/~zot/
Improv Page:                     http://www.crl.com/~zot/improv.html
World Wide Web Calendar:         http://www.wwwcal.com






More information about the Ale mailing list