I played with CAPsMAN with local forwarding mode with below simple topology. CAP's uplink is ether1 to the Router ether1. On the Router (CAPsMAN), I created 2 vlans on the bridge1. But the CAP cann't discover the CAPsMAN. I use hAP ax2 as the router and mAP as the CAP.
Appreciate if anyone can point what went wrong with the config.
Config on CAP:
Code: Select all
# model = RBmAP2nD
/interface bridge
add admin-mac=48:8F:5A:F2:C0:6E auto-mac=no comment=defconf \
ingress-filtering=no name=bridgeLocal protocol-mode=none \
vlan-filtering=yes
/interface bridge port
add bridge=bridgeLocal comment=defconf interface=ether1
add bridge=bridgeLocal comment=defconf interface=ether2
/interface bridge vlan
add bridge=bridgeLocal tagged=ether1 vlan-ids=10
add bridge=bridgeLocal tagged=ether1 vlan-ids=20
/interface wireless cap
#
set bridge=bridgeLocal discovery-interfaces=bridgeLocal enabled=yes \
interfaces=wlan1
Config on Router:
Code: Select all
# model = C52iG-5HaxD2HaxD
/caps-man configuration
add country=latvia datapath.local-forwarding=yes .vlan-id=10 .vlan-mode=\
use-tag name=Config_WORK security.authentication-types=wpa-psk,wpa2-psk \
ssid=WiFi_WORK
add country=latvia datapath.local-forwarding=yes .vlan-id=20 .vlan-mode=\
use-tag name=Config_GUEST security.authentication-types=wpa-psk,wpa2-psk \
ssid=WiFi_GUEST
/interface bridge
add ingress-filtering=no name=bridge1 protocol-mode=none vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=ether1-trunk
set [ find default-name=ether5 ] name=ether5-WAN
/interface vlan
add interface=bridge1 name=VLAN10 vlan-id=10
add interface=bridge1 name=VLAN20 vlan-id=20
/caps-man manager
set enabled=yes
/caps-man manager interface
set [ find default=yes ] forbid=yes
add disabled=no interface=ether1-trunk
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=Config_WORK \
slave-configurations=Config_GUEST
/interface bridge port
add bridge=bridge1 interface=ether1-trunk
/interface bridge vlan
add bridge=bridge1 tagged=ether1-trunk,bridge1 vlan-ids=10
add bridge=bridge1 tagged=ether1-trunk,bridge1 vlan-ids=20
/ip address
add address=192.168.10.1/24 interface=VLAN10 network=192.168.10.0
add address=192.168.20.1/24 interface=VLAN20 network=192.168.20.0
/ip pool
add name=dhcp_pool10 ranges=192.168.10.2-192.168.10.254
add name=dhcp_pool20 ranges=192.168.20.2-192.168.20.254
/ip dhcp-server
add address-pool=dhcp_pool10 interface=VLAN10 name=dhcp10
add address-pool=dhcp_pool20 interface=VLAN20 name=dhcp20
/ip dhcp-client
add interface=ether5-WAN
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=8.8.8.8 gateway=192.168.10.1
add address=192.168.20.0/24 dns-server=8.8.8.8 gateway=192.168.20.1
/ip dns
set allow-remote-requests=yes
/ip firewall nat
add action=masquerade chain=srcnat
/system clock
set time-zone-name=America/Los_Angeles
/system identity
set name=Router
/system routerboard settings
set auto-upgrade=yes
/tool romon
set enabled=yes
Thank you in advance !