我要桥接两个路由器。主要的(附加到互联网上)是运行固件版本1.0.39的库存Linksys WRV200。辅助服务器是运行固件的DD-WRT v24-sp2(10/10/09)mini的Linksys WRT-54g。
我按照此处的说明尝试创建无线网桥:http : //www.dd-wrt.com/wiki/index.php/Client_Bridged
两个路由器都位于192.168.1.0/24上-主路由器是192.168.1.1,辅助路由器是192.168.1.2。
我有一个通过cat5连接到具有静态IP地址192.168.1.9的辅助服务器的Linux机器。这可以连接出站(我可以ping主服务器,并且该盒子上可以访问Internet)。但是,当我尝试从具有无线连接到主计算机(IP地址192.168.1.103)的便携式计算机ping时,得到以下信息:
$ ping 192.168.1.109
PING 192.168.1.109 (192.168.1.109) 56(84) bytes of data.
From 192.168.1.103 icmp_seq=1 Destination Host Unreachable
From 192.168.1.103 icmp_seq=2 Destination Host Unreachable
.
.
.
我可以从192.168.1.103 ping到辅助路由器本身,仅此而已。
以下是主要数据的重要统计信息:
Local IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
Running as DHCP server
IP Address Range: 192.168.1.100 through 254
Destination LAN IP | Subnet Mask | Gateway | Interface
192.168.1.0 | 255.255.255.0 | 0.0.0.0 | LAN&Wireless
74.138.64.0 | 255.255.240.0 | 0.0.0.0 | WAN
Default Route (*) | 0.0.0.0 | 74.138.64.1 | WAN
127.0.0.1 | 0.0.0.0 | 127.0.0.1 | LOOPBACK
次级:
Local IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1
Local DNS: {not populated}
Routing table:
Destination LAN NET | Subnet Mask | Gateway | Interface
192.168.1.0 | 255.255.255.0 | 0.0.0.0 | LAN & WLAN
169.254.0.0 | 255.255.0.0 | 0.0.0.0 | LAN & WLAN
0.0.0.0 | 0.0.0.0 | 192.168.1.1 | LAN & WLAN
所以...如果我没看错的话,路由器实际上并没有桥接...辅助路由器实际上是在充当路由器,并且不允许来自主服务器的数据包到达其网络的另一端,即使它们在同一子网中。
我确实按照有关在辅助服务器上禁用防火墙的说明进行操作。这是有趣的部分iptables -L
(我已经删除了空链)。
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere
logdrop 0 -- anywhere anywhere state INVALID
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
lan2wan 0 -- anywhere anywhere
ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT 0 -- anywhere anywhere state NEW
.
.
.
Chain logaccept (0 references)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere
Chain logdrop (1 references)
target prot opt source destination
DROP 0 -- anywhere anywhere
Chain logreject (0 references)
target prot opt source destination
REJECT tcp -- anywhere anywhere tcp reject-with tcp-reset
我假设这里缺少一些简单的东西...我该如何设置以便连接到任一路由器的盒子可路由?