OpenWRT - WAN & LAN on Single Network Interface device with VLAN @VanTechCorner
OpenWRT - WAN & LAN on Single Network Interface device with VLAN  @VanTechCorner
Uploaded October 2020 | Updated November 2026, 1 day ago
In this tutorial, we are going to setup OpenWRT with a single ethernet port device. 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. (Please read the below description)

**/ 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 **\

This tutorial should work with any single NIC, 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.

A tagged port is also know as a Trunk-Port and an untagged port is also know as an Access-Port

Video timeframe:

00:00 - Introduction about running OpenWRT on single network port device
00:35 - Network diagram and devices physical connection
04:00 - Configure 802.1Q VLAN for WAN and LAN on TL-SG108E
06:55 - Create network interface with VLAN ID on OpenWRT Luci
07:55 - Check 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!
OpenWRT - WAN & LAN on Single Network Interface device with VLANOpenWRT - File Sharing Server on OpenWRT with Samba4 (SMB)Mercury SE106 2.5GbE Switch Unboxing - Budget-Friendly 2.5 Gigabit NetworkingOpenWRT 21.02 - Configure IPTV / UDP MulticastOpenWRT - Captive Portal - WiFi Splash PageClean Yellowed Unifi AP/ Plastic with Hydrogen PeroxideOpenWRT - Install Netdata - Real Time Monitoring DashboardOpenWRT - Mikrotik RB750Gr3 Performance Test vs. RouterOSTP-Link XZ000-G3 GPON Terminal - Hardware & Web-UI OverviewOpenWRT - NanoPi R2S Overview & Performance Test (NAT, OpenVPN,Wireguard, SQM QoS)OpenWRT - Install Netdata Cloud to monitor your router from the InternetOpenWRT - x86 PC - Install to Hard Drive
Van Tech Corner |

OpenWRT - WAN & LAN on Single Network Interface device with VLAN

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER