I am running pfSense upstream of an OpenWrt AP. pfSense creates two vLANS and is connected to a managed switch to which the AP is connected (by one cable only).
At the AP I want to broadcast two SSIDs, one for each vLAN.
I would appreciate if someone could guide on on how I would have to configure the AP, ideally through LuCI , so that I can use both vLANS. I only want to use one port on my switch and I think I can configure the switch one properly.
There isn't a guide for handling VLANs on a bridged AP, but I'd recommend that you start here:
From there, we can help you add the VLAN part of it... we need to know which port connects to the managed switch (assuming a multi-port AP), and we need to know the configuration of the switch port as well (what VLAN IDs are being used and what is the tagging configuration on them). Plus, of course, we'll need the basic configuration information:
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 (red circle; this works best in the 'Markdown' composer view in the blue oval):
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
Pro Tip: Be sure to setup access ports (i.e. just one network, untagged + PVID) on your managed switch for each of the networks. You'll use these to verify that the router and switch are working as expected -- if there are issues, you want to troubleshoot those separately relative to the OpenWrt AP.
I'm not exactly sure which logical port (0-2) maps to physical port lan 1, but I'm going to take a guess (I have a 33% chance of getting this right!). I'll assume logical port 0. Also, I don't know what purpose VLAN 10 serves on your network, so I'll just label it guest (you can change this -- the name is arbitrary).
All we need to do is add a new VLAN to the switch, a new bridge, and an unmanaged network interface:
config switch_vlan
option device 'switch0'
option vlan '10'
option ports '0t 6t'
config device
option name 'br-guest'
option type 'bridge'
list ports 'eth0.10'
config interface 'guest'
option device 'br-guest'
option proto 'none'
Now, you can create a new SSID in the wifi configuration and associate it with network guest. That should be it. Be sure to restart the router to make sure all the changes are loaded.