Change default VLAN configuration


#1

I am looking for a replacement for my Asus RT-AC66U and my 2 finalists are Turris Omnia and Mikrotik RB4011iGS+RM. The main reason for these 2 choices is their security/frequent updates, number of ports and their switch configuration.

When I look at the default Omnia VLAN configuration, I see it is set-up as a single bridged switch with 2 VLANs. I would like my switch setup to be similar but use a single “VLAN” with all LAN ports + eth0 and eth2 in the same switch (to have 2 Gbps between switch and CPU). I’m sure this is possible and I was wondering if I could achieve this simply by changing the default config to enable_vlan ‘0’ and removing the last 2 sections below

config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan '1’

config switch_vlan
_ option device ‘switch0’_
_ option vlan ‘1’_
_ option ports ‘0 1 2 3 5’_
_ _
config switch_vlan
_ option device ‘switch0’_
_ option vlan ‘2’_
_ option ports ‘4 6’_

Or do I still need to create a switch config like:
config switch_all
option device ‘switch0’
option ports ‘0 1 2 3 4 5 6’

Or can it be done only in the first block?
config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘0’
option ports ‘0 1 2 3 4 5 6’

Side question: can this be done from the Web GUI or only through CLI?

Thank you in advance


#2

Yes, from the openWRT frontend LuCI.


If tagging is not required the VLAN functionality could be turned off. Else probably, if LAN upstream does not require a tag from the client

config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘1’
option ports ‘0 1 2 3 4 5t 6t’