sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #45706
PPPmed ISDN til get2net
Opkobling til get2net med ppp og ISDN.
ISDN-box virker fint med M$-ME og RedHat 7.1/KDE på min nr.1 cmputer.
Jeg ville være meget glad for hjælp med at få følgende scripts til at
virke, så jeg kan komme ud på nettet (med min nr.2 computer - en Intel
Pentium 133 Mhz, 32mB).
Jeg forsøger at køre med følgende /etc/ppp/pppon:
#!/bin/sh
#This script is used for log on according to W.G.Unruh
/usr/sbin/pppd /dev/ttyS1 115200 user x-879729 connect "/usr/sbin/chat -f
/etc/ppp/chatscript"
og følgende /etc/ppp/chatscript:
[root@localhost /root]# cat /etc/ppp/chatscript
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
"" AT
'OK-\d\d+++\d\d\c-OK' ATH0
OK 'AT&F\\Q3\\V1&D3M1#CC1'
OK ATD100177307734
CONNECT ""
user: x-879729
assword: "min hemmelighed :-)"
et2net> ppp
[root@localhost /root]#
Kører jeg pppon får jeg følgende (efter tail -f /var/log/ppp):
<snip>
Dec 16 19:19:11 localhost pppd[863]: pppd 2.4.0 started by root, uid 0
Dec 16 19:19:13 localhost pppd[863]: Connect script failed
Dec 16 19:19:14 localhost pppd[863]: Exit.
Kører jeg ppp fra kommandolinien:
[root@localhost ppp]# /usr/sbin/pppd /dev/ttyS1 115200 debug connect
"/usr/sbin/chat -v '' AT OK ATD100177307734 CONNECT '\d\c'"
så er der noget, der virker - med følgende resultat i /var/log/ppp:
/Dec 16 19:31:48 localhost pppd[872]: pppd 2.4.0 started by root, uid 0
Dec 16 19:31:49 localhost chat[873]: send (AT^M)
Dec 16 19:31:49 localhost chat[873]: expect (OK)
Dec 16 19:31:49 localhost chat[873]: AT^M^M
Dec 16 19:31:49 localhost chat[873]: OK
Dec 16 19:31:49 localhost chat[873]: -- got it
Dec 16 19:31:49 localhost chat[873]: send (ATD100177307734^M)
Dec 16 19:31:50 localhost chat[873]: expect (CONNECT)
Dec 16 19:31:50 localhost chat[873]: ^M
Dec 16 19:31:51 localhost chat[873]: ATD100177307734^M^M
Dec 16 19:31:51 localhost chat[873]: CONNECT
Dec 16 19:31:51 localhost chat[873]: -- got it
Dec 16 19:31:52 localhost chat[873]: send (\d)
Dec 16 19:31:53 localhost pppd[872]: Serial connection established.
Dec 16 19:31:54 localhost pppd[872]: using channel 1
Dec 16 19:31:54 localhost pppd[872]: Using interface ppp0
Dec 16 19:31:54 localhost pppd[872]: Connect: ppp0 <--> /dev/ttyS1
Dec 16 19:31:55 localhost pppd[872]: sent [LCP ConfReq id=0x1 <asyncmap
0x0> <ma
gic 0x76e59aeb> <pcomp> <accomp>]
Dec 16 19:31:55 localhost pppd[872]: rcvd [LCP ConfAck id=0x1 <asyncmap
0x0> <ma
gic 0x76e59aeb> <pcomp> <accomp>]
Dec 16 19:31:55 localhost pppd[872]: rcvd [LCP ConfReq id=0xdd <asyncmap
0xa0000
> <auth pap> <magic 0xc2950bb4> <mrru 1524> <endpoint
[local:67.65.74.32.6e.65.7
4]>]
Dec 16 19:31:55 localhost pppd[872]: sent [LCP ConfRej id=0xdd <auth pap>
<mrru
1524>]
Dec 16 19:31:55 localhost pppd[872]: rcvd [LCP ConfReq id=0xde <asyncmap
0xa0000
> <auth pap> <magic 0xc2950bb4> <endpoint [local:67.65.74.32.6e.65.74]>]
Dec 16 19:31:55 localhost pppd[872]: sent [LCP ConfRej id=0xde <auth pap>]
Dec 16 19:31:55 localhost pppd[872]: rcvd [LCP ConfReq id=0xdf <asyncmap
0xa0000
<fjernet en hel del gentagelser>
> <auth pap> <magic 0xc2950bb4> <endpoint [local:67.65.74.32.6e.65.74]>]
Dec 16 19:31:55 localhost pppd[872]: sent [LCP ConfRej id=0xe4 <auth pap>]
Dec 16 19:31:55 localhost pppd[872]: rcvd [LCP ConfReq id=0xe5 <asyncmap
0xa0000
> <auth pap> <magic 0xc2950bb4> <endpoint [local:67.65.74.32.6e.65.74]>]
Dec 16 19:31:55 localhost pppd[872]: sent [LCP ConfRej id=0xe5 <auth pap>]
Dec 16 19:31:55 localhost pppd[872]: rcvd [LCP TermReq id=0xe6]
Dec 16 19:31:55 localhost pppd[872]: sent [LCP TermAck id=0xe6]
Dec 16 19:31:56 localhost pppd[872]: Hangup (SIGHUP)
Dec 16 19:31:56 localhost pppd[872]: Modem hangup
Dec 16 19:31:56 localhost pppd[872]: Connection terminated.
Dec 16 19:31:57 localhost pppd[872]: Exit.
Follow ups