onfig 'switch' 'eth1'
option 'enable' '1'
option 'enable_vlan' '1'
option 'reset' '1'
config 'switch_vlan' 'vlan0'
option 'vlan' '0'
option 'device' 'eth1'
option 'ports' '1 2 3 5*'
config 'switch_vlan' 'vlan1'
option 'vlan' '1'
option 'device' 'eth1'
option 'ports' '0 5t'
cos? facendo vlan0 avr? in groppone la seconda terza e quarta porta e la vlan1 la prima
per il senso di quel "*" (stile broadcom) o "t" ecco dal wiki di openwrt...
In the option ports line, a number indicates that the specified vlan includes the port with that number. If the number is followed by a "t" then packets transmitted out that port on this VLAN are tagged, and that packets received on that port may be received with this VLAN tag. 5 is generally the CPU or 'internal' port and is generally always tagged. Any other suffix is ignored. (In particular, Broadcom kmod-switch style interfaces use "*" and "u" to indicate PVID and untagged ports, but these designations are ignored by swconfig.)
So, '0 1 2 3 5t' would mean that packets on this VLAN are transmitted untagged when leaving ports 0, 1, 2 and 3, but tagged when leaving port 5 (generally the CPU internal port as described above).