Hi all,
Sorry for reactivating such a old thread and thanks holvoetn and anav. The posted guide is in fact a very good starting point.
I have setup my main router accordingly to the Router/Switch setup and all is now properly separated using VLANs on a single bridge. This is working like a charm.
When it comes to connecting the AP (hap ax lite) I´m still a bit confused I have to say.
I followed the AP instructions in the same referred thread with the small difference that I also added in the physical ports besides the Wifi networks.
Currently I fail to really have the networks forwarded on the AP (no internet access).
Secondly I would like to reach the AP under 192.168.66.3 which I made static for the AP on the main router. This doesn´t work and when I apply the config I´m unable to connect to the AP again causing me to need to perform a reset.
I think it´s not much going wrong here but having a hard time finding the solution.
For you guys this is for sure quite obvious. Any help would therefore be greatly appreciated.
My dummy config based on the provided example looks like this.
# name the device being configured
/system identity set name="wired_AP"
#######################################
# VLAN Overview
#######################################
# 10 = BLUE
# 20 = GREEN
# 30 = RED
# 99 = BASE (MGMT) VLAN
#######################################
# WIFI Setup
#
# Example wireless settings only. Do
# NOT use in production!
#######################################
# Blue SSID
/interface wireless security-profiles set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys wpa2-pre-shared-key="password"
/interface wireless set [ find default-name=1-wifi-2GHz ] ssid=wired frequency=auto mode=ap-bridge disabled=no
# Green SSID
/interface wireless security-profiles add name=GREEN_PROFILE authentication-types=wpa2-psk mode=dynamic-keys wpa2-pre-shared-key="password"
/interface wireless add name=2-wifi-2GHz_guest ssid=wired_guest master-interface=wlan1 security-profile=GREEN_PROFILE disabled=no
# Red SSID
/interface wireless security-profiles add name=RED_PROFILE authentication-types=wpa2-psk mode=dynamic-keys wpa2-pre-shared-key="password"
/interface wireless add name=3-wifi-2GHz_IOT ssid=wiot master-interface=wlan1 security-profile=RED_PROFILE disabled=no
#######################################
# Bridge
#######################################
# create one bridge, set VLAN mode off while we configure
/interface bridge add name=bridge_LAN protocol-mode=none vlan-filtering=no
#######################################
#
# -- Access Ports --
#
#######################################
# ingress behavior
/interface bridge port
# Blue, Green, Red VLAN
add bridge=bridge_LAN interface=1-wifi-2GHz pvid=10
add bridge=bridge_LAN interface=2-wifi-2GHz_guest pvid=20
add bridge=bridge_LAN interface=3-wifi-2GHz_IOT pvid=30
add bridge=bridge_LAN interface=ether2 pvid=10
add bridge=bridge_LAN interface=ether3 pvid=10
add bridge=bridge_LAN interface=ether4 pvid=10
# egress behavior, handled automatically
#######################################
#
# -- Trunk Ports --
#
#######################################
# ingress behavior
/interface bridge port
# Purple Trunk. Leave pvid set to default of 1
add bridge=bridge_LAN interface=ether1
# egress behavior
/interface bridge vlan
# Purple Trunk. L2 switching only, Bridge not needed as tagged member (except BASE_VLAN)
add bridge=bridge_LAN tagged=ether1 vlan-ids=10
add bridge=bridge_LAN tagged=ether1 vlan-ids=20
add bridge=bridge_LAN tagged=ether1 vlan-ids=30
add bridge=bridge_LAN tagged=bridge_LAN,ether1 vlan-ids=99
#######################################
# IP Addressing & Routing
#######################################
# LAN facing AP's Private IP address on a BASE_VLAN
/interface vlan add interface=bridge_LAN name=BASE_VLAN vlan-id=99
/ip address add address=192.168.0.3/24 interface=BASE_VLAN
/ip address add address=192.168.66.3/24 interface=bridge_LAN network=192.168.66.0
# The Router's IP this AP will use
/ip route add distance=1 gateway=192.168.66.1
#######################################
# IP Services
#######################################
# As in the example nothing configured but is this really the way to go?
#######################################
# VLAN Security
#######################################
# Only allow ingress packets without tags on Access Ports
/interface bridge port
set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-untagged-and-priority-tagged [find interface=1-wifi-2GHz]
set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-untagged-and-priority-tagged [find interface=2-wifi-2GHz_guest]
set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-untagged-and-priority-tagged [find interface=3-wifi-2GHz_IOT]
set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-untagged-and-priority-tagged [find interface=ether2]
set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-untagged-and-priority-tagged [find interface=ether3]
set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-untagged-and-priority-tagged [find interface=ether4]
# Only allow ingress packets WITH tags on Trunk Ports
/interface bridge port set bridge=bridge_LAN ingress-filtering=yes frame-types=admit-only-vlan-tagged [find interface=ether1]
#######################################
# MAC Server settings
#######################################
# Ensure only visibility and availability from BASE_VLAN, the MGMT network
/interface list add name=BASE
/interface list member add interface=BASE_VLAN list=BASE
/ip neighbor discovery-settings set discover-interface-list=BASE
/tool mac-server mac-winbox set allowed-interface-list=BASE
/tool mac-server set allowed-interface-list=BASE
#######################################
# Turn on VLAN mode
#######################################
/interface bridge set bridge_LAN vlan-filtering=yes