I've tried to piece this together from the handful of existing forum topics and the docs, but every situation seems to be just different enough to leave me baffled.
I just flashed OpenWrt 23.05.2 stable to this device. I intend to use it with a FTTH connection in place of the ISP's provided router. The ISP requires the router to tag VLAN 1000 on the WAN. I've done this before with a different off-the-shelf router, where tagging a VLAN on the WAN is very straightforward in the OEM GUI.
What I don't understand is how I need to configure the devices/interfaces to use VLANs on the WAN in current OpenWrt with this router.
A second question is how this works with a WireGuard VPN and/or ZeroTier, which set up their own "adapters" that are distinct from the WAN.
Here's the default configuration of the device out of the box:
config interface 'wan'
option device 'wan.1000'
option proto 'dhcp'
config interface 'wan6'
option device 'wan.1000'
option proto 'dhcpv6'
These don't have the concept of VLANs....You set up WG or ZT the same way you would on any other OpenWrt config. not sure if that's answering your question though -- please elaborate if there is more to your question.
That VLAN option doesn't appear to be exposed in LuCI? Editing the config will be fine for such a simple change, I'm just trying to make sure that I'm not missing some obvious way to set this via LuCI.
With respect to WG and ZT, I guess my confusion comes from how they interact with the WAN. Obviously there's an underlying way that they communicate out via the WAN, but that's "hidden", so I didn't know if tagging the VLAN on the WAN would automatically affect them as well or not. If you're saying that having the WAN tagged is all I need to do, and they will work as usual with no change, that's absolutely perfect.
A big problem I will have here is that I won't be able to properly test the WAN tagging while I work on the rest of the setup. It's for a friend's house and I'll need to have everything working before going there to install, and then hope that I can enable the WAN tagging at that time and everything still "just works". I know that's a terrible plan, but it is what it is.
It's possible with luci, but most of us who are more familiar with it tend to edit the config files directly (or use uci on cli), it's just quicker - and easier to explain to others.
for some overview (although that's more complex than you need it to be right now).
I'd have to check on a DSA device with LuCI... I haven't tried it that way, so offhand I don't know.
They indirectly interact with the wan as a (logical) network interface at L3, not a physical ethernet interface (even when VLAN tagged) at L2. Really, they're interacting with the routing engine which is what handles the inter-network routing. The other interfaces don't need to know anything about each other -- it is the routing engine and firewall that governs all of this.
I've read the DSA Mini-Tutorial in trying to figure out how to set up tagged VLANs for local networks, and it's fairly helpful in that respect. Regarding my questions here, the problem is what interface or device is used to apply the VLAN configuration when it's on the WAN. But one of the screenshots in that PR thread got me to look again at the "VLAN 802.1q" device type and now I realize that I can make one of those with "switch port: wan" as the "base device" and give it the VLAN ID "1000". Then... I would change the "wan" and "wan6" interfaces to use this device, right? And nothing else would need to be changed?
Does setting that VLAN ID in this way make it "tagged"? I'm still confused about that subject. It makes sense for local VLANs on a bridge, where I can look at the table of tagged, untagged, and excluded, but in this situation what's actually going on isn't clear to me.
Thanks for the quick responses from both of you, by the way.