|
S3C2410+linux2.4,使用PPPD和CHAT实现GPRS拨号,手机卡是动感地带的,接入点选了CMNET
PPP0的IP都已经成功分配了,为何还PING不通,默认路由也加了(route add default ppp0),请教各位大大!
# ifconfig
ppp0 Link encapoint-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_IPREMOTE_IP connect $DIALER_SCRIPT
PS:能拨通的话,脚本应该没有问题吧? |
|