Starting with a "Bare" OpenWRT install Luci will improperly configure the VLAN setup in first instance, and what it does will almost-always lock you out of the box entirely.
Take the following configuration required:
- AP only; you have your own router off the Internet, and it does VLANs and handles DHCP for IPv4; v6 is SLACC on the client side (the router gets a /56, for example, and partitions it out to the interfaces including the VLANs.)
- Two VLANs, the default (untagged) and a second that is tagged, which is used for "DMZ" type things (e.g. Guest access, things on your network that can get outside but can't see your interior services, etc.) Fairly simple and expected "home" type of environment.
So you go into Luci and try to set this up but it screws up the bridges that are required to work. Specifically, this is what you need in the /etc/network file, more or less:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd21:4eb4:bdec::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config bridge-vlan
option device 'br-lan'
option vlan '1'
list ports 'eth0:u*'
config interface 'lan'
option device 'br-lan.1'
option proto 'static'
option ipaddr '192.168.10.253'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '192.168.10.200'
option delegate '0'
list dns '192.168.10.200'
list dns '192.168.10.100'
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'eth0:t'
config device
option name 'br-lan.3'
option type '8021q'
option ifname 'br-lan'
option vid '3'
config interface 'Guest'
option proto 'none'
option device 'br-lan.3'
list dns '192.168.4.200'
option delegate '0'
You then can assign the "Guest" network to the proper Wifi interfaces and all is good, except Luci will screw that /etc/network file up. Specifically it does not properly set up both bridges and the requisite two devices when starting from zero.
Once you fix the /etc/network file by hand before using Luci to do the rest (and then reboot of course) all is well in the future (assuming you don't need another VLAN; if you do then you again need to edit it) when it comes to setting up and maintaining the WiFi side with Luci, but that original config has been broken all the way back to when I figure started using Luci.
IMHO this merits some attention as it should be quite easy to correct.