Ok, I've been here before and after about 2 weeks and a thousand attempts,
I still can't connect.

I connect, less than 30 seconds later, I disconnect.
It IS PAP, my ISP does NOT send a login/password string, it does work under
windoze (a 200mb O.S. just to make sure I can connect :-)

I have read EVERY howto/faq I can find.  The answer is not there.
I'd like to expand my use of Linux, but if I can't connect, it's too
cumbersome to continue to reboot betwee operating systems.  HELP!!!!!!!
Here's the setup:

#!/bin/sh
TELEPHONE=1112223333
ACCOUNT=account
PASSWORD=password
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0
PORT=/dev/ttyS1         # Modem Port
SERIAL=spd_vhi
DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer

export TELEPHONE ACCOUNT PASSWORD DIALER_SCRIPT PORT SERIAL 
/bin/setserial -v $PORT $SERIAL
exec /usr/sbin/pppd debug modem crtscts $PORT 115200 \
        kdebug 1 noipdefault noauth netmask $NETMASK \
        asyncmap 000A0000 escape FF defaultroute connect $DIALER_SCRIPT
----------------------
All self explanatory...

Dialing with chat:

exec /usr/sbin/chat -v                                  \
        TIMEOUT         60                              \
        ECHO ON                                         \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ABORT           '\nNO CARRIER\r\n'              \
        ''              '\AT\r'                         \
        OK              'ATE0V1&D2&C1S0=0'              \
        OK              ATDT$TELEPHONE                  \
        'CONNECT 115200'                '\c'            \
        TIMEOUT         60
----------------------
pap-secrets

# client        server  secret                  IP addresses
accountname             *       password
----------------------

A little debug:

Oct 13 15:39:50 localhost pppd[1479]: pppd 2.3.3 started by root, uid 0
Oct 13 19:39:51 localhost chat[1480]: timeout set to 60 seconds
Oct 13 19:39:51 localhost chat[1480]: abort on (\nBUSY\r)
Oct 13 19:39:51 localhost chat[1480]: abort on (\nNO ANSWER\r)
Oct 13 19:39:51 localhost chat[1480]: abort on (\nRINGING\r\n\r\nRINGING\r)
Oct 13 19:39:51 localhost chat[1480]: abort on (\nNO CARRIER\r\n)
Oct 13 19:39:51 localhost chat[1480]: send (\AT^M^M)
Oct 13 19:39:51 localhost chat[1480]: expect (OK)
Oct 13 19:39:51 localhost chat[1480]: IER^M
Oct 13 19:39:51 localhost chat[1480]: ^M
Oct 13 19:39:51 localhost chat[1480]: OK
Oct 13 19:39:51 localhost chat[1480]:  -- got it 
Oct 13 19:39:51 localhost chat[1480]: send (ATE0V1&D2&C1S0=0^M)
Oct 13 19:39:51 localhost chat[1480]: expect (OK)
Oct 13 19:39:51 localhost chat[1480]: ^M
Oct 13 19:39:51 localhost chat[1480]: ^M
Oct 13 19:39:51 localhost chat[1480]: OK
Oct 13 19:39:51 localhost chat[1480]:  -- got it 
Oct 13 19:39:51 localhost chat[1480]: send (ATDT4104511230^M)
Oct 13 19:39:52 localhost chat[1480]: expect (CONNECT 115200)
Oct 13 19:39:52 localhost chat[1480]: ^M
Oct 13 19:39:53 localhost chat[1480]: ^M
Oct 13 19:39:53 localhost chat[1480]: CONNECT 115200
Oct 13 15:39:53 localhost pppd[1479]: Serial connection established.
Oct 13 19:39:53 localhost chat[1480]:  -- got it 
Oct 13 19:39:53 localhost chat[1480]: send ()
Oct 13 19:39:53 localhost chat[1480]: timeout set to 60 seconds
Oct 13 15:39:54 localhost pppd[1479]: Using interface ppp0
Oct 13 15:39:54 localhost pppd[1479]: Connect: ppp0 <--> /dev/ttyS1
Oct 13 15:39:54 localhost pppd[1479]: sent [LCP ConfReq id=0x1 <asyncmap
0xa0000> <magic 0x77ef> <pcomp> <accomp>]
Oct 13 15:39:59 localhost pppd[1479]: sent [LCP ConfReq id=0x1 <asyncmap
0xa0000> <magic 0x77ef> <pcomp> <accomp>]
Oct 13 15:39:59 localhost kernel: ppp_dev_xmit_lower: fcs is afd7
Oct 13 15:39:59 localhost kernel: ppp_dev_xmit: writing 48 chars
Oct 13 15:39:59 localhost kernel: ppp_tty_read: called buf=08069770 nr=1504
Oct 13 15:39:59 localhost kernel: ppp_tty_read: no data (EAGAIN)
Oct 13 15:40:04 localhost pppd[1479]: sent [LCP ConfReq id=0x1 <asyncmap
0xa0000> <magic 0x77ef> <pcomp> <accomp>]
above was sent 8 times
Oct 13 15:40:20 localhost kernel: ppp: channel ppp0 closing.
Oct 13 15:40:20 localhost pppd[1479]: Hangup (SIGHUP)
Oct 13 15:40:20 localhost pppd[1479]: Modem hangup
Oct 13 15:40:20 localhost pppd[1479]: Connection terminated.
Oct 13 15:40:21 localhost pppd[1479]: Exit.


Thanks,

Gene

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to