Hello,
I'm trying to set up a pppd connection from my linux-pc to an office computer
running under Windows NT. I'm using SuSE Linux 6.3 (kernel 2.2.13). As a
guideline for setting up pppd (version 2.3.11) I've used the howto at
http://www.suse.de/de/linux/docu/ppp_nt/PPP_NT_HOWTO.html
which is written in german:-)
But I will present all necessary information here (I hope).
For starting the ppp-connection, I've written the following script:
---------------------------------------------------------------------
#!/bin/bash
# Aufbau einer PPP Verbindung
# zu einem Windows NT Server unter Verwendung des CALLBACK-Modus
phone="callback <my-number>"
# This works:
/usr/sbin/pppd call my-office connect '/usr/sbin/chat -v -f /root/bin/win_nt.chat'
lock $phone -detach
# If the callback fails, exit (sometimes the phone line is busy):
ret=$?
if [ $ret -ne 14 ]
then
echo "Exiting (pppd exited with "$ret") ..."
exit 1
fi
# This fails always, but I don't know why:
/usr/sbin/pppd call my-office connect '/usr/sbin/chat -v -f /root/bin/win_nt_cb.chat'
lock -detach defaultroute
---------------------------------------------------------------------
The file /etc/ppp/peers/my-office contains the following options:
---------------------------------------------------------------------
/dev/modem
115200
crtscts
<ip-address-of-office-net>:<ip-of-office-pc>
defaultroute
debug
modem
name Administrator
remotename office-pc
---------------------------------------------------------------------
The problem is, that the second call to pppd fails with the message
pppd[516]: LCP: timeout sending Config-Requests
In other words, I can connect to the office-pc with the callback option.
The office-pc calls me back and the chat script "win_nt_cb.chat" works as
expected. It simply waits for a RING, sends ATA, and waits for the CONNECT
message. Therefore, I think that my setup should be correct, or?
This error can be found in the following logfile:
---------------------------------------------------------------------
Apr 16 22:06:09 melmac pppd[516]: pppd 2.3.11 started by root, uid 0
Apr 16 22:06:09 melmac pppd[516]: Perms of /dev/modem are ok, no 'mesg n' neccesary.
Apr 16 22:06:10 melmac chat[517]: timeout set to 60 seconds
Apr 16 22:06:10 melmac chat[517]: abort on (NO CARRIER)
Apr 16 22:06:10 melmac chat[517]: abort on (BUSY)
Apr 16 22:06:10 melmac chat[517]: abort on (NO DIALTONE)
Apr 16 22:06:10 melmac chat[517]: abort on (ERROR)
Apr 16 22:06:10 melmac chat[517]: abort on (DELAYED)
Apr 16 22:06:10 melmac chat[517]: send (+++ATZ0^M)
Apr 16 22:06:10 melmac chat[517]: expect (OK)
Apr 16 22:06:10 melmac chat[517]: ATZ0^M^M
Apr 16 22:06:10 melmac chat[517]: OK
Apr 16 22:06:10 melmac chat[517]: -- got it
Apr 16 22:06:10 melmac chat[517]: send (ATS0=0^M)
Apr 16 22:06:10 melmac chat[517]: expect (RING)
Apr 16 22:06:10 melmac chat[517]: ^M
Apr 16 22:06:10 melmac chat[517]: ATS0=0^M^M
Apr 16 22:06:10 melmac chat[517]: OK^M
Apr 16 22:06:21 melmac chat[517]: ^M
Apr 16 22:06:21 melmac chat[517]: RING
Apr 16 22:06:21 melmac chat[517]: -- got it
Apr 16 22:06:21 melmac chat[517]: send (ATA^M)
Apr 16 22:06:21 melmac chat[517]: expect (CONNECT)
Apr 16 22:06:21 melmac chat[517]: ^M
Apr 16 22:06:36 melmac chat[517]: ATA^M^M
Apr 16 22:06:36 melmac chat[517]: CONNECT
Apr 16 22:06:36 melmac chat[517]: -- got it
Apr 16 22:06:36 melmac chat[517]: send (^M)
Apr 16 22:06:36 melmac pppd[516]: Serial connection established.
Apr 16 22:06:36 melmac pppd[516]: Using interface ppp0
Apr 16 22:06:36 melmac pppd[516]: Connect: ppp0 <--> /dev/modem
Apr 16 22:06:38 melmac pppd[516]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0x901a56aa> <pcomp> <accomp>]
Apr 16 22:07:05 melmac last message repeated 9 times
Apr 16 22:07:08 melmac pppd[516]: LCP: timeout sending Config-Requests
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 16 22:07:08 melmac pppd[516]: Connection terminated.
Apr 16 22:07:09 melmac pppd[516]: Exit.
---------------------------------------------------------------------
Ok, I've read the pppd-FAQ, found the last question and changed the
connect option to
init "/usr/sbin/chat '' ATZ OK ATS0=1 OK".
But the result was the same as with my script.
My next test was to include the options "silent record /tmp/pppdump.log" to
the second call to pppd.
The output of pppdump -p /tmp/pppdump.log is:
---------------------------------------------------------------------
start Sun Apr 16 22:28:33 2000
time 1.1s
time 0.2s
time 0.1s
time 0.1s
time 11.0s
time 15.5s
time 0.2s
rcvd 41 54 5a 0d 0d 0a 4f 4b 0d 0a 41 54 53 30 3d 31 ATZ...OK..ATS0=1
0d 0d 0a 4f 4b 0d 0a 0d 0a 52 49 4e 47 0d 0a 0d ...OK....RING...
0a 43 4f 4e 4e 45 43 54 20 33 33 36 30 30 2f 4c .CONNECT 33600/L
41 50 4d 2f 56 34 32 42 49 53 APM/V42BIS
BAD FCS: (residue = c624)
rcvd ff 03 c0 21 01 00 00 19 02 06 00 00 00 00 03 05 ...!............
c2 23 80 05 06 00 00 2d e0 07 02 08 02 .#.....-.....
time 2.0s
rcvd ff 03 c0 21 01 00 00 19 02 06 00 00 00 00 03 05 ...!............
c2 23 80 05 06 00 00 2d e0 07 02 08 02 .#.....-.....
time 3.0s
rcvd ff 03 c0 21 01 00 00 19 02 06 00 00 00 00 03 05 ...!............
c2 23 80 05 06 00 00 2d e0 07 02 08 02 .#.....-.....
#### some lines deleted ####
time 4.0s
rcvd ff 03 c0 21 01 00 00 19 02 06 00 00 00 00 03 05 ...!............
c2 23 80 05 06 00 00 2d e0 07 02 08 02 .#.....-.....
time 4.6s
end recv
---------------------------------------------------------------------
As you can see, there are ppp-packets coming from the office-pc. But
my pppd does not recognize them!
My question is: what's wrong? Or: what can I do to get more informations
about my problem?
Please reply to my E-Mail adress, as I'm not listening to the linux-ppp
mailing list!
Thanks in advance
Torsten
E-Mail: [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]