sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #23915
Re: Problemer med Dial up .... igen igen
Så prøver vi igen
Jeg får ikke forbindelse til mit modem
Fejlen ser sådan her ud:
Jan 9 22:11:28 x-copier kernel: CSLIP: code copyright 1989 Regents of the
University of California
Jan 9 22:11:29 x-copier kernel: PPP: version 2.3.7 (demand dialling)
Jan 9 22:11:29 x-copier kernel: PPP line discipline registered.
Jan 9 22:11:29 x-copier kernel: registered device ppp0
Jan 9 22:11:29 x-copier pppd[923]: pppd 2.3.8 started by root, uid 0
Jan 9 22:11:30 x-copier chat[924]: report (CONNECT)
Jan 9 22:11:30 x-copier chat[924]: report (OK)
Jan 9 22:11:30 x-copier chat[924]: report (BUSY)
Jan 9 22:11:30 x-copier chat[924]: report (NO CARRIER)
Jan 9 22:11:30 x-copier chat[924]: report (NO DIALTONE)
Jan 9 22:11:30 x-copier chat[924]: abort on (NO CARRIER)
Jan 9 22:11:30 x-copier chat[924]: abort on (BUSY)
Jan 9 22:11:30 x-copier chat[924]: abort on (NO DIALTONE)
Jan 9 22:11:30 x-copier chat[924]: abort on (WAITING)
Jan 9 22:11:30 x-copier chat[924]: timeout set to 10 seconds
Jan 9 22:11:30 x-copier chat[924]: send (ATZ0^M)
Jan 9 22:11:30 x-copier pppd[923]: Serial connection established.
Jan 9 22:11:30 x-copier pppd[923]: Using interface ppp0
Jan 9 22:11:30 x-copier pppd[923]: Connect: ppp0 <--> /dev/ttyS1
Jan 9 22:12:01 x-copier pppd[923]: LCP: timeout sending Config-Requests
Jan 9 22:12:01 x-copier pppd[923]: Connection terminated.
Jan 9 22:12:01 x-copier pppd[923]: Receive serial link is not 8-bit clean:
Jan 9 22:12:01 x-copier pppd[923]: Problem: all had bit 7 set to 1
Jan 9 22:12:02 x-copier pppd[923]: Exit.
Jeg kalder PPPD fra et script i /usr/sbin/ sådan her:
#!/bin/sh
# sidste "-d" er for estra debug i logfiler, fjern når det virker
DIALERSCRIPT=/etc/ppp/ppp.chatscript
pppd /dev/ttyS1 115200 connect $DIALERSCRIPT user cfp5712 -d
Mit Chat script ser således ud:
#!/bin/sh
PHONE=103333361333
exec chat -v -r /var/log/ppp-chat.log \
REPORT CONNECT \
REPORT OK \
REPORT BUSY \
REPORT 'NO CARRIER' \
REPORT 'NO DIALTONE' \
ABORT 'NO CARRIER' \
ABORT 'BUSY' \
ABORT 'NO DIALTONE' \
ABORT 'WAITING' \
TIMEOUT 10 \
'' 'ATZ0' \
;'OK' 'ATB40' \
;'OK' 'AT&K44' \
'OK' ATDI$PHONE \
TIMEOUT 50 \
NOMAGIC \
CONNECT
Min options fil indeholder følgende:
#!/bin/sh
# sidste "-d" er for estra debug i logfiler, fjern når det virker
DIALERSCRIPT=/etc/ppp/ppp.chatscript
pppd /dev/ttyS1 115200 connect $DIALERSCRIPT user cfp5712 -d
Hvis flere informationer er nødvendige - så har jeg dem lige ved hånden ....
Johnny
Follow ups
References