linux下PPP脚本拨号的问题

我想在Linux中用脚本实现ppp拨号上网,使用的是外置的串口无线GSM MODEM,出现如下日志提示:
Mar 21 20:35:37 localhost pppd[14795]: pppd 2.4.1 started by root, uid 0
Mar 21 20:35:38 localhost chat[14796]: timeout set to 3 seconds
Mar 21 20:35:38 localhost chat[14796]: abort on (/nBUSY/r)
Mar 21 20:35:38 localhost chat[14796]: abort on (/nNO ANSWER/r)
Mar 21 20:35:38 localhost chat[14796]: abort on (/nRINGING/r/n/r/nRINGING/r)
Mar 21 20:35:38 localhost chat[14796]: send (rAT^M)
Mar 21 20:35:39 localhost chat[14796]: expect (OK)
Mar 21 20:35:39 localhost chat[14796]: rAT^M^M
Mar 21 20:35:39 localhost chat[14796]: OK
Mar 21 20:35:39 localhost chat[14796]: -- got it
Mar 21 20:35:39 localhost chat[14796]: send (ATH0^M)
Mar 21 20:35:39 localhost chat[14796]: timeout set to 30 seconds
Mar 21 20:35:39 localhost chat[14796]: expect (OK)
Mar 21 20:35:39 localhost chat[14796]: ^M
Mar 21 20:35:39 localhost chat[14796]: ATH0^M^M
Mar 21 20:35:39 localhost chat[14796]: OK
Mar 21 20:35:39 localhost chat[14796]: -- got it
Mar 21 20:35:39 localhost chat[14796]: send (ATDT*99***1#^M)
Mar 21 20:35:39 localhost chat[14796]: expect (CONNECT)
Mar 21 20:35:39 localhost chat[14796]: ^M
Mar 21 20:35:39 localhost chat[14796]: ATDT*99***1#^M^M
Mar 21 20:35:39 localhost chat[14796]: CONNECT
Mar 21 20:35:39 localhost chat[14796]: -- got it
Mar 21 20:35:39 localhost chat[14796]: send (^M)
Mar 21 20:35:39 localhost chat[14796]: expect (ogin:)
Mar 21 20:35:39 localhost chat[14796]: 9600^M
Mar 21 20:35:42 localhost chat[14796]: ~^?}#@!}!}!} }6}!}$}%/}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%/}"}&} } }
Mar 21 20:35:48 localhost chat[14796]: } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%/}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!
Mar 21 20:35:51 localhost chat[14796]: } }6}!}$}%/}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%/}"}&} } } } }'}"}(}
Mar 21 20:35:57 localhost chat[14796]: "}#}$@#&4~~^?}#@!}!}!} }6}!}$}%/}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%
Mar 21 20:36:00 localhost chat[14796]: /}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%/}"}&} } } } }'}"}(}"}#}$@#&4~
Mar 21 20:36:06 localhost chat[14796]: ~^?}#@!}!}!} }6}!}$}%/}"}&} } } } }'}"}(}"}#}$@#&4~~^?}#@!}!}!} }6}!}$}%/}"}&} } }
Mar 21 20:36:09 localhost chat[14796]: alarm
Mar 21 20:36:09 localhost chat[14796]: send (^M)
Mar 21 20:36:09 localhost chat[14796]: expect (ogin:)
Mar 21 20:36:10 localhost chat[14796]: ^M
Mar 21 20:36:10 localhost chat[14796]: NO CARRIER^M
Mar 21 20:36:39 localhost chat[14796]: alarm
Mar 21 20:36:39 localhost chat[14796]: Failed
Mar 21 20:36:39 localhost pppd[14795]: Connect script failed
Mar 21 20:36:40 localhost pppd[14795]: Exit

貌似是说在验证用户名的时候出现了错误,我在脚本中的用户名和密码都设置为空,不知道正不正确,如果不正确应该如何设置?希望高手能解答一下

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值