[Comm] настройка ppp+chat для dial-up
Denis V. Rybakov
=?iso-8859-1?q?dendery_=CE=C1_inbox=2Eru?=
Вс Мар 13 21:14:30 MSK 2005
Denis V. Rybakov wrote:
> Alt Master 2.4
>
> В поставке есть какая-нибудь утилитка, которой можно быстро
> сконфигурировать dial-up соединение, чтобы потом можно было им управлять
> через ifup/ifdown?
>
В общем по частям кое-что работает, но есть проблемы.
Что сделал:
1. Могу дозвониться через pppd
================================================================================
[root на seagull /]# pppd debug file /etc/ppp/peers/beeline
ATZ
OK
AT+CGDCONT=1,"IP","internet.beeline.ru"
OK
ATDT*99***1#
CONNECT
Serial connection established.
using channel 20
Using interface ppp0
Connect: ppp0 <--> /dev/input/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <magic 0x9d6323a9> <pcomp>
<accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x20a0000> <magic 0x9d6323a9> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <auth pap> <magic
0x69cea57> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x20a0000> <auth pap> <magic
0x69cea57> <pcomp> <accomp>]
sent [PAP AuthReq id=0x1 user="beeline" password=<hidden>]
rcvd [PAP AuthAck id=0x1]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3
0.0.0.0>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3
0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 172.19.0.195> <ms-dns1 217.118.66.243>
<ms-dns3 217.23.64.2>]
sent [IPCP ConfReq id=0x2 <addr 172.19.0.195> <ms-dns1 217.118.66.243>
<ms-dns3 217.23.64.2>]
rcvd [IPCP ConfAck id=0x2 <addr 172.19.0.195> <ms-dns1 217.118.66.243>
<ms-dns3 217.23.64.2>]
rcvd [IPCP ConfReq id=0x2 <addr 192.168.100.101>]
sent [IPCP ConfAck id=0x2 <addr 192.168.100.101>]
local IP address 172.19.0.195
remote IP address 192.168.100.101
primary DNS address 217.118.66.243
secondary DNS address 217.23.64.2
Script /etc/ppp/ip-up started (pid 8105)
Script /etc/ppp/ip-up finished (pid 8105), status = 0x0
================================================================================
2. Могу дозвониться через wvdial
================================================================================
[root на seagull /]# wvdial beeline
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATM0
ATM0
OK
--> Sending: AT+CGDCONT=1,"IP","internet.beeline.ru"
AT+CGDCONT=1,"IP","internet.beeline.ru"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Mar 13 20:57:25 2005
--> pid of pppd: 8166
--> Using interface ppp0
--> pppd: Connect: ppp0 <--> /dev/input/ttyACM0
--> pppd: PAP authentication succeeded
--> local IP address 172.19.2.214
--> remote IP address 192.168.100.101
--> primary DNS address 217.118.66.243
--> secondary DNS address 217.23.64.2
================================================================================
Но через ifup не работает со следующими симптомами
[root на seagull /]# /etc/sysconfig/network-scripts/ifup-ppp beeline
и висим, а в это время по ps -aux видно
root 8292 0.2 0.0 1336 296 pts/4 S 21:01 0:00
/sbin/ppp-watch beeline
root 8300 0.0 0.0 1468 440 ? S 21:01 0:00
/sbin/ppp-watch beeline
root 8302 0.7 0.1 2044 876 ? S 21:01 0:00
/usr/sbin/pppd lock modem crtscts asyncmap 00000000 defaultroute usepeerdns
root 8311 0.0 0.0 0 0 ? Z 21:01 0:00 [ifup-ppp
<defunct>]
причем случайно было замечено, что у wvdial с параметром --chat проблемы
[root на seagull /]# wvdial --chat beeline
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
Файлы конфигурации прикладываю. Возможно что-то где-то намудрил.
----------- следующая часть -----------
An embedded and charset-unspecified text was scrubbed...
Name: beeline
URL: <http://lists.altlinux.org/pipermail/community/attachments/20050313/f4d6f578/attachment-0008.ksh>
----------- следующая часть -----------
An embedded and charset-unspecified text was scrubbed...
Name: chat-beeline
URL: <http://lists.altlinux.org/pipermail/community/attachments/20050313/f4d6f578/attachment-0009.ksh>
----------- следующая часть -----------
An embedded and charset-unspecified text was scrubbed...
Name: ifcfg-beeline
URL: <http://lists.altlinux.org/pipermail/community/attachments/20050313/f4d6f578/attachment-0010.ksh>
----------- следующая часть -----------
An embedded and charset-unspecified text was scrubbed...
Name: wvdial.conf
URL: <http://lists.altlinux.org/pipermail/community/attachments/20050313/f4d6f578/attachment-0011.ksh>
Подробная информация о списке рассылки community