Some of you may recall a few recent discussion threads involving
stubborn pppd problems. I have had such a problem on one of the machines
I administer for several months now. The strangest part of this
particular problem is that the system worked fine for at least 6 weeks
before refusing to work any longer.

I have contacted the ISP, and they insist they have not made any changes
to their configuration, and given my past experience with them, I have
no choice but to believe them.

The machine is running Mandrake 6.1.

Summarized briefly - kppp can connect to the ISP, but when pppd is run
from the command line, the connection mysteriously dies before the
PAP handshake is even complete. I've been hammering away at this problem
for hours now, and I'm at a total loss.

I've inserted two sections of log output, along with the contents of
/etc/ppp/options and the chat script. Have a look at these and tell me
what you think.

Scenario 1: I connect with kppp - there is no /etc/options file. Here
are the contents of /var/log/messages. (This shows two connections)

Nov 21 13:08:30 localhost pppd[1312]: pppd 2.4.0 started by root, uid 0
Nov 21 13:08:30 localhost pppd[1312]: Using interface ppp0
Nov 21 13:08:30 localhost pppd[1312]: Connect: ppp0 <--> /dev/ttyS1
Nov 21 13:08:34 localhost pppd[1312]: local  IP address 208.38.6.10
Nov 21 13:08:34 localhost pppd[1312]: remote IP address 207.34.94.232
Nov 21 13:08:56 localhost pppd[1312]: Terminating on signal 15.
Nov 21 13:08:56 localhost pppd[1312]: Connection terminated.
Nov 21 13:08:56 localhost pppd[1312]: Connect time 0.5 minutes.
Nov 21 13:08:56 localhost pppd[1312]: Sent 331 bytes, received 374
bytes.
Nov 21 13:08:56 localhost pppd[1312]: Exit.
Nov 21 13:11:08 localhost pppd[1338]: pppd 2.4.0 started by root, uid 0
Nov 21 13:11:08 localhost pppd[1338]: Using interface ppp0
Nov 21 13:11:08 localhost pppd[1338]: Connect: ppp0 <--> /dev/ttyS1
Nov 21 13:11:12 localhost pppd[1338]: local  IP address 208.38.6.54
Nov 21 13:11:12 localhost pppd[1338]: remote IP address 207.34.94.232
Nov 21 13:11:27 localhost pppd[1338]: Terminating on signal 15.
Nov 21 13:11:27 localhost pppd[1338]: Connection terminated.
Nov 21 13:11:27 localhost pppd[1338]: Connect time 0.4 minutes.
Nov 21 13:11:27 localhost pppd[1338]: Sent 325 bytes, received 371
bytes.
Nov 21 13:11:27 localhost pppd[1338]: Exit.

Scenario 2: Now I have an options file, and I run /usr/sbin/pppd:

Nov 21 13:12:06 localhost pppd[1361]: pppd 2.4.0 started by root, uid 0
Nov 21 13:12:07 localhost chat[1362]: timeout set to 10 seconds
Nov 21 13:12:07 localhost chat[1362]: abort on (\nBUSY\r)
Nov 21 13:12:07 localhost chat[1362]: abort on (\nNO ANSWER\r)
Nov 21 13:12:07 localhost chat[1362]: send (^MAT^M)
Nov 21 13:12:07 localhost chat[1362]: expect (OK)
Nov 21 13:12:07 localhost chat[1362]: ^MAT^M^M
Nov 21 13:12:07 localhost chat[1362]: OK
Nov 21 13:12:07 localhost chat[1362]:  -- got it
Nov 21 13:12:07 localhost chat[1362]: send (ATH0^M)
Nov 21 13:12:07 localhost chat[1362]: expect (OK)
Nov 21 13:12:07 localhost chat[1362]: ^M
Nov 21 13:12:07 localhost chat[1362]: ATH0^M^M
Nov 21 13:12:07 localhost chat[1362]: OK
Nov 21 13:12:07 localhost chat[1362]:  -- got it
Nov 21 13:12:07 localhost chat[1362]: send (ATZ^M)
Nov 21 13:12:07 localhost chat[1362]: expect (OK)
Nov 21 13:12:07 localhost chat[1362]: ^M
Nov 21 13:12:07 localhost chat[1362]: ATZ^M^M
Nov 21 13:12:07 localhost chat[1362]: OK
Nov 21 13:12:07 localhost chat[1362]:  -- got it
Nov 21 13:12:07 localhost chat[1362]: send (ATM1L1^M)
Nov 21 13:12:07 localhost chat[1362]: timeout set to 40 seconds
Nov 21 13:12:07 localhost chat[1362]: expect (OK)
Nov 21 13:12:07 localhost chat[1362]: ^M
Nov 21 13:12:08 localhost chat[1362]: ATM1L1^M^M
Nov 21 13:12:08 localhost chat[1362]: OK
Nov 21 13:12:08 localhost chat[1362]:  -- got it
Nov 21 13:12:08 localhost chat[1362]: send (ATDT5411811^M)
Nov 21 13:12:08 localhost chat[1362]: expect (CONNECT)
Nov 21 13:12:08 localhost chat[1362]: ^M
Nov 21 13:12:35 localhost chat[1362]: ATDT5411811^M^M
Nov 21 13:12:35 localhost chat[1362]: CONNECT
Nov 21 13:12:35 localhost chat[1362]:  -- got it
Nov 21 13:12:35 localhost chat[1362]: send (^M)
Nov 21 13:12:35 localhost pppd[1361]: Serial connection established.
Nov 21 13:12:35 localhost pppd[1361]: Using interface ppp0
Nov 21 13:12:35 localhost pppd[1361]: Connect: ppp0 <--> /dev/modem
Nov 21 13:12:38 localhost pppd[1361]: Hangup (SIGHUP)
Nov 21 13:12:38 localhost pppd[1361]: Modem hangup
Nov 21 13:12:38 localhost pppd[1361]: Connection terminated.
Nov 21 13:12:39 localhost pppd[1361]: Exit.

Here are the contents of the options file that created the above
connection:

lock
noauth
noipdefault
usepeerdns
kdebug 4
/dev/modem
connect '/usr/sbin/chat -v -f /etc/ppp/peers/nucleus'
ipcp-accept-local
ipcp-accept-remote
debug
crtscts
modem
asyncmap 0
lcp-echo-interval 30
lcp-echo-failure 4
idle 600
noipx

And here is the chat script:

TIMEOUT 10
ABORT  '\nBUSY\r'
ABORT '\nNO ANSWER\r'
''     \rAT
'OK-+++\c-OK'  ATH0
'OK'    ATZ
'OK'    ATM1L1
TIMEOUT 40
OK ATDT5411811
CONNECT        ''

You might note the difference in the device reference. /dev/modem is
symlink to /dev/ttyS1 -- I've tried it with /dev/ttyS1; same result.

Why does pppd give me "serial connection established" but going through
kppp does not? What is going on here?

Thanks,

Stephen



Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to