From 87db23d4a1edcf9b0d33623590b9d3f37c0f31ed Mon Sep 17 00:00:00 2001 From: floh1111 Date: Mon, 30 Jan 2012 15:57:58 +0000 Subject: [PATCH] Switch port changes on wr1043nd: port 1+2 is batman advanced, port 3+4 is for clients --- .../wr1043nd/etc/config/batman-adv | 2 +- root_file_system/wr1043nd/etc/config/network | 25 ++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/root_file_system/wr1043nd/etc/config/batman-adv b/root_file_system/wr1043nd/etc/config/batman-adv index a9a5a95..56432e4 100644 --- a/root_file_system/wr1043nd/etc/config/batman-adv +++ b/root_file_system/wr1043nd/etc/config/batman-adv @@ -1,5 +1,5 @@ config 'mesh' 'bat0' - option 'interfaces' 'wlan0-1' + option 'interfaces' 'wlan0-1 eth0.3 eth0.4' option 'aggregated_ogms' option 'bonding' option 'fragmentation' diff --git a/root_file_system/wr1043nd/etc/config/network b/root_file_system/wr1043nd/etc/config/network index af1b4fc..0ecef4e 100644 --- a/root_file_system/wr1043nd/etc/config/network +++ b/root_file_system/wr1043nd/etc/config/network @@ -17,17 +17,40 @@ config 'interface' 'wan' option 'ifname' 'eth0.2' option 'proto' 'dhcp' +config 'interface' 'ethmesh1' + option 'ifname' 'eth0.3' + option 'mtu' '1528' + +config 'interface' 'ethmesh2' + option 'ifname' 'eth0.4' + option 'mtu' '1528' + config 'switch' option 'name' 'rtl8366rb' option 'reset' '1' option 'enable_vlan' '1' +#3. und 4. LAN Port config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '1' - option 'ports' '1 2 3 4 5t' + option 'ports' '3 4 5t' +#WAN config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '2' option 'ports' '0 5t' + + +#1. LAN Port +config 'switch_vlan' + option 'device' 'rtl8366rb' + option 'vlan' '3' + option 'ports' '1 5t' + +#2. LAN Port +config 'switch_vlan' + option 'device' 'rtl8366rb' + option 'vlan' '4' + option 'ports' '2 5t'