背景:
阅读新闻
华为ET128在TQ2440上的移植和使用[附相关文件]
[日期:2011-03-01] 来源:Linux社区 作者:y296144646q [字体:]
(如果出现报错couldn't open ppp database /var/run/pppd2.tdb这一个错误
解决办法
mkdir /var/run
解释:pppd2.tdb这个文件是pppd程序生成的如果没有run这个目录的话只要建一个目录就可以了)
timeout set to 15 seconds
abort on (\nBUSY\r)
abort on (\nNO ANSWER\r)
abort on (\nRINGING\r\n\r\nRINGING\r)
timeout set to 40 seconds
send (^MAT^M)
expect (OK)
^M
OK
-- got it
send (ATS0=0^M)
expect (OK)
^M
^MAT^M^M
OK
-- got it
send (ATE0V1^M)
expect (OK)
^M
ATS0=0^M^M
OK
-- got it
send (AT+CGDCONT=1,"IP","CMNET"^M)
expect (OK)
^M
ATE0V1^M^M
OK
-- got it
send (ATDT*99***1#^M)
expect (CONNECT)
^M
^M
OK^M
^M
CONNECT
-- got it
Script /usr/sbin/chat -s -v -f /etc/ppp/connect-chat finished (pid 517), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM1
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x93c5851b> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
sent [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth pap>]
rcvd [LCP ConfRej id=0x1 <magic 0x93c5851b> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [PAP AuthReq id=0x1 user="any" password=<hidden>]
rcvd [PAP AuthAck id=0x1 "Login OK"]
Remote message: Login OK
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 192.200.1.21>]
sent [IPCP ConfAck id=0x1 <addr 192.200.1.21>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.160.193.31> <ms-dns1 211.141.16.99> <ms-dns2 211.136.17.107>]
sent [IPCP ConfReq id=0x3 <addr 10.160.193.31> <ms-dns1 211.141.16.99> <ms-dns2 211.136.17.107>]
rcvd [IPCP ConfAck id=0x3 <addr 10.160.193.31> <ms-dns1 211.141.16.99> <ms-dns2 211.136.17.107>]
local IP address 10.160.193.31
remote IP address 192.200.1.21
primary DNS address 211.141.16.99
secondary DNS address 211.136.17.107
[root@ZHENXI-> ppp]# ls
chap-secrets connect-errors peers
connect-chat pap-secrets resolv.conf
[root@ZHENXI-> ppp]# vi resolv.conf
nameserver 211.141.16.99
nameserver 211.136.17.107
这2个为上面PPP拨号成功时返回的DNS,将其加入resolv.conf文件即可
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯