用pppd2.4.4拨号上网16300。将用户名发出后服务器接受但接收密码时没有了反应。写的ppp-on脚本和ppp-on-dialer及日志如下。<br /><br />ppp-on脚本<br />TELEPHONE=0,16300 # The telephone number for the connection<br />ACCOUNT=16300 # The account name for **n (as in 'George Burns')<br />PASSWORD=16300 # The password for this account (and 'Gracie Allen')<br />LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0<br />REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0<br />NETMASK=255.255.255.0 # The proper netmask if needed<br /><br />exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 38400 \<br /> asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \<br /> noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT<br /><br />ppp-on-dialer脚本<br />exec chat -v \<br /> TIMEOUT 3 \<br /> ABORT '\nBUSY\r' \<br /> ABORT '\nNO ANSWER\r' \<br /> ABORT '\nRINGING\r\n\r\nRINGING\r' \<br /> '' '\rAT L0' \<br /> 'OK-+++\c-OK' ATH0 \<br /> TIMEOUT 30 \<br /> OK ATDT$TELEPHONE \<br /> CONNECT '' \<br /> sername:--sername: $ACCOUNT \<br /> assword: $PASSWORD<br /><br />观察日志如下<br />Jan 11 19:14:22 localhost chat[30956]: send (ATDT0,16300^M)<br />Jan 11 19:14:22 localhost chat[30956]: expect (CONNECT)<br />Jan 11 19:14:22 localhost chat[30956]: ^M<br />Jan 11 19:14:33 localhost chat[30956]: ATDT0,16300^M^M<br />Jan 11 19:14:33 localhost chat[30956]: CONNECT<br />Jan 11 19:14:33 localhost chat[30956]: -- got it <br />Jan 11 19:14:33 localhost chat[30956]: send (^M)<br />Jan 11 19:14:33 localhost chat[30956]: expect (sername:)<br />Jan 11 19:14:33 localhost chat[30956]: 38400/V42BIS^M<br />Jan 11 19:14:33 localhost chat[30956]: ^M<br />Jan 11 19:14:33 localhost chat[30956]: ^M<br />Jan 11 19:14:33 localhost chat[30956]: *********************************^M<br />Jan 11 19:14:33 localhost chat[30956]: * Quidway A8010 Internet Server *^M<br />Jan 11 19:14:33 localhost chat[30956]: * welcome!! *^M<br />Jan 11 19:14:33 localhost chat[30956]: *********************************^M<br />Jan 11 19:14:33 localhost chat[30956]: please input username:<br />Jan 11 19:14:33 localhost chat[30956]: -- got it <br />Jan 11 19:14:33 localhost chat[30956]: send (16300^M)<br />Jan 11 19:14:33 localhost chat[30956]: expect (assword:)<br />Jan 11 19:15:03 localhost chat[30956]: alarm<br />Jan 11 19:15:03 localhost chat[30956]: Failed<br />Jan 11 19:15:03 localhost pppd[30955]: Connect script failed<br />Jan 11 19:15:04 localhost pppd[30955]: Exit.<br />由此可见chat一直没有等到输入密码的提示,但在minicom下是提示输入用户名和密码的。还有用**p是可以连接到16300的,这应该说明pppd应该没有问题了吧,有没有遇到这种情况的,说明一下啊 <br /> |
|