TL-WR1043ND上的OpenWrt – VLAN到VLAN通信

我在家里有这个networkingconfiguration:

3G Wifi路由 – 用于访问互联网,192.168.1.0子网

路由器TP-Link TL-WR1043ND – OpenWRT(12.09),192.168.2.0子网,通过“ 桥接客户端 ”无线连接到3G WiFi路由器,以获得互联网接入。

一些Zyxel路由器 – 股票固件,10.0.0.0子网

我需要的主networking是TP-Link路由器上的192.168.2.0。 但是,我还需要访问连接到Zyxelnetworking(10.0.0.0)的less数设备。 例如,有一个RaspberryPi连接,我需要访问它。 我不能改变子网到同一个子网,我不能将树莓移动到192.168.2.0。 我可以修改Zyxelnetworking上的configuration,并且可以通过电缆将Zyxelnetworking连接到TP-Linknetworking。 所以我这样做了。

然后,我在我的TP-Link路由器上创build了两个VLAN和两个防火墙区域,并且正确地configuration了它。 不幸的是,迄今为止运气不佳。 Zyxelnetworking在TP-Link路由器的VLAN中获得了分配的IP地址,范围是10.0.0.0,我可以从TP-Linknetworking客户端取消IP地址,但没有别的。 我尝试了静态路由,这两个vlan之间的stream量转发已启用,但仍然无效。

请问你能帮帮我吗? 我现在迷路了:(

TP-Link / etc / config / network

config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' # TP-Link network option proto 'static' option netmask '255.255.255.0' option ipaddr '192.168.2.1' option gateway '192.168.2.1' option _orig_ifname 'eth0.1' option _orig_bridge 'true' option ifname 'eth0.1' config interface 'wan' option proto 'dhcp' config switch option name 'rtl8366rb' option reset '1' option enable_vlan '1' option enable_vlan4k '1' config switch_vlan option device 'rtl8366rb' option vlan '1' option ports '1 2 3 5t' config switch_vlan option device 'rtl8366rb' option vlan '2' option ports '4 5t' config interface 'o2' # Zywel network option _orig_ifname 'eth0.2' option _orig_bridge 'true' option ifname 'eth0.2' option proto 'static' option ipaddr '10.0.0.9' option netmask '255.255.255.0' option gateway '10.0.0.9' config route # static route to Raspberry connected in Zyxel network option target '10.0.0.5' option netmask '255.255.255.0' option gateway '10.0.0.9' option interface 'o2' 

TP-Link / etc / config /防火墙

 config defaults option syn_flood '1' option input 'DROP' option output 'ACCEPT' option forward 'DROP' config zone option name 'lan' option input 'ACCEPT' option output 'ACCEPT' option forward 'DROP' option network 'lan' config zone option name 'o2' option input 'ACCEPT' option output 'ACCEPT' option forward 'DROP' option network 'o2' config zone option name 'wan' option output 'ACCEPT' option masq '1' option mtu_fix '1' option network 'wan' option input 'DROP' option forward 'DROP' config forwarding option src 'o2' option dest 'wan' config forwarding option dest 'o2' option src 'lan' config forwarding option dest 'wan' option src 'lan' config forwarding option dest 'lan' option src 'o2' 

TP-Link / etc / config /无线

 config wifi-device 'radio0' option type 'mac80211' option channel '6' option macaddr 'a0:f3:c1:5b:cc:98' option hwmode '11ng' option htmode 'HT20' list ht_capab 'SHORT-GI-40' list ht_capab 'DSSS_CCK-40' option country 'CZ' option txpower '20' config wifi-iface option device 'radio0' option network 'wan' option ssid '3g_wifi' option encryption 'psk2' option mode 'sta' option key '****' config wifi-iface option device 'radio0' option mode 'ap' option ssid 'tplink-wifi' option encryption 'psk2' option key '****'