Sun Jul 1 12:18:29 EDT 2012

OpenWRT switch config

Looks like this now works through /proc
TODO: find out port layout

This is from /etc/config/network ; I don't see any tag marks.  Is 8
always tagged?

config switch_vlan eth0_0
        option device   "eth0"
        option vlan     0
        option ports    "0 1 2 3 8"

config switch_vlan eth0_1
        option device   "eth0"
        option vlan     1
        option ports    "4 8"

Maybe it's easier to just use robocfg like before.
feeds install robocfg

Doesn't seem to support bgmac.  

Looking at /lib/network/switch.sh I see:

So it seems that '*' is added to the line, making the last port a
tagged port.

Maybe support is just a version issue because BCM53115 is mentioned
here[3].  I'm trying to build it now.


echo '1t 2t 3t 4t 8t' >/proc/switch/eth0/vlan/11/ports

[1] http://wiki.openwrt.org/doc/uci/network#procswitch
[2] http://wiki.openwrt.org/doc/uci/network/switch
[3] http://wl500g.googlecode.com/svn/trunk/utils/robocfg.c