I have a GL.iNet GL-A1300 that I need to use all 3 of the on-board ports (WAN, LAN1, LAN2) as local ports with two VLANs. I have been able to set up just the LAN ports with VLAN support without issue, but I am running in to issues adding the WAN port in the mix.
My current setup is instead of using the eth0 port i'm using the br-lan (which is a bridge of eth0 and eth1). When it was linked to eth0, i was getting DHCP on LAN1 and LAN2, but not on WAN. Linked to br-lan, no ports give DHCP addresses.
Can anyone give me a picture of what the interface/device/switch settings need to be?
Worth upgrading to 23.05(.5)
old style swconfig bridge config cannot be migrated, so save config backup and type back via UI.
now with DSA br-lan has vlan-s that can be tagged/striped to ports more like on other switches.
edit: never mind, it looks like it took over eth1 where that used to be something else.
Well upgrading to 23.05 is making it so my USB ethernet adapter no longer shows up. Kernel module is installed, and cat /sys/kernel/debug/usb/devices shows the driver correctly. It used to show up as LAN3.
yeah, was using a gl build before, but had to load the driver to use it. The naming changed which threw me off. I have all the devices now set now, but am at a loss on how to assign the VLans to the specific ports now.
Current configuration:
LAN1, LAN2, and WAN are all registering on the br-lan (, all getting IP addresses. I have two VLANS created off the br-lan. (br-lan.10 and .11). Both have interfaces created for them that are giving out DHCP. How to do assign the vlans to the ports tagged and untagged? i tried setting VLAN Filtering on br-lan, but the configuration doesn't stick. (LuCi UI says not accepted and i should revert)
Preferably be logged into the router by wifi so you don't lose access if the Ethernet ends up temporarily in an unusable configuration.
On the bridge filtering page, create two VLANs 1 and 2 these are traditionally the lan and wan. Set the wan port to untagged with a star in bridge-VLAN 2. Set the ports you have ordinary lan devices connected to to be untagged in vlan 1. Ports that you are going to "trunk" to another VLAN-aware device should be tagged in all the relevant VLANs, and off in the ones that you don't need to forward onto that cable. Now very important before applying those changes, edit the lan and wan interfaces to use br-lan.1 and br-lan.2 as their Device respectively.
I'm not sure how in Luci to add a USB-Ethernet to one of the bridge-vlans. In CLI you would just list it as an additional Port in the bridge-vlan block. It can be tagged or untagged. Untagged means it should be only in one VLAN.
my setup is unique enough where that's not an issue. my overall setup plan is:
Wireless 1: VLAN.1, administration.
LAN1 VLAN.11 untagged (Dante audio over ethernet only)
LAN2 VLAN.10 untagged (Accessory control)
WAN VLAN.10 untagged, .11 tagged (computer port. Dante needs to be untagged because of software requirement)
Wireless 2: VLAN.10 untagged.
USB ethernet: VLAN.2 Internet Uplink for updates, rarely used. Most of the time won't be plugged in.
The USB adapter doesn't need to be part of any VLAN or bridge then, you can just specify its name directly as the wan Device.
In OpenWrt, the term VLAN is specific to tagged packets inside an Ethernet switch or on an Ethernet cable. Networks that are logically separate from each other are called interfaces. Only when an Interface involves Ethernet then it is attached to a VLAN.
I'm creating new interfaces for the .10 and .11 VLANs, so setting the LAN and WAN interfaces shouldn't be necessary. But as soon as save and load the settings with the VLAN Filtering enabled on br-lan, i lose all LAN connectivity (no DHCP addresses given out anymore.
OK, Here's my current config to try to make sense of this. With these settings, I'm seeing LAN1 and LAN2 get an IP Address from br-lan.1, and WAN is getting the IP address from br-lan.11. Definitely at a loss here..
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
I'm using a laptop with an ethernet adapter set to bind to both untagged and VLAN tagged as ID 10. I verified that the VLAN tagging works on the laptop with my home network, which I have set up in the same way. the VLAN tagged port is not getting an IP address.