Quote from: OPNenthu on February 25, 2025, 07:06:30 PMI don't know if it's any different with recent Asus routers, but at least on my old RT-N66U I required 3rd party firmware in order to do this WLAN & VLAN ID association. Asus did not provide VLAN configuration options in the stock AsusWRT firmware for that generation of routers. If they do now then that is a positive development, but in case not then you'll have to investigate which (if any) 3rd party firmware options you have for the AXE-16000.
Note that Asus have taken active measures in recent years to prevent users from being able to modify their device firmware. Also, flashing carries a risk of bricking the device.
The basic steps I followed:
1. Set a static DHCP reservation by MAC address for the Asus in OPNsense (either Kea or ISC, doesn't matter). This is so that you can access the Asus on an IP address of your choosing after you flash it, otherwise it will try to take 192.168.1.1 and may cause conflicts.
2. Flash FreshTomato (not available for AXE-16000). You will need to connect a PC/laptop directly to the Asus via one of its LAN ports to do this or you will be disconnected mid-process. Do not go over your network/switch when flashing.
3. Set up a trunk port on the switch for the new access point. It at least needs the default/native VLAN (usually VID 1) to be untagged. You can add additional VLANs (tagged) up to however many bridges your Asus has internally. This is usually tied to the number of LAN ports. 4 ports == 4 VLANs, including the native untagged one.
4. Connect the Asus to the trunk port and boot it. Bring up the management UI on whatever address you configured e.g. http://192.168.1.2
5. Go through your firmware's settings. You'll want to:
- Enable Access Point mode, which will disable routing, NAT, etc. This may also disable the WAN port on some models. You won't be using it anymore.
- Disable the built-in DHCP server on the Asus, in case the AP mode setting didn't do that. OPNsense will handle this.
- Disable any IGMP proxy, STP, etc. Your switch will handle these.
- Set the Gateway, NTP, and DNS IPs to the OPNsense IP. These are not given out to clients, they are for your AP itself.
- Configure bridge interface br0 with VLAN ID 1, or whatever your untagged VLAN ID is. Mark this as 'default'. Assign this bridge an IP address on the VLAN.
- Configure bridge interface br1 with another VLAN ID if you need it. Mark this one as 'tagged'. Repeat for however many VLANs/bridges you want to set up.
- Configure a wireless SSID for each of the bridges/VLANs you added.
In the end it looks something like this:
You cannot view this attachment.
You cannot view this attachment.
You don't need to assign any SSID to the Management VLAN if you don't want to (just leave it off) and you can optionally break out some of your SSIDs into separate 2.4 and 5 GHz bands as I've done for my IoT network. I have some legacy devices which only support 2.4 GHz.
Hope this is helpful as a rough guide, though there may be errors in my setup. I won't be offended if the networking gurus here point out any flaws.
Based on the options i have on Merlin firmware, i dont think vlan tagging is possible for AP mode and only offered on router mode. There is a way to use scripts to do exactly what you are saying, but is rather avoid scripts because that could introduce more security issues. Im not sure which open source firmware supports my routers, but i really like the range and speed they offer. I can get 500mbs everywhere in the house with 6e for better reliability in my congested area. Thanks for your detailed response. I'll see if the 3 major 3rd party firmwares support my router. They were pretty expensive, so i don't want to retire them.