Chinaunix

标题: 为什么路由不通啊? [打印本页]

作者: mygod100    时间: 2012-10-11 23:36
标题: 为什么路由不通啊?
路由器openwrt, WAN:192.168.100.5/24  LAN: 192.168.5.1/24
LAN口连接PC1: 192.168.5.194/24 GW:192.168.5.1

路由器DDWRT, WAN:192.168.100.2/24 LAN: 192.168.2.1/24
LAN口连接PC2: 192.168.2.100/24 GW:192.168.2.1

OPENWRT和DDWRT之间连接并能直接ping通.

openwrt上的route:
root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     ddwrt           255.255.255.0   UG    0      0        0 wan
192.168.5.0     *               255.255.255.0   U     0      0        0 br-lan
192.168.100.0   *               255.255.255.0   U     0      0        0 wan

openwrt上已经iptable -F;iptable -t nat -F,且forwarding=1


在路由器DDWRT上的路由
root@DD-WRT:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
169.254.0.0     *               255.255.0.0     U     0      0        0 br0
192.168.2.0     *               255.255.255.0   U     0      0        0 br0
192.168.5.0     openwrt         255.255.255.0   UG    0      0        0 vlan2
192.168.100.0   *               255.255.255.0   U     0      0        0 vlan


为什么在ddwrt上ping PC1(192.168.5.194)无任何返回?且:
root@DD-WRT:~# traceroute pc1
traceroute to pc1 (192.168.5.194), 30 hops max, 38 byte packets
1  openwrt (192.168.100.5)  0.404 ms  0.391 ms  0.811 ms
2  openwrt (192.168.100.5)  3009.496 ms !H  3009.405 ms !H  3009.672 ms !H

不知道这是怎么回事啊?为什么路由不通啊?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2