我是靠谱客的博主 知性棉花糖,最近开发中收集的这篇文章主要介绍ubuntu ppp拨号两分钟就掉线解决,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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分钟就掉线了吧,把那两项注释掉,再拨号上网就没问题了。

最后

以上就是知性棉花糖为你收集整理的ubuntu ppp拨号两分钟就掉线解决的全部内容,希望文章能够帮你解决ubuntu ppp拨号两分钟就掉线解决所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(40)

评论列表共有 0 条评论

立即
投稿
返回
顶部