OpenWRT – Raspberry Pi Installation – Single Network Port with VLAN



OpenWRT – Raspberry Pi Installation – Single Network Port with VLAN

OpenWRT - Raspberry Pi Installation - Single Network Port with VLAN

In this tutorial, we are going to install OpenWRT on the Raspberry Pi 4. Since there is only one physical network interface, we will setup 2 VLANs for WAN and LAN with a switch that supports VLAN – TP Link TL-SG108E.
This tutorial should work with any single port device, such as x86 PC, Raspberry Pi, Nano Pi and Orange Pi, etc.
Summary about the setup: We will use VLAN 1 for our LAN devices to minimize the configuration. VLAN 10 will be setup for WAN interface with DHCP protocol. On the switch, port 1 is connected to the ISP router with port 1 tagged VLAN 10. Switch port 2 will be connected to the OpenWRT router, it is tagged with VLAN 10 as well. Port 3 to 8 will be used for LAN devices. Port 2 to 8 is untagged with VLAN 1.
If you have any problem with WAN connection, please try to change Port 1 (to the ISP router) on the switch from tagged to untagged .
A tagged port is also know as a Trunk-Port and an untagged port is also know as an Access-Port

If you need Raspberry Pi 4: https://my.cytron.io/p-raspberry-pi-4-model-b-4gb?tracking=vantech

Video timeframe:

00:00 – Introduction about OpenWRT on Raspberry Pi
00:50 – Network diagram and devices physical connection
01:26 – Download firmware & Install OpenWRT on Raspberry Pi 4 B
03:40 – Connecting Raspberry Pi to the smart switch
04:26 – Establish SSH connection to the Pi initial configuration
06:50 – Configure 802.1Q VLAN for WAN and LAN on TL-SG108E
08:40 – Create WAN interface with VLAN ID on OpenWRT
07:55 – Checks and final words

Check out other OpenWRT tutorials on my channel.
If there is anything not clear or there is any question, feel free to leave it in the comment section and we will discuss.
As always, please like, share and subscribe to the channel to support me. Thank you! .