Turris Omnia – How add new vlans and configuration internal switch

Turris Omnia is one of the best router on the market today. For home purposes it is number one. Today we cover how adding vlans, how configure internal switch, configuration trunk port and we learn what is maximum supported vlans on this perfect router.

For our purposes we must learn about hardware layout and connection of internal components in the internal switch. Look for this picture:

turris omnia internal switch

CPU of Turris(Soc Armada 386) has a 3 internal interfaces. It is eth0, eth1, and eth2 from system layout. Interface eth1 is directly connected with physical wan connector(1000BASE-TX or SFP), interfaces eth0 and eth2 are directly connected to internal switch – to port 5 and 6 exactly. Physicals connectors LAN0 – LAN4 are connected to port0-4 of internal switch.

For Turris Omnia exist one very important limit. Limit factor is that we can have maximum 64 vlans on the internal switch and number 64 is maximum supported vlan ID. Highest ID for vlan is 63.


swconfig command

Log in to turris omnia with ssh. We can show a configuration of internal switch with [swconfig](https://wiki.openwrt.org/doc/techref/swconfig) command. But first we have to obtain a internal switch name. We can do it with command below:


In our example the name of internal switch is switch0

We can see a commands and capabilities about turris internal switch with swconfig dev switch0 help command. On the example below we can see on the first line that maximum supported vlans of internal switch is 64:



How add vlan and how configure internal switch


In our example we want configure vlans 1,2,3,5,11,63,64 on the port LAN4 internal switch. We connect this port to cisco switch later and enable a trunk port on cisco switch with switchport mode trunk command.
Default vlan – untagged vlan will be a vlan ID 1. We show on vlans ID 63 and 64 that maximum supported vlans is 64. Vlan 63 will be created, but vlan 64 no.

Open file /etc/config/network in your favourite text editor and edit with this config:


With this config we configure a switch with name switch0, enable vlan support on this switch and reset device.

And add a vlans from our example:


We setup vlans 2,3,5,11,63 and 64 on LAN4 as tagged – port LAN4 will be a trunk port for this vlans. Port 5 from internal switch is connected directly tu CPU switch. So we have to configure port 5 as tagged for all our vlans. Vlan with ID 1 is default – untagged vlans and we support vlan 1 on all ports as untagged.

In web interface LuCI in network -> switch will be:

Configuration examine


We back to ssh console now. And we show a switch configuration after networking restart.

We can see this result:

We have a vlan id 64 in our network config file, in LuCI web interface we see vlan ID 64 too. But reality is that vlan ID 64 is not created!!!





Pin It on Pinterest