Thanks for your patience, below a resume.
Available devices:
1x RB3011 → it will have to do: cAP Manager for 4 VLANs (11,12,13,14) SSIDs + DHCP server for same VLANs
4x hAPac2 → they will have to do: AP with multiple SSIDs + switch for local ethernet connectivity
Connections:
RB3011: from ETH7 to ETH10 for 4x hAPs (need a bridge) + ETH1 for WAN
hAPs: EHT1 form trunk port coming from RB3011, from ETH2 to ETH5 for local ethernet connectivity (first hAP VLAN11, second hAP VLAN11 and so on..)
RB3011
# Bridge creation + VLAN filtering active (PVID default = 1)
/interface bridge
add name="Bridge Management" vlan-filtering=yes
# VLANs creations under Bridge Management (VLAN1 is hidden, right?)
/interface vlan
add interface="Bridge Management" name=VLAN11 vlan-id=11
add interface="Bridge Management" name=VLAN12 vlan-id=12
add interface="Bridge Management" name=VLAN13 vlan-id=13
add interface="Bridge Management" name=VLAN14 vlan-id=14
# Adding 4 ports directly connected to hAPac2s ETH1
/interface bridge port
add bridge="Bridge Management" interface=ETH7
add bridge="Bridge Management" interface=ETH8
add bridge="Bridge Management" interface=ETH9
add bridge="Bridge Management" interface=ETH10
# Manual VLAN tag for Management
/interface bridge vlan
add bridge="Bridge Management" tagged="Bridge Management" vlan-ids=11
add bridge="Bridge Management" tagged="Bridge Management" vlan-ids=12
add bridge="Bridge Management" tagged="Bridge Management" vlan-ids=13
add bridge="Bridge Management" tagged="Bridge Management" vlan-ids=14
# WAN route
/ip route
add distance=1 gateway=192.168.1.1
# IP address on WAN, on Management and on 4x VLANs
/ip address
add address=192.168.1.254/24 interface="ETH1 Internet" network=192.168.1.0
add address=172.16.10.1/24 interface="Bridge Management" network=172.16.10.0
add address=172.16.11.1/24 interface=VLAN11 network=172.16.11.0
add address=172.16.12.1/24 interface=VLAN12 network=172.16.12.0
add address=172.16.13.1/24 interface=VLAN13 network=172.16.13.0
add address=172.16.14.1/24 interface=VLAN14 network=172.16.14.0
# Preparing DHCP pool
/ip pool
add name="POOL Management" ranges=172.16.10.100-172.16.10.200
add name="POOL VLAN11" ranges=172.16.11.100-172.16.11.200
add name="POOL VLAN12" ranges=172.16.12.100-172.16.12.200
add name="POOL VLAN13" ranges=172.16.13.100-172.16.13.200
add name="POOL VLAN14" ranges=172.16.14.100-172.16.14.200
# DHCP server settings for 4x VLANs (please let me know if i can setup a DHCP for Bridge Man on VLAN1)
/ip dhcp-server
add address-pool="POOL Management" disabled=no interface="Bridge Management" lease-time=8h name="DHCP Management"
add address-pool="POOL VLAN11" disabled=no interface=VLAN11 lease-time=8h name="DHCP VLAN11"
add address-pool="POOL VLAN12" disabled=no interface=VLAN12 lease-time=8h name="DHCP VLAN12"
add address-pool="POOL VLAN13" disabled=no interface=VLAN13 lease-time=8h name="DHCP VLAN13"
add address-pool="POOL VLAN14" disabled=no interface=VLAN14 lease-time=8h name="DHCP VLAN14"
# DHCP networks
/ip dhcp-server network
add address=172.16.10.0/24 dns-server=1.1.1.1,8.8.8.8 gateway=172.16.10.1
add address=172.16.11.0/24 dns-server=1.1.1.1,8.8.8.8 gateway=172.16.11.1
add address=172.16.12.0/24 dns-server=1.1.1.1,8.8.8.8 gateway=172.16.12.1
add address=172.16.13.0/24 dns-server=1.1.1.1,8.8.8.8 gateway=172.16.13.1
add address=172.16.14.0/24 dns-server=1.1.1.1,8.8.8.8 gateway=172.16.14.1
# Enable masquerading
/ip firewall filter
add action=masquerade chain=srcnat out-interface="ETH1 Internet"
# -------> Starting to configurare CAP&MAN: now this is working fine!
/caps-man manager
set enabled=yes
# Discovery interface
/caps-man manager interface
set [ find default=yes ] forbid=yes
add disabled=no interface="Bridge Management"
# Setting up datapaths for 4x VLANs
/caps-man datapath
add bridge="Bridge Management" client-to-client-forwarding=yes local-forwarding=no name="Datapath VLAN11" vlan-id=11 vlan-mode=use-tag
add bridge="Bridge Management" client-to-client-forwarding=yes local-forwarding=no name="Datapath VLAN12" vlan-id=12 vlan-mode=use-tag
add bridge="Bridge Management" client-to-client-forwarding=yes local-forwarding=no name="Datapath VLAN13" vlan-id=13 vlan-mode=use-tag
add bridge="Bridge Management" client-to-client-forwarding=yes local-forwarding=no name="Datapath VLAN14" vlan-id=14 vlan-mode=use-tag
# SSIDs security
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm name="Key VLAN11"
add authentication-types=wpa2-psk encryption=aes-ccm name="key VLAN12"
add authentication-types=wpa2-psk encryption=aes-ccm name="Key VLAN14"
add authentication-types=wpa2-psk encryption=aes-ccm name="Key VLAN13"
# And confgiurations, differente for 2,4GHz and 5GHz bands
/caps-man configuration
add channel.band=2ghz-b/g/n channel.control-channel-width=20mhz country=italy datapath="Datapath VLAN11" mode=ap name="Config VLAN11 2.4GHz" security="Key VLAN11" ssid="SSID VLAN11 2.4GHz"
add channel.band=5ghz-a/n/ac country=italy datapath="Datapath VLAN11" mode=ap name="Config VLAN11 5GHz" security="Key VLAN11" ssid="SSID VLAN11 5GHz"
add channel.band=2ghz-b/g/n channel.control-channel-width=20mhz country=italy datapath="Datapath VLAN12" mode=ap name="Config VLAN12 2.4GHz" security="Key VLAN12" ssid="SSID VLAN12 2.4GHz"
add channel.band=5ghz-a/n/ac country=italy datapath="Datapath VLAN12" mode=ap name="Config VLAN12 5GHz" security="Key VLAN12" ssid="SSID VLAN12 5GHz"
add channel.band=2ghz-b/g/n channel.control-channel-width=20mhz country=italy datapath="Datapath VLAN13" mode=ap name="Config VLAN13 2.4GHz" security="Key VLAN13" ssid="SSID VLAN13 2.4GHz"
add channel.band=5ghz-a/n/ac country=italy datapath="Datapath VLAN13" mode=ap name="Config VLAN13 5GHz" security="Key VLAN13" ssid="SSID VLAN13 5GHz"
add channel.band=2ghz-b/g/n channel.control-channel-width=20mhz country=italy datapath="Datapath VLAN14" mode=ap name="Config VLAN14 2.4GHz" security="Key VLAN14" ssid="SSID VLAN14 2.4GHz"
add channel.band=5ghz-a/n/ac country=italy datapath="Datapath VLAN14" mode=ap name="Config VLAN14 5GHz" security="Key VLAN14" ssid="SSID VLAN14 5GHz"
# Setting up provisioning
/caps-man provisioning
add action=create-dynamic-enabled hw-supported-modes=b,g,gn identity-regexp=VLAN11 master-configuration="Config VLAN11 2.4GHz" name-format=prefix-identity name-prefix=2.4G
add action=create-dynamic-enabled hw-supported-modes=a,an,ac identity-regexp=VLAN11 master-configuration="Config VLAN11 5GHz" name-format=prefix-identity name-prefix=5G
add action=create-dynamic-enabled hw-supported-modes=b,g,gn identity-regexp=VLAN12 master-configuration="Config VLAN12 2.4GHz" name-format=prefix-identity name-prefix=2.4G
add action=create-dynamic-enabled hw-supported-modes=a,an,ac identity-regexp=VLAN12 master-configuration="Config VLAN12 5GHz" name-format=prefix-identity name-prefix=5G
add action=create-dynamic-enabled hw-supported-modes=b,g,gn identity-regexp=VLAN13 master-configuration="Config VLAN13 2.4GHz" name-format=prefix-identity name-prefix=2.4G
add action=create-dynamic-enabled hw-supported-modes=a,an,ac identity-regexp=VLAN13 master-configuration="Config VLAN13 5GHz" name-format=prefix-identity name-prefix=5G
add action=create-dynamic-enabled hw-supported-modes=b,g,gn identity-regexp=VLAN14 master-configuration="Config VLAN14 2.4GHz" name-format=prefix-identity name-prefix=2.4G
add action=create-dynamic-enabled hw-supported-modes=a,an,ac identity-regexp=VLAN14 master-configuration="Config VLAN14 5GHz" name-format=prefix-identity name-prefix=5G
First hAPac2 designated for switching VLAN11
# Preparing bridge
/interface bridge
add fast-forward=no name=Bridge1
# Adding all ports to bridge, right?
/interface bridge port
add bridge=Bridge1 hw=no interface=ether1
add bridge=Bridge1 interface=ether2 pvid=11
add bridge=Bridge1 interface=ether3 pvid=11
add bridge=Bridge1 interface=ether4 pvid=11
add bridge=Bridge1 interface=ether5 pvid=11
# Setup IP address for reach this AP by RB3011 Management
/ip address
add address=172.16.10.11/24 interface=Bridge1 network=172.16.10.0
/ip dns
set servers=8.8.8.8
/ip route
add distance=1 gateway=172.16.10.1
# Default wireless conf.,
/interface wireless
# managed by CAPsMAN
# channel: 2412/20-Ce/gn(20dBm), SSID: SSID VLAN11 2.4GHz, CAPsMAN forwarding
set [ find default-name=wlan1 ] antenna-gain=0 band=2ghz-b/g/n country=no_country_set frequency-mode=manual-txpower rx-chains=0 ssid=MikroTik tx-chains=0 wireless-protocol=nv2-nstreme-802.11
# managed by CAPsMAN
# channel: 5560/20-eeCe/ac/DP(24dBm), SSID: SSID VLAN11 5GHz, CAPsMAN, CAPsMAN forwarding
set [ find default-name=wlan2 ] ssid=MikroTik
# Setup discovery
/interface wireless cap
set discovery-interfaces=Bridge1 enabled=yes interfaces=wlan1,wlan2
# ----------> NOW it's time to prepare the switching for VLAN11
# this one is harmless until i change the vlan-mode, as you describe
/interface ethernet switch vlan
# VLAN 1 on management and CPU
add vlan-id=1 ports=ether1,switch1-cpu switch=switch1
# VLAN 11 on others 4 ports
add vlan-id=11 ports=ether1,ether2,ether3,ether4,ether5,switch1-cpu switch=switch1
# Setting up VLAN IDs for ETH2, ETH3, ETH4, ETH5 (not for ETH1 as trunk port)
/interface ethernet switch port
set 1 default-vlan-id=11 vlan-header=always-strip vlan-mode=secure
set 2 default-vlan-id=11 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=11 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=11 vlan-header=always-strip vlan-mode=secure
# Most important and PROBLEMATIC common line!
/interface ethernet switch port set 0 vlan-mode=secure default-vlan-id=1 vlan-header=leave-as-is ; /interface ethernet switch port set 5 vlan-mode=secure default-vlan-id=1 vlan-header=leave-as-is
Now i’m still stopping here.. lost connection from RB3011 and no DHCP for VLAN11 on hAPac2 ETH2-ETH5 .
Thank you very much.