Table of Contents

Splitting VLANs

Introduction

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.

Web interface instructions

Default configuration

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:

  1. VLAN ID 1: the VLAN switch for the 4 ports (that are mapped to the LAN interface)
  2. VLAN ID 2: the VLAN switch mapped to the 1 WAN port

Modified configuration

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:

  1. VLAN ID 1: the VLAN switch for the remaining 3 ports (that are still mapped to the LAN interface)
  2. VLAN ID 2: the VLAN switch mapped to the 1 WAN port
  3. VLAN ID 3: the newly created VLAN switch for the 1 port LAN 1. This port is currently without function. You first have to assign it to an interface (in the “physical settings” tab of an existing or newly created interface)

Notes: