LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1022|回复: 0

想让手机通过宽带上网,请教路由设置的问题

[复制链接]
发表于 2007-11-8 17:08:18 | 显示全部楼层 |阅读模式
Windows 下的路由表

  1. IPv4 Route Table
  2. ===========================================================================
  3. Interface List
  4. 0x1 ........................... MS TCP Loopback interface
  5. 0x2 ...00 01 af 00 01 80 ...... Motorola USB Networking Driver
  6. 0x3 ...00 e0 4d 30 43 e9 ...... NVIDIA nForce Networking Controller
  7. ===========================================================================
  8. ===========================================================================
  9. Active Routes:
  10. Network Destination        Netmask          Gateway       Interface  Metric
  11.           0.0.0.0          0.0.0.0      192.168.0.1     192.168.0.18     50
  12.         127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1      1
  13.       192.168.0.0    255.255.255.0     192.168.0.18     192.168.0.18     20
  14.      192.168.0.18  255.255.255.255        127.0.0.1        127.0.0.1     20
  15.     192.168.0.255  255.255.255.255     192.168.0.18     192.168.0.18     20
  16.      192.168.16.0  255.255.255.248     192.168.16.1     192.168.16.1     30
  17.      192.168.16.1  255.255.255.255        127.0.0.1        127.0.0.1     30
  18.    192.168.16.255  255.255.255.255     192.168.16.1     192.168.16.1     30
  19.         224.0.0.0        240.0.0.0     192.168.0.18     192.168.0.18     20
  20.         224.0.0.0        240.0.0.0     192.168.16.1     192.168.16.1     30
  21.   255.255.255.255  255.255.255.255     192.168.0.18     192.168.0.18      1
  22.   255.255.255.255  255.255.255.255     192.168.16.1     192.168.16.1      1
  23. Default Gateway:       192.168.0.1
  24. ===========================================================================
复制代码


摩托罗拉 E2 手机上的

  1. MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
  2. Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x

  3. -= HTV(BASE ON ilove3d 46PNB =-
  4. SUMATRA login: root

  5. root:~# busybox route
  6. Kernel IP routing table
  7. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  8. default         192.168.16.1    255.255.255.255 UGH   20     0        0 usbl0
  9. 192.168.0.0     192.168.16.1    255.255.255.255 UGH   20     0        0 usbl0
  10. 192.168.0.18    192.168.16.1    255.255.255.255 UGH   20     0        0 usbl0
  11. 192.168.0.0     *               255.255.255.0   U     0      0        0 usbl0
  12. 192.168.16.0    *               255.255.255.0   U     0      0        0 usbl0
  13. 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
  14. root:~# ping 192.168.0.1
  15. PING 192.168.0.1 (192.168.0.1) from 192.168.16.2 : 56(84) bytes of data.
  16. From 192.168.16.2 icmp_seq=1 Destination Host Unreachable
  17. root:~# ping 192.168.0.18
  18. PING 192.168.0.18 (192.168.0.18) from 192.168.16.2 : 56(84) bytes of data.
  19. 64 bytes from 192.168.0.18: icmp_seq=1 ttl=128 time=26.6 ms
复制代码


请问我应该怎么设置两边的路由,在手机上才能 ping 通局域网内的其他机器,比如192.168.0.1和公网
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表