Requirements are to have two WiFi networks, one with SSID HOME and connected to the HOME VLAN (6), and a guest WiFI network, with SSID HOME-Guest and connected to the Guest VLAN (12).
This example is based on Mikrotik cAP ac
Quickset is a simple configuration wizard page that prepares your router in a few clicks. It is the first screen a user sees when opening the router in a web browser.
Select Quickset Mode: WISP AP
In this mode configure the following settings as follows:
Wireless Protocol: (leave) 802.11 Network Name: HOME Frequency: (leave) auto Band: (leave) 5GHz-A/N/AC Cannel Width: (leave) 20/40/80MHz Ceee Country: portugal Security: WPA2 Encryption: aes ccm WiFi Password: (enter wifi password)
Address Acquisition: static IP address: 192.168.6.228 Netmask: 255.255.255.0 Gateway: 192.168.6.254 DNS Servers: 192.168.6.230
Password: (enter new admin password)
Press the Apply Configuration button. We should have a working WiFi AP on the HOME network. However, the configuration is no complete. The configuration continues using WebFig and Terminal.
Add necessary VLAN interfaces on ethernet interfaces to make them as VLAN trunk or access ports:
add interface=ether1 name=eth2-vlan6 vlan-id=6 add interface=ether1 name=eth1-vlan12 vlan-id=12 add interface=ether2 name=eth2-vlan12 vlan-id=12
Add bridges for each VLAN
add name=bridge-vlan6 add name=bridge-vlan12
The Quickset configuration had set the IP address in ether2 interface, but since we have added bridges for each VLAN it is better (safer) to set the IP on the bridge bridge-vlan6.
In WebFig add Security Profile for the HOME-Guest Wi-Fi network:
Goto Wireless -> Security Profiles and press the Add New to create a new profile. Name: home-guest Mode: (leave) dynamic keys Authentication Types: (leave) WPA PSK and WPA2 PSK Unicast Ciphers: (leave) aes ccm Group Ciphers: (leave) aes ccm WPA Pre-Shared Key: h0m3w1f1 WPA2 Pre-Shared Key: h0m3w1f1 Press OK, to create new security profile.
In WebFig add virtual wireless interfaces for the HOME-Guest Wi-Fi:
Goto Wireless -> WiFi Interfaces and press the Add New and select Virtual to create a new interface. Name: HOME-Guest-2G SSID: HOME-Guest Master Interface: HOME-2G Security Profile: home-guest Press OK, to create new interface. Goto Wireless -> WiFi Interfaces and press the Add New and select Virtual to create a new interface. Name: HOME-Guest-5G SSID: HOME-Guest Master Interface: HOME-5G Security Profile: home-guest Press OK, to create new interface.
Add VLAN interfaces to their corresponding bridges and ethernet interfaces where untagged traffic is necessary
/interface bridge port add bridge=bridge-vlan6 interface=ether1 add bridge=bridge-vlan12 interface=eth1-vlan12 add bridge=bridge-vlan12 interface=HOME-Guest-2G add bridge=bridge-vlan12 interface=HOME-Guest-5G