I'm running OpenWRT on an Archer C7 V2 as an AP (with OpnSense as my router/firewall). On my 2.4G band, I have 2 SSIDs: one for regular LAN without a VLAN, and one for my IoT devices with a VLAN tag (to keep my IoT devices separate from the rest of the network). I have set up the switch where both eth0 and LAN1 (the feed to my OpnSense box) have a VLAN tag of 50.
When I ran 18.06.4, my setup worked just fine: devices looking to my IoT SSID were on the separate VLAN. However, when I use the new 19.07-RC1 or even build my own firmware from Master, I'm noticing that the IoT devices are starting to have IP addresses on my regular LAN, even though the devices say they're connected to my IoT SSID.
I've even done a factory reset, reinstalled and set up again from scratch but it seemed to continue to be an issue. For now, I've forced my IoT devices to have a Static IP address to stay on the separate VLAN and it seems to be working.
Is anyone else running into issues with VLANs with the new 19.07 release?
To be honest, I haven't touched the VLAN setup on the switch other than to add the one VLAN. If I were to tag my regular LAN traffic, would I just need to add a tag to each of the ports as well as eth0 and eth1?
I think I get it. By tagging ports 0 and 2 with VLAN1, we're saying the main 2.4G will be tagged with VLAN 1 tag and the tagged VLAN traffic will flow to my OpnSense box because port 2 is the connection between OpenWRT and OpnSense. Is that correct?.
Just trying to understand why we need a tag on port 2 as well. Port 2 is my first switch port which feeds back into OpnSense. I'm guessing tagging port 2 is to tell OpenWRT to tag the traffic to the box with VLAN1? That way, I can set my LAN to VLAN1 and separate it from my IoT network (VLAN50).
What is the purpose of VLAN 2 for the other radio? Do I need to set up a VLAN tag for that radio as well? Only complication I have is that Google Fiber wants WAN traffic tagged as VLAN2 and I don't want any issues to occur.
Thanks for your help and for putting up with my noob questions.
The IoT network bridge (now "VLAN_50", but it is conventional and highly recommended to use only lowercase names) should be configured with proto none since it is a dumb bridge from ethernet to wifi.
Right now VLAN 2 is '6t 1' which means it is eth0.2 (port 6 of the switch is eth0 on the CPU) but untagged to the fiber ONT modem on Ethernet cable 1.
It's to avoid tagged an untagged packets on the same port, and might solve your problems. (Though I don't have any problems with using tagged and untagged packets on the same port on my tl-wdr4300 with ath79 anyway.)
It's already using VLAN 1 since it's bridged with your lan.