pppd拨号问题……

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
coollu925
帖子: 14
注册时间: 2010-12-02 14:55
送出感谢: 0
接收感谢: 0

pppd拨号问题……

#1

帖子 coollu925 » 2011-04-21 12:09

pppd调用的脚本:ppp_script

代码: 全选

#/etc/ppp/peers/ppp_script
#echo "Now start!"
ttyUSB_utps_modem
19200
nocrtscts
connect '/usr/sbin/chat -v -f /etc/ppp/peers/chat_script'
debug
nodetach
ipcp-accept-local
ipcp-accept-remote
defaultroute
user card
chat调用的脚本:

代码: 全选

#/etc/ppp/peers/chat_script
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
TIMEOUT 30
"" AT
OK ATDT*99#
connect
使用的pppd命令调用ppp_script脚本:

代码: 全选

user@Ubuntu1004:~$ sudo pppd call ppp_script 
[color=#FF0000]Script /usr/sbin/chat -v -f /etc/ppp/peers/chat_script finished (pid 2690), status = 0x3[/color]Connect script failed
/var/log/messages信息:

代码: 全选

#gedit /var/log/messages
……
Apr 20 23:03:59 Ubuntu1004 pppd[2753]: pppd 2.4.5 started by user, uid 0
Apr 20 23:04:00 Ubuntu1004 chat[2754]: abort on (NO CARRIER)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: abort on (NO DIALTONE)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: abort on (ERROR)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: abort on (NO ANSWER)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: abort on (BUSY)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: timeout set to 30 seconds
Apr 20 23:04:00 Ubuntu1004 chat[2754]: send (AT^M)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: expect (OK)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: AT^M^M
Apr 20 23:04:00 Ubuntu1004 chat[2754]: OK
Apr 20 23:04:00 Ubuntu1004 chat[2754]:  -- got it
Apr 20 23:04:00 Ubuntu1004 chat[2754]: send (ATDT*99#^M)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: expect (connect)
Apr 20 23:04:00 Ubuntu1004 chat[2754]: ^M
Apr 20 23:04:00 Ubuntu1004 chat[2754]: ATDT*99#^M^M
Apr 20 23:04:00 Ubuntu1004 chat[2754]: CONNECT 7200000^M 
//这里使用chat的脚本已经连接成功了,后边的几句就不知咋回事……
Apr 20 23:04:30 Ubuntu1004 chat[2754]: alarm
Apr 20 23:04:30 Ubuntu1004 chat[2754]: Failed
Apr 20 23:04:31 Ubuntu1004 pppd[2753]: Exit.
各位大侠,帮忙看看,这是怎么回事,是不是还有什么命令没有添加?还是少了什么文件?
回复

回到 “网卡问题以及网络和拨号”