本人移植ppp-2.4.2到s3c2410上,gprs模块使用的是mc35i,
pppd call gprs 方式拨号
#/etc/ppp/peers/gprs
#this is pppd script for china mobile,used mc35i
# Usage: root>pppd call gprs
/dev/ttyS1
19200
nocrtscts
debug
nodetach
usepeerdns
noipdefault
user "cmnet"
0.0.0.0:0.0.0.0
ipcp-accept-local
ipcp-accept-remote
#lcp-echo-failure 12
#lcp-echo-interval 3
noccp
#novj
#novjccomp
#persist
connect '/sbin/chat -s -v -f /etc/ppp/chat'
chat内容为
#/etc/ppp/chat
TIMEOUT 15
ABORT "BUSY"
ABORT "DELAYED"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
TIMEOUT 40
'' \rAT
OK ATS0=0
OK ATE0V1
OK AT+CGDCONT=1,"IP","CMNET"
OK ATDT*99***1#
CONNECT ''
pppd call gprs后 显示
。。。。。。。
。。。。。。。
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <
ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <
ms-dns3 0.0.0.0>]
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-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.190.123.133> <ms-dns1 211.137.130.3> <ms-dns3
211.137.130.19>]
sent [IPCP ConfReq id=0x3 <addr 10.190.123.133> <ms-dns1 211.137.130.3> <ms-dns3
211.137.130.19>]
rcvd [IPCP ConfAck id=0x3 <addr 10.190.123.133> <ms-dns1 211.137.130.3> <ms-dns3
211.137.130.19>]
local IP address 10.190.123.133
remote IP address 192.168.254.254
primary DNS address 211.137.130.3
secondary DNS address 211.137.130.19
到这里就不动了,主机ping 10.190.123.133 不通
为什么到这里就结束了呢,不退出拨号程序?获得了ip,表示成功拨号了么?为什么又ping不通呢? |