Dialup' ное соединение. Имею некоторый гимор.
Увертюра:
Имею сервер с ядром 2.2.11 и выход в инет по модему.
Гимор:
Dialup'ное соединение запинал года полтора назад, все работало вроде нормально но теперь модем начал зависать. Конфиги не менялись.
ppp-on-dialer запустил с ключом -v. В логах пишется следующее:
-------------------------------------------------------------------
При нормальном удачном соединении ->
Oct 22 19:30:24 sk2 diald[8652]: Running connect (pid = 8766).
Oct 22 19:30:24 sk2 chat[8766]: timeout set to 10 seconds
Oct 22 19:30:24 sk2 chat[8766]: abort on (\nBUSY\r)
Oct 22 19:30:24 sk2 chat[8766]: abort on (\nNO ANSWER\r)
Oct 22 19:30:24 sk2 chat[8766]: abort on (\nNO CARRIER\r)
Oct 22 19:30:24 sk2 chat[8766]: abort on (\nRINGING\r\n\r\nRINGING\r)
Oct 22 19:30:24 sk2 chat[8766]: send (^MAT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M^M)
Oct 22 19:30:25 sk2 chat[8766]: expect (OK)
Oct 22 19:30:25 sk2 chat[8766]: ^MAT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M^M^M
Oct 22 19:30:25 sk2 chat[8766]: OK
Oct 22 19:30:25 sk2 chat[8766]: -- got it
Oct 22 19:30:25 sk2 chat[8766]: send (^MATH0^M)
Oct 22 19:30:25 sk2 chat[8766]: expect (OK)
Oct 22 19:30:25 sk2 chat[8766]: ^M
Oct 22 19:30:25 sk2 chat[8766]: ^MATH0^M^M
Oct 22 19:30:25 sk2 chat[8766]: OK
Oct 22 19:30:25 sk2 chat[8766]: -- got it
Oct 22 19:30:25 sk2 chat[8766]: send (ATDP331696^M)
Oct 22 19:30:25 sk2 chat[8766]: timeout set to 90 seconds
Oct 22 19:30:25 sk2 chat[8766]: expect (CONNECT)
Oct 22 19:30:25 sk2 chat[8766]: ^M
Oct 22 19:31:00 sk2 chat[8766]: ATDP331696^M^M
Oct 22 19:31:01 sk2 chat[8766]: CONNECT
Oct 22 19:31:01 sk2 chat[8766]: -- got it
Oct 22 19:31:01 sk2 chat[8766]: send (^M)
Oct 22 19:31:01 sk2 chat[8766]: expect (ogin:)
Oct 22 19:31:01 sk2 chat[8766]: 21600/ARQ^M
Oct 22 19:31:01 sk2 chat[8766]: ^M
Oct 22 19:31:01 sk2 chat[8766]: Welcome to terminal server tserv.itfs.nsk.su port S8^M
Oct 22 19:31:01 sk2 chat[8766]: ^M
Oct 22 19:31:01 sk2 chat[8766]: Infoteka login:
Oct 22 19:31:01 sk2 chat[8766]: -- got it
Oct 22 19:31:01 sk2 chat[8766]: send (sklt2^M)
Oct 22 19:31:01 sk2 chat[8766]: expect (assword:)
Oct 22 19:31:01 sk2 chat[8766]: sklt2^M^M
Oct 22 19:31:01 sk2 chat[8766]: Password:
Oct 22 19:31:01 sk2 chat[8766]: -- got it
Oct 22 19:31:01 sk2 chat[8766]: send (Passwd^M)
Oct 22 19:31:01 sk2 diald[8652]: Running pppd (pid = 8767).
Oct 22 19:31:01 sk2 pppd[8767]: pppd 2.3.5 started by root, uid 0
Oct 22 19:31:01 sk2 pppd[8767]: Using interface ppp0
Oct 22 19:31:01 sk2 pppd[8767]: Connect: ppp0 <--> /dev/ttyS1
Oct 22 19:31:07 sk2 pppd[8767]: local IP address 212.20.31.100
Oct 22 19:31:07 sk2 pppd[8767]: remote IP address 212.20.31.126
Oct 22 19:31:08 sk2 diald[8652]: New addresses: local 212.20.31.100, remote 212.20.31.126.
---------------------------------------------------------------------
А это летит в лог при неудачном соединении ->
Oct 22 20:42:15 sk2 diald[8652]: Running connect (pid = 9149).
Oct 22 20:42:15 sk2 chat[9149]: timeout set to 10 seconds
Oct 22 20:42:15 sk2 chat[9149]: abort on (\nBUSY\r)
Oct 22 20:42:15 sk2 chat[9149]: abort on (\nNO ANSWER\r)
Oct 22 20:42:15 sk2 chat[9149]: abort on (\nNO CARRIER\r)
Oct 22 20:42:15 sk2 chat[9149]: abort on (\nRINGING\r\n\r\nRINGING\r)
Oct 22 20:42:15 sk2 chat[9149]: send (^MAT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M^M)
Oct 22 20:42:15 sk2 chat[9149]: expect (OK)
Oct 22 20:42:15 sk2 chat[9149]: ^MAT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M^M^M
Oct 22 20:42:15 sk2 chat[9149]: OK
Oct 22 20:42:15 sk2 chat[9149]: -- got it
Oct 22 20:42:15 sk2 chat[9149]: send (^MATH0^M)
Oct 22 20:42:16 sk2 chat[9149]: expect (OK)
Oct 22 20:42:16 sk2 chat[9149]: ^M
Oct 22 20:42:16 sk2 chat[9149]: ^MATH0^M^M
Oct 22 20:42:16 sk2 chat[9149]: OK
Oct 22 20:42:16 sk2 chat[9149]: -- got it
Oct 22 20:42:16 sk2 chat[9149]: send (ATDP331696^M)
Oct 22 20:42:16 sk2 chat[9149]: timeout set to 90 seconds
Oct 22 20:42:16 sk2 chat[9149]: expect (CONNECT)
Oct 22 20:42:16 sk2 chat[9149]: ^M
Oct 22 20:42:51 sk2 chat[9149]: ATDP331696^M^M
Oct 22 20:42:51 sk2 chat[9149]: CONNECT
Oct 22 20:42:51 sk2 chat[9149]: -- got it
Oct 22 20:42:51 sk2 chat[9149]: send (^M)
Oct 22 20:42:51 sk2 chat[9149]: expect (ogin:)
Oct 22 20:42:51 sk2 chat[9149]: 19200/ARQ^M
Oct 22 20:42:52 sk2 chat[9149]: f^@^X^@^@^@^@^@^X^^`^^^^~^^f^^^^ff^^f^^^F^^x^^^^`^^^Xx^F^^^Fx^F^F^^^F^F^Fx^^ff^F ^F`f^^^X^X^@^X^@f^@^X^@^F^Xx^^^^~^^^^^^^^^^f^^^^^F^^x^^^X^@
Oct 22 20:44:21 sk2 chat[9149]: alarm
Oct 22 20:44:21 sk2 chat[9149]: send (^M)
Oct 22 20:44:21 sk2 chat[9149]: expect (ogin:)
Oct 22 20:45:14 sk2 diald[8652]: Connect script timed out. Killing script.
Oct 22 20:45:14 sk2 chat[9149]: SIGINT
Oct 22 20:45:14 sk2 diald[8652]: SIGHUP: modem got hung up on.
Oct 22 20:45:14 sk2 diald[8652]: Delaying 10 seconds before clear to dial.
----------------------------------------------------------------------
ВОПРОС К ЗНАТОКАМ:
Что нужно прикрутить чтобы модем без зависаний дозванивался до провайдера. А то чота я растерялся немного.