OpenWrt with default LAN (VLAN1) on "WLAN1" works fine.
The aim is, to get a 2nd WLAN2 with a tagged VLAN2 on OpenWrt. Nearby everything works fine, VLAN2 Interface (br-lan.2) gets DHCP IP from tagged VLAN2, but at the end, WLAN2 devices could not connect, don't get DHCP IPs. Tested with 2 diff. setups, OpnSense Router/Firewall with VLAN2, diff. Switches tested, mang. Ubiquiti, mang. Netgear, Firewall <-> Port trunk, tagged VLAN2, and VLAN2 "Port 4" tagged, later 3th WLAN3 with tagged VLAN3 should be added too.
OpenWrt devices tested: TP-Link Archer C6 v3 with OpenWrt 24.10.3 (also tested 22.03.7, 23.05.6), also TL-WR1043N ND v3 with OpenWrt 24.10.3 tested.
WLAN Clients:
Android smartphones: WLAN2 no IP from DHCP
PC clients, MX Linux, Win11: WLAN2 no IP from DHCP
Any idea, how to solve, to get WLAN2 DHCP IPs from tagged VLAN2? and later 3th interface WLAN3 with VLAN3?
If you have sufficiently old device vlan2 would be pre-assigned to WAN
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, VPN keys, MAC addresses and any public IP addresses you may have:
What port on the C6v3 is used to connect to the EdgeSwitch?
Delete this:
Create bridge VLANs... I'm going to assume that port lan1 is used for the uplink and that it connects to port 8 on the EdgeSwitch.
config bridge-vlan
option device 'br-lan'
option vlan '1'
list ports 'lan1:u*'
list ports 'lan2:u*'
config bridge-vlan
option device 'br-lan'
option vlan '2'
list ports 'lan1:t'
list ports 'lan3:u*'
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'lan1:t'
list ports 'lan4:u*'
The above will setup such that you have the uplink on port 1, VLAN 1 on port 2, VLAN 2 on port 3, and VLAN 3 on port 4 (this is so that you can test the trunk functionality).
Now, you also need to edit the lan to use br-lan.1:
config interface 'lan'
option device 'br-lan.1'
option proto 'dhcp'
And the VLAN2 (and VLAN3) interfaces will use br-lan.x accordingly, but they will be unmanaged:
config interface 'VLAN2'
option proto 'none'
option device 'br-lan.2'
config interface 'VLAN3'
option proto 'none'
option device 'br-lan.3'
Yes, port 8 trunk on EdgeSwitch, to lan1 port OpenWrt. Do we need edit the configs in OpenWrt, could GUI not handle this automatically? I will try. Thank you!
You can use LuCI (web interface) for these things, but it's a bit tricky because you can have issues with respect to the sequencing of the changes and automatic rollbacks. I prefer directly editing the config files. But either way works.
Delete this (you have other lan interface in the file):
Everything else looks fine.
WLAN 2, I assume, is VLAN 2?
Try connecting via ethernet to port lan3 -- if that works, the problem is on the OpenWrt side (likely an error in the wireless file). If it doesn't work, that suggests a problem upstream (switch and/or router).