找回密码
 注册
快捷导航
查看: 3876|回复: 11

【求助】debian下用wvdial拨号,通过手机上网,每2分钟就掉线(已解决)

[复制链接] |自动提醒
阅读字号:

1722

回帖

29

积分

3451

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2005-9-2
铜牌荣誉勋章(注册8年以上会员)
发表于 2008-8-17 17:57:54| 字数 807| - 中国–江苏–南京 电信 | 显示全部楼层 |阅读模式
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 [172.16.9.1]
local  IP 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 is  not  responding  to echo requests.
同上面的出错信息一致,但不知道是哪里没反应啊?

[ Edited by  ls400 on 2008-8-18 14:18 ]
T43

2万

回帖

162

积分

2万

资产值

至尊会员II Rank: 4Rank: 4Rank: 4Rank: 4

注册时间
2007-2-14
发表于 2008-8-17 19:04:14| 字数 20| - 中国–山东–济南 移动 | 显示全部楼层
我连ubuntu下的拨号都没搞定,绑定了
实事求是 实话实说
回复 支持 反对

使用道具 举报

5517

回帖

67

积分

3185

资产值

至尊会员I Rank: 4Rank: 4Rank: 4Rank: 4

注册时间
2005-5-27
发表于 2008-8-17 19:25:48| 字数 79| - 中国–福建–泉州 联通 | 显示全部楼层
在ubuntu下刚用蓝牙gprs的时候也这样2分钟断线,解决方法我忘记了好像是哪个配置文件里面因为找不到dns回执所以强制断线。bs一下linux的不易用性。
回复 支持 反对

使用道具 举报

1722

回帖

29

积分

3451

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2005-9-2
铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2008-8-17 19:32:46| 字数 113| - 中国–江苏–南京 移动 | 显示全部楼层
[quote]Posted by HOOP on 2008-8-17 19:25
鍦╱buntu涓嬪垰鐢ㄨ摑鐗檊prs鐨勬椂鍊欎篃杩欐牱2鍒嗛挓鏂?嚎锛岃В鍐虫柟娉曟垜蹇樿?浜嗗ソ鍍忔槸鍝?釜閰嶇疆鏂囦欢閲岄潰鍥犱负鎵句笉鍒癲ns鍥炴墽鎵
T43
回复 支持 反对

使用道具 举报

1722

回帖

29

积分

3451

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2005-9-2
铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2008-8-17 20:05:47| 字数 11| - 中国–江苏–南京 移动 | 显示全部楼层
鍛靛懙锛屽張涔辩爜鍟︺
T43
回复 支持 反对

使用道具 举报

76

回帖

0

积分

269

资产值

入门会员 Rank: 1

注册时间
2006-11-11
发表于 2008-8-17 20:16:44| 字数 47| - 中国–广东–东莞 电信 | 显示全部楼层
本人原来没有装宽带对时候用ubuntu8.04拨号很是正常......速度超爽........
探讨各种问题欢迎光临我的博客…http://www.hnxgf.cn
回复 支持 反对

使用道具 举报

76

回帖

0

积分

269

资产值

入门会员 Rank: 1

注册时间
2006-11-11
发表于 2008-8-17 20:17:42| 字数 91| - 中国–广东–东莞 电信 | 显示全部楼层
QUOTE:
Posted by ls400 on 2008-8-17 20:05
鍛靛懙锛屽張涔辩爜鍟︺?&#65533;

大哥,你还是用拼音吧........那样不会乱码........
探讨各种问题欢迎光临我的博客…http://www.hnxgf.cn
回复 支持 反对

使用道具 举报

1722

回帖

29

积分

3451

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2005-9-2
铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2008-8-17 21:16:51| 字数 43| - 中国–江苏–南京 移动 | 显示全部楼层
read /etc/ppp/options and modify two items and ok.
T43
回复 支持 反对

使用道具 举报

2万

回帖

162

积分

2万

资产值

至尊会员II Rank: 4Rank: 4Rank: 4Rank: 4

注册时间
2007-2-14
发表于 2008-8-17 23:03:28| 字数 12| - 中国–山东–济南 移动 | 显示全部楼层
楼上 的ubuntu怎么弄
实事求是 实话实说
回复 支持 反对

使用道具 举报

5517

回帖

67

积分

3185

资产值

至尊会员I Rank: 4Rank: 4Rank: 4Rank: 4

注册时间
2005-5-27
发表于 2008-8-17 23:26:38| 字数 25| - 中国–福建–泉州 联通 | 显示全部楼层
用cmwap的乱码推荐用网页浏览加速器cmwap版
回复 支持 反对

使用道具 举报

1722

回帖

29

积分

3451

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2005-9-2
铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2008-8-18 14:31:28| 字数 1,342| - 中国–江苏–南京 电信 | 显示全部楼层
呵呵,从网上到处搜wvdial加上把/etc/ppp/option读了一遍,问题终于解决了。
0、以下操作均在root用户下,我用的手机是treo680,装好软件usbmodem,在手机上运行usbmodem
1、安装wvdial,我用的是debian,apt-get install wvdial ppp
2、运行wvdial,会生成/etc/wvdial.conf,按你的实际情况修改一下,网上都有,现付上我用的。
[Dialer Defaults]
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:roxy "http://10.0.0.172:80";
不要忘了最后的分号。

[ Edited by  ls400 on 2008-8-18 14:37 ]
T43
回复 支持 反对

使用道具 举报

1722

回帖

29

积分

3451

资产值

白金会员 Rank: 3Rank: 3Rank: 3

注册时间
2005-9-2
铜牌荣誉勋章(注册8年以上会员)
 楼主| 发表于 2008-8-18 14:32:43| 字数 8| - 中国–江苏–南京 电信 | 显示全部楼层
呵呵,能加分吗?
T43
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Powered by Discuz! X3.5 © 2001-2023 Comsenz Inc

GMT+8, 2025-2-8 19:17 , Processed in 0.110219 second(s), 40 queries , Gzip On, OPcache On.

手机版|小黑屋|安卓客户端|iOS客户端|Archiver|备用网址1|备用网址2|在线留言|专门网

返回顶部