I'm looking for a way to show port traffic, specifically in cat /proc/net/dev. Should this be done through VLANs or is there an easier way?
I've read several threads and wiki pages on VLANs but I'm unsure of how to set it up properly. Router model is TEW-673GRU.
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 'proto' 'static'
option 'type' 'bridge'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'pppoe'
option 'username' 'foo'
option 'password' 'bar'
config 'switch' 'rtl8366s'
option 'enable_vlan' '1'
option 'enable_vlan4k' '1'
option 'reset' '1'
config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '1'
option 'ports' '0 1 2 3 5t'
I think I understand how to split into multiple VLANs with separate interfaces, like in this guide: http://translate.google.com/translate?s … od-openwrt
I have no idea how bridging works though. Adding multiple interfaces under 'ifname' on the lan appears to break the connection in every VLAN combination I've tried. I'm not sure if I should be replacing VLAN 1 with four VLANs and bridging, or if I should do something like examples 1 or 3 in the link.
(Last edited by RobPBM on 23 Feb 2012, 01:26)