linux pppd 拨号

堵刻 2012-12-26 03:21:36
自己写的程序,进行pppd拨号
脚本1 unicom:
115200
nocrtscts
logfile /var/ppplog
ipcp-accept-local
ipcp-accept-remote
defaultroute
user CARD(拨号名)
usepeerdns
connect \"/usr/sbin/chat -v -f /etc/ppp/peers/chat-unicom\"
mtu 1300"
脚本2 chat-unicom::
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
ABORT "Username/Password Incorrect"
"" AT
OK "ATE0"
OK "AT&D2"
OK ATDT#777
CONNECT ""
然后条用pppd call unicom
提示connect script failed

日志信息为:
Dec 22 22:59:09 ubuntu pppd[2107]: pppd 2.4.5 started by root, uid 0
Dec 22 22:59:09 ubuntu chat[2110]: abort on (NO CARRIER)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (NO DIALTONE)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (ERROR)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (NO ANSWER)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (BUSY)
Dec 22 22:59:09 ubuntu chat[2110]: abort on (Username/Password Incorrect)
Dec 22 22:59:09 ubuntu chat[2110]: send (AT^M)
Dec 22 22:59:09 ubuntu chat[2110]: expect (OK)
Dec 22 22:59:54 ubuntu chat[2110]: alarm
Dec 22 22:59:54 ubuntu chat[2110]: Failed
Dec 22 22:59:54 ubuntu pppd[2107]: Connect script failed
Dec 22 22:59:54 ubuntu pppd[2107]: Exit.

chap-secrets,pap-secrets文件已创建,

这个要怎么解决?


...全文
256 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
堵刻 2012-12-29
  • 打赏
  • 举报
回复
现在拨号成功了,就是网速慢,不知道啥回事,就几b这样的速度,像断了网一样,mru与mtu已经设置成1520和4470,求解
jinjianxinxh 2012-12-26
  • 打赏
  • 举报
回复
先在你windows上试试看看3g卡是不是好的,另外看看脚本是不是脚本有问题,手上现在也没有可用的3G卡所以没法调试一下,楼主多查查吧 不同的运行商 脚本不一样 很好解决的.

23,124

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧