【求助】debian下用wvdial拨号,通过手机上网,每2分钟就掉线(已解决)
debian下用wvdial拨号,通过手机上网,每2分钟就掉线/var/log/messages中的信息:
pppd 2.4.4 started by root, uid 0
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
appear to have received our own echo-reply!
Remote message: PAP access OK
PAP authentication succeeded
replacing old default route to eth1
localIP address 10.239.165.140
remote IP address 10.239.165.0
primary DNS address 211.138.200.69
secondary DNS address 211.103.13.101
appear to have received our own echo-reply!
appear to have received our own echo-reply!
appear to have received our own echo-reply!
No response to 4 echo-requests
Serial link appears to be disconnected.
Connect time 1.8 minutes.
Sent 9178 bytes, received 30508 bytes.
Connection terminated.
Exit.
这一句:No response to 4 echo-requests,但不知道是在ping哪里啊?
查pppd的出错代码:The link was terminated because the peer isnotrespondingto echo requests.
同上面的出错信息一致,但不知道是哪里没反应啊?
[ Edited byls400 on 2008-8-18 14:18 ] 我连ubuntu下的拨号都没搞定,绑定了 在ubuntu下刚用蓝牙gprs的时候也这样2分钟断线,解决方法我忘记了好像是哪个配置文件里面因为找不到dns回执所以强制断线。bs一下linux的不易用性。 Posted by HOOP on 2008-8-17 19:25 http://www.ibmnb.com/images/common/back.gif
鍦╱buntu涓嬪垰鐢ㄨ摑鐗檊prs鐨勬椂鍊欎篃杩欐牱2鍒嗛挓鏂?嚎锛岃В鍐虫柟娉曟垜蹇樿?浜嗗ソ鍍忔槸鍝?釜閰嶇疆鏂囦欢閲岄潰鍥犱负鎵句笉鍒癲ns鍥炴墽鎵 鍛靛懙锛屽張涔辩爜鍟︺ 本人原来没有装宽带对时候用ubuntu8.04拨号很是正常......速度超爽........ Posted by ls400 on 2008-8-17 20:05 http://www.thinkpad.cn/forum/images/common/back.gif
鍛靛懙锛屽張涔辩爜鍟︺?�
大哥,你还是用拼音吧........那样不会乱码........ read /etc/ppp/options and modify two items and ok. 楼上 的ubuntu怎么弄 用cmwap的乱码推荐用网页浏览加速器cmwap版 呵呵,从网上到处搜wvdial加上把/etc/ppp/option读了一遍,问题终于解决了。
0、以下操作均在root用户下,我用的手机是treo680,装好软件usbmodem,在手机上运行usbmodem
1、安装wvdial,我用的是debian,apt-get install wvdial ppp
2、运行wvdial,会生成/etc/wvdial.conf,按你的实际情况修改一下,网上都有,现付上我用的。
Init1 = at+cgdcont=1,"ip","cmwap"
stupid Mode = yes
Modem Type = USB Modem
ISDN = 0
Phone = *99***1#
Modem = /dev/ttyACM0
Username = any
Carrier Check = no
Password = any
Baud = 460800
New PPPD = yes
3、运行wvdial,已经能拨号上网了,但现在有一个问题,就是每2分钟就掉线,解决的方法是
4、读/etc/ppp/options其中有两行:
# If this option is given, pppd will send an LCP echo-request frame to the
# peer every n seconds. Normally the peer should respond to the echo-request
# by sending an echo-reply. This option can be used with the
# lcp-echo-failure option to detect that the peer is no longer connected.
lcp-echo-interval 30
# If this option is given, pppd will presume the peer to be dead if n
# LCP echo-requests are sent without receiving a valid LCP echo-reply.
# If this happens, pppd will terminate the connection.Use of this
# option requires a non-zero value for the lcp-echo-interval parameter.
# This option can be used to enable pppd to terminate after the physical
# connection has been broken (e.g., the modem has hung up) in
# situations where no hardware modem control lines are available.
lcp-echo-failure 4
明白为什么是2分钟就掉线了吧,把那两项注释掉,再拨号上网就没问题了。
5、上网与ie一样,要加代理10.0.0.172:80,debian的apt-get 更新,也要加代理,
在/etc/apt/下添加文件apt.conf,内容:
Acquire::http::Proxy "http://10.0.0.172:80";
不要忘了最后的分号。
[ Edited byls400 on 2008-8-18 14:37 ] 呵呵,能加分吗?
页:
[1]