modem ukonci spojeni

Tomas Lada Lada na bitservis.cz
Čtvrtek Únor 28 12:22:18 CET 2002


Dobry den
rad bych se optal jestli jste se nekdo setkal s podobnym problemem.
Zkousim se pripojit pres ROBOTICS 56K modem, modem vytoci overi se user a
pass
dostanu pridelenou IP adresu a hned na to to cely spadne.
Tady mam vypis z konfiguracnich skriptu:

connect script:
# !/bin/bash
/usr/sbin/pppd /dev/ttyS0 115200 connect "/usr/sbin/chat -v -t 120 -f \
/etc/ppp/chat-isp" crtscts defaultroute modem noauth

chat-isp:
ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIALTONE' '' ATZ OK 'ATDT
0,0971103333' CONNECT '' ername: freequick ssword: freequick ~

vypis z logu:
Feb 28 11:56:20 gateway pppd[1273]: pppd 2.4.1 started by root, uid 0
Feb 28 11:56:20 gateway mc: /dev/gpmctl: No such file or directory
Feb 28 11:56:20 gateway mc: /dev/gpmctl: No such file or directory
Feb 28 11:56:22 gateway chat[1274]: abort on (BUSY)
Feb 28 11:56:22 gateway chat[1274]: abort on (NO CARRIER)
Feb 28 11:56:22 gateway chat[1274]: abort on (NO DIALTONE)
Feb 28 11:56:22 gateway chat[1274]: send (ATZ^M)
Feb 28 11:56:22 gateway chat[1274]: expect (OK)
Feb 28 11:56:22 gateway chat[1274]: ATZ^M^M
Feb 28 11:56:22 gateway chat[1274]: OK
Feb 28 11:56:22 gateway chat[1274]:  -- got it
Feb 28 11:56:22 gateway chat[1274]: send (ATDT 0,0971103333^M)
Feb 28 11:56:22 gateway chat[1274]: expect (CONNECT)
Feb 28 11:56:22 gateway chat[1274]: ^M
Feb 28 11:56:51 gateway chat[1274]: ATDT 0,0971103333^M^M
Feb 28 11:56:51 gateway chat[1274]: CONNECT
Feb 28 11:56:51 gateway chat[1274]:  -- got it
Feb 28 11:56:51 gateway chat[1274]: send (^M)
Feb 28 11:56:51 gateway chat[1274]: expect (ername:)
Feb 28 11:56:51 gateway chat[1274]:  44000/ARQ/V90/LAPM/V42BIS^M
Feb 28 11:56:51 gateway chat[1274]: ^M
Feb 28 11:56:51 gateway chat[1274]: ^M
Feb 28 11:56:51 gateway chat[1274]: User Access Verification^M
Feb 28 11:56:51 gateway chat[1274]: ^M
Feb 28 11:56:51 gateway chat[1274]: Username:
Feb 28 11:56:51 gateway chat[1274]:  -- got it
Feb 28 11:56:51 gateway chat[1274]: send (freequick^M)
Feb 28 11:56:51 gateway chat[1274]: expect (ssword:)
Feb 28 11:56:52 gateway chat[1274]:  freequick^M
Feb 28 11:56:52 gateway chat[1274]: Password:
Feb 28 11:56:52 gateway chat[1274]:  -- got it
Feb 28 11:56:52 gateway chat[1274]: send (freequick^M)
Feb 28 11:56:52 gateway chat[1274]: expect (~)
Feb 28 11:56:52 gateway chat[1274]:  ^M
Feb 28 11:56:52 gateway chat[1274]: Entering PPP mode.^M
Feb 28 11:56:52 gateway chat[1274]: Async interface address is unnumbered
(Ethernet0)^M
Feb 28 11:56:52 gateway chat[1274]: Your IP address is 194.228.150.143. MTU
is 1500 bytes^M
Feb 28 11:56:52 gateway chat[1274]: ^M
Feb 28 11:56:54 gateway chat[1274]: ~
Feb 28 11:56:54 gateway chat[1274]:  -- got it
Feb 28 11:56:54 gateway pppd[1273]: Serial connection established.
Feb 28 11:56:54 gateway pppd[1273]: Using interface ppp0
Feb 28 11:56:54 gateway pppd[1273]: Connect: ppp0 <--> /dev/ttyS0      -->
dojde k navazani spojeni
Feb 28 11:56:59 gateway pppd[1273]: Hangup (SIGHUP)               -> ??
Feb 28 11:56:59 gateway pppd[1273]: Modem hangup             -> a tady to
spadne
Feb 28 11:56:59 gateway pppd[1273]: Connection terminated.
Feb 28 11:57:00 gateway pppd[1273]: Exit.
Feb 28 11:58:01 gateway mc: /dev/gpmctl: No such file or directory
Feb 28 11:59:43 gateway last message repeated 2 times

Nevite kde je chyba?
S pozdravem
                     Tomas Lada






Další informace o konferenci Linux