This how-to virtually splits off one of your devices Ethernet ports to be used for non-LAN purposes. E.g. you could provide this Ethernet port for your guests or for a secured extra zone used for an office work computer separated from your LAN zone.
This how-to just demonstrates how to create the additional VLAN switch. The VLAN switch created by this how-to needs to be linked to a dedicated interface and a dedicated firewall zone in subsequent steps.
A typical default LEDE configuration on a home router with 5 LAN ports looks like this, when going to the “switch” menu of LuCI:
VLAN ID | Upstream side: HW switch ↔ eth0 driver | Downstream side: HW switch ↔ physical ports |
||||
CPU (eth0) | LAN 1 | LAN 2 | LAN 3 | LAN 4 | WAN | |
1 | tagged | untagged | untagged | untagged | untagged | off |
2 | tagged | off | off | off | off | untagged |
This default configuration provides 2 VLAN switches by default:
As we can't magically add new physical ports to the existing device, we will simply reassign LAN 1 to make up a new virtual switch:
VLAN ID | Upstream side: HW switch ↔ eth0 driver | Downstream side: HW switch ↔ physical ports |
||||
CPU (eth0) | LAN 1 | LAN 2 | LAN 3 | LAN 4 | WAN | |
1 | tagged | off | untagged | untagged | untagged | off |
2 | tagged | off | off | off | off | untagged |
3 | tagged | untagged | off | off | off | off |
Note the new third line and the change in the intersection of VLAN 1 and LAN 1. This updated configuration means that you will now have 3 VLAN switches:
Notes: