手动设置3G的wifi迷你无线路由

时间:2023-03-09 16:41:52
手动设置3G的wifi迷你无线路由

1、插入中兴的3G无线网卡,终端上显示如下内容:

~ >: usb 1-1.3: new full speed USB device number 11 using s3c2410-ohci
usb 1-1.3: New USB device found, idVendor=19d2, idProduct=2000
usb 1-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=3
usb 1-1.3: Product: ZTE CDMA Technologies MSM
usb 1-1.3: Manufacturer: ZTE,Incorporated
usb 1-1.3: SerialNumber: 1234567890ABCDEF
scsi3 : usb-storage 1-1.3:1.0
scsi 3:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
scsi 3:0:0:0: Attached scsi generic sg0 type 5

2、~ >: usb_modeswitch -c /apps/zte_mf626.conf

3、~ >: pppd call wcdma &

4、~ >: ifconfig

。 。 。
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.140.32.247  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:568 (568.0 B)  TX bytes:1214 (1.1 KiB)

。 。 。

5、~ >: ip route show
default via 192.168.1.1 dev eth0 
10.64.64.64 dev ppp0  src 10.140.180.254 
192.168.1.0/24 dev eth0  src 192.168.1.168 
6、~ >: route del default
7、~ >: ip route show
10.64.64.64 dev ppp0  src 10.140.180.254 
192.168.1.0/24 dev eth0  src 192.168.1.168 
8、~ >: route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.64.64.64     *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
9、~ >: ip route add default dev ppp0
10、~ >: route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
10.64.64.64     *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
10、~ >: ping 4.2.2.2
PING 4.2.2.2 (4.2.2.2): 56 data bytes
64 bytes from 4.2.2.2: seq=0 ttl=49 time=902.492 ms
64 bytes from 4.2.2.2: seq=1 ttl=49 time=337.749 ms
64 bytes from 4.2.2.2: seq=2 ttl=49 time=333.862 ms

--- 4.2.2.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 333.862/524.701/902.492 ms

11、~ >: ping www.baidu.com
ping: bad address 'www.baidu.com'
~ >:

12、~ >: ping www.baidu.com
ping: bad address 'www.baidu.com'
~ >: ping www.baidu.com
PING www.baidu.com (115.239.210.27): 56 data bytes
64 bytes from 115.239.210.27: seq=0 ttl=49 time=214.918 ms
64 bytes from 115.239.210.27: seq=1 ttl=49 time=169.642 ms
64 bytes from 115.239.210.27: seq=2 ttl=49 time=178.686 ms
64 bytes from 115.239.210.27: seq=3 ttl=49 time=158.728 ms

--- www.baidu.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 158.728/180.493/214.918 ms

有时候不行有时候行,信号不好。

13、插入RT2070/RT3070无线网卡,显示如下信息。

~ >: usb 1-1.4: new full speed USB device number 5 using s3c2410-ohci
usb 1-1.4: New USB device found, idVendor=148f, idProduct=3070
usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.4: Product: 802.11 n WLAN
usb 1-1.4: Manufacturer: Ralink
usb 1-1.4: SerialNumber: 1.0

14、~ >: ifconfig

。 。 。

mon.wlan0 Link encap:UNSPEC  HWaddr 00-0C-43-30-72-81-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 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:1062 (1.0 KiB)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.140.180.254  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:5652 (5.5 KiB)  TX bytes:7886 (7.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:0C:43:30:72:81  
          inet addr:192.168.5.1  Bcast:192.168.5.255  Mask:255.255.255.0
          UP BROADCAST RUNNING 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)

。 。 。

15、~ >: sh /apps/tools/nat.sh

16、在笔记本上连上这个无线路由。

17、打开百度主页。