@fyi,
Hi. I was trying to setup the switch on WR1043ND as enterprise switch with port 1 in default vlan, port 2 a member of vlan 10, port 3 & 4 a trunk where default vlan, vlan10 and vlan 20 (not mapped on any port) can pass through. Please note that I would have two manageable switches (with vlan1, vlan10 and vlan20 also) connected at 2 trunk port and they are connected to each other providing the network a redundant and fail safe link.
Trying to understand the configurations at http://translate.google.com/translate?s … od-openwrt and set my own configuration made my unit crashed and bricked. I've reference also this website http://www.hermanvandrie.nl/index.php?o … ;Itemid=15 and this http://blog.philippklaus.de/2011/04/ope … bit-router.
I managed to recover the unit by using the serial port and have OpenWrt backfire 10.03.1 working again.
Now, I don't want the unit crashed and bricked again the second time for it took me so much time recovering, working on soldering and burned serial port but still am working on the setup I want.
Could you please help me and verify or confirm if the following configuration will work as I wanted? Do I have missing configuration like setting STP ?
Thank you in advance.
/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'
option 'ifname' 'eth0.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1 '
option 'netmask' '255 .255.255.0 '
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'dhcp'
config 'interface' 'vlan10' #appended
option 'ifname' 'eth0.10'
option 'proto' 'static'
option 'ipaddr' '192.168.3.1'
option 'netmask' '255.255.255.0'
config 'interface' 'vlan20' #appended
option 'ifname' 'eth0.20'
option 'proto' 'static'
option 'ipaddr' '192.168.4.1'
option 'netmask' '255.255.255.0'
config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
option 'enable_vlan4k '1'
config 'switch_port' #appended
option 'device' 'rtl8366rb'
option 'port' '0'
option 'pvid' '2'
config 'switch_port' #appended
option 'device' 'rtl8366rb'
option 'port' '1'
option 'pvid' '1'
config 'switch_port'
option 'device' 'rtl8366rb'
option 'port' '2'
option 'pvid' '10'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 5t' #moved ports 2, 3 and 4
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'
config 'switch_vlan' #appended
option 'device' 'rtl8366rb'
option 'vlan' '10'
option 'ports' '2 3t 4t 5t'
config 'switch_vlan' #appended
option 'device' 'rtl8366rb'
option 'vlan' '20'
option 'ports' '3t 4t 5t'
/etc/config/dhcp
config 'dhcp' 'vlan10' #appended
option 'interface' 'vlan10'
option 'leasetime' '12h'
option 'start' '6'
option 'limit' '254'
config 'dhcp' 'vlan20' #appended
option 'interface 'vlan20'
option 'leasetime' '12h'
option 'start' '6'
option 'limit' '254'
/etc/config/firewall
config zone # appended
option name vlan10
option network 'vlan10'
option input ACCEPT
option output ACCEPT
option forward REJECT
config zone # appended
option name vlan20
option network 'vlan20'
option input ACCEPT
option output ACCEPT
option forward REJECT
config forwarding
option src lan
option src vlan10 #appended
option src vlan20 #appended
option src wan
(Last edited by @ll@n416 on 20 Jan 2013, 18:36)