S3C2410+linux2.4下GPRS拨号能通,却PING不到外网,何解?

liu_liu520   2008-7-21 17:46 楼主
S3C2410+linux2.4,使用PPPD和CHAT实现GPRS拨号,手机卡是动感地带的,接入点选了CMNET
PPP0的IP都已经成功分配了,为何还PING不通,默认路由也加了(route add default ppp0),何解?

# ifconfig
ppp0 Link encap:Point-Point Protocol
inet addr:10.165.203.49 P-t-P:221.177.160.162 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:1937 (1.8 kb)

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
221.177.160.162 * 255.255.255.255 UH 0 0 0 ppp0
default 221.177.160.162 0.0.0.0 UG 0 0 0 ppp0

# ping 10.165.203.49
PING 10.165.203.49 (10.165.203.49): 56 data bytes
ping: sendto: Invalid argument

# ping 221.177.160.162
PING 221.177.160.162 (221.177.160.162): 56 data bytes
--- 221.177.160.162 ping statistics ---
22 packets transmitted, 0 packets received, 10000000000acket loss


拨号相关脚本:

options:

/dev/ttyS0
115200
lock
modem
defaultroute
nocrtscts
connect "/root/ppp/ppp-on"
noipdefault
usepeerdns
user "pap"
password "pap"

ppp-on:

#!/bin/sh
TELEPHONE=*99***1#
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0
export TELEPHONE
DIALER_SCRIPT=/root/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug /dev/ttyS0 115200 \
$LOCAL_IP:$REMOTE_IP connect $DIALER_SCRIPT

PS:能拨通的话,脚本应该没有问题吧?

回复评论 (1)

请问,改问题解决了没有,我也碰到类似的问题?如何解决的。谢谢
点赞  2008-8-26 09:19
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复