Hi,
I’m running a my home network with a few APs managed via CAPsMAN so far. I have my main network connected to my primary wifi but also two other vAP wifi networks which should be separated from my internal network (guest and iot).
For that I’ve been using CAPsMAN forwarding to manage filtering and routing on my central router.
Now I’ve got my first AX device using wifiwave2 and since a mixed operation is currently not supported as well as CAPsMAN forwarding is gone I want to separate those additional wifi networks using VLANs and I’m always confused about VLAN in general.
I mainly looked at those two documents
https://help.mikrotik.com/docs/display/ROS/WifiWave2
https://help.mikrotik.com/docs/display/ROS/CAPsMAN+with+VLANs
to get an idea how that should be done.
So what I currently have is:
1 name="eg-2g-guest" mac-address=4A:A9:8A:EA:C9:D9 arp-timeout=auto master-interface=eg-2g
configuration.mode=ap .ssid="MikroTik-EAC9D9's Guests" .country=Germany
security.authentication-types=wpa2-psk,wpa3-psk .encryption="" .passphrase="*******"
datapath.bridge=bridge .client-isolation=yes .vlan-id=20
channel.width=20mhz
Where the bridge is just the default bridge on the ax3 and vlan-filtering for it is “off” as described in the manual “A bridge vlan-filtering can be disabled if additional VLAN managing and controlling is not needed.”
So the bridge is
0 I ether2 bridge yes 1 0x80 10 10 none
1 I ether3 bridge yes 1 0x80 10 10 none
2 I ether4 bridge yes 1 0x80 10 10 none
3 I ether5 bridge yes 1 0x80 10 10 none
4 I eg-5g bridge 1 0x80 10 10 none
5 I eg-2g bridge 1 0x80 10 10 none
6 I eg-2g-guest bridge 20 0x80 10 10 none
7 ether1 bridge yes 1 0x80 10 10 none
From that setup I would assume that the vlan tags are persisted everywhere within the bridge and the associated interfaces (ether1 is where the central router is connected (via another simple switch).
On the central router side I tried to apply the same logic as I’m already using for another vlan connection:
[
admin@MikroTik] > /interface/vlan/print
Flags: R - RUNNING
Columns: NAME, MTU, ARP, VLAN-ID, INTERFACE
# NAME MTU ARP VLAN-ID INTERFACE
0 R vlan-ffgw 1500 enabled 11 ether3-Office
1 R vlan-freifunk 1500 enabled 10 ether3-Office
2 R vlan-guest 1500 enabled 20 ether3-Office
Where ether3 is the interface where the AP is connected to.
vlan-guest is then assigned as port to the bridge-guest (which is what I already used for the CAPsMAN forwarded traffic):
20 vlan-guest bridge-guest 20 0x80 10 10 none
Now the thing is: It does not work. When I connect a client to eg-2g-guest it is not established. My assumption is because it does not receive any DHCP answer from bridge-guest but maybe it could also be something else but not exactly sure how to find out. I’m pretty sure it’s related to the setup above which is probably wrong but I’m running out of idea what it might be.
Any pointers?