(接 micro2440使用3G上网卡实现拨号上网(上))
上面的设备我甜的ttyUSB1。因为at命令发送超时,所以应该是at命令口不通,所以改成ttyUSB2,真的就ok了。
下面是内核打印的信息:
[root@FriendlyARM peers]# pppd file cdma2000 &行了,你的IP就是上面的local IP address
现在来测试一下看你成功没:
[root@FriendlyARM peers]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90
inet addr: ***.***.***.*** Bcast: ***.***.***.*** Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:51 Base address:0x2300
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:668 (668.0 B) TX bytes:668 (668.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr: ***.***.***.*** P-t-P: ***.***.***.*** Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1380 Metric:1
RX packets:76 errors:8 dropped:0 overruns:0 frame:0
TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:5277 (5.1 KiB) TX bytes:5570 (5.4 KiB)
[root@FriendlyARM peers]# ping www.baidu.com -I ppp0
PING www.baidu.com (119.75.217.56): 56 data bytes
64 bytes from 119.75.217.56: seq=0 ttl=57 time=297.113 ms
64 bytes from 119.75.217.56: seq=1 ttl=57 time=310.277 ms
64 bytes from 119.75.217.56: seq=2 ttl=57 time=325.303 ms
64 bytes from 119.75.217.56: seq=3 ttl=57 time=320.266 ms
64 bytes from 119.75.217.56: seq=4 ttl=57 time=315.289 ms
64 bytes from 119.75.217.56: seq=5 ttl=57 time=310.330 ms
64 bytes from 119.75.217.56: seq=6 ttl=57 time=325.301 ms
64 bytes from 119.75.217.56: seq=7 ttl=57 time=340.301 ms
64 bytes from 119.75.217.56: seq=8 ttl=57 time=315.292 ms
64 bytes from 119.75.217.56: seq=9 ttl=57 time=310.295 ms
64 bytes from 119.75.217.56: seq=10 ttl=57 time=325.328 ms
64 bytes from 119.75.217.56: seq=11 ttl=57 time=320.301 ms
64 bytes from 119.75.217.56: seq=12 ttl=57 time=315.300 ms
^C
--- www.baidu.com ping statistics ---
13 packets transmitted, 13 packets received, 0% packet loss
round-trip min/avg/max = 297.113/317.745/340.301 ms
OK,成功了!!!!!!!!!