|
Windows 下的路由表
- IPv4 Route Table
- ===========================================================================
- Interface List
- 0x1 ........................... MS TCP Loopback interface
- 0x2 ...00 01 af 00 01 80 ...... Motorola USB Networking Driver
- 0x3 ...00 e0 4d 30 43 e9 ...... NVIDIA nForce Networking Controller
- ===========================================================================
- ===========================================================================
- Active Routes:
- Network Destination Netmask Gateway Interface Metric
- 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.18 50
- 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
- 192.168.0.0 255.255.255.0 192.168.0.18 192.168.0.18 20
- 192.168.0.18 255.255.255.255 127.0.0.1 127.0.0.1 20
- 192.168.0.255 255.255.255.255 192.168.0.18 192.168.0.18 20
- 192.168.16.0 255.255.255.248 192.168.16.1 192.168.16.1 30
- 192.168.16.1 255.255.255.255 127.0.0.1 127.0.0.1 30
- 192.168.16.255 255.255.255.255 192.168.16.1 192.168.16.1 30
- 224.0.0.0 240.0.0.0 192.168.0.18 192.168.0.18 20
- 224.0.0.0 240.0.0.0 192.168.16.1 192.168.16.1 30
- 255.255.255.255 255.255.255.255 192.168.0.18 192.168.0.18 1
- 255.255.255.255 255.255.255.255 192.168.16.1 192.168.16.1 1
- Default Gateway: 192.168.0.1
- ===========================================================================
复制代码
摩托罗拉 E2 手机上的
- MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
- Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x
- -= HTV(BASE ON ilove3d 46PNB =-
- SUMATRA login: root
- root:~# busybox route
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- default 192.168.16.1 255.255.255.255 UGH 20 0 0 usbl0
- 192.168.0.0 192.168.16.1 255.255.255.255 UGH 20 0 0 usbl0
- 192.168.0.18 192.168.16.1 255.255.255.255 UGH 20 0 0 usbl0
- 192.168.0.0 * 255.255.255.0 U 0 0 0 usbl0
- 192.168.16.0 * 255.255.255.0 U 0 0 0 usbl0
- 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
- root:~# ping 192.168.0.1
- PING 192.168.0.1 (192.168.0.1) from 192.168.16.2 : 56(84) bytes of data.
- From 192.168.16.2 icmp_seq=1 Destination Host Unreachable
- root:~# ping 192.168.0.18
- PING 192.168.0.18 (192.168.0.18) from 192.168.16.2 : 56(84) bytes of data.
- 64 bytes from 192.168.0.18: icmp_seq=1 ttl=128 time=26.6 ms
复制代码
请问我应该怎么设置两边的路由,在手机上才能 ping 通局域网内的其他机器,比如192.168.0.1和公网 |
|