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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值