Tue Aug 06, 2024 2:33 pm
Bridge has to be defined on CAPs, not in CAPsMAN configuration profile, same applies to mode. Also VLAN filtering is incomplete. But hard to tell when you cut just part of the config.
CAPsMAN
/interface wifi datapath
add bridge=bridge client-isolation=yes disabled=no name=wlan_datapath vlan-id=\
27 (not defined later?)
add bridge=bridge client-isolation=yes disabled=no name=wlan_iot_datapath \
vlan-id=21
/interface wifi configuration
add channel=2Ghz datapath=wlan_datapath disabled=no mode=ap name=wlan_2Ghz \
security=wlan_sec ssid=wlan
add channel=5Ghz datapath=wlan_datapath disabled=no mode=ap name=wlan_5Ghz \
security=wlan_sec ssid=wlan
add channel=2Ghz datapath=wlan_iot_datapath disabled=no mode=ap name=\
wlan_iot_2Ghz security=wlan_iot_sec ssid=wlan-IOT
add channel=5Ghz datapath=wlan_iot_datapath disabled=no mode=ap name=\
wlan_iot_5Ghz security=wlan_iot_sec ssid=wlan-IOT
/interface bridge port
add bridge=bridge frame-types=admit-only-vlan-tagged comment=defconf interface=ether2 internal-path-cost=10 path-cost=10
add bridge=bridge frame-types=admit-only-vlan-tagged comment=defconf interface=ether3 internal-path-cost=10 path-cost=10 (??)
add bridge=bridge frame-types=admit-only-vlan-tagged comment=defconf interface=ether4 internal-path-cost=10 path-cost=10
add bridge=bridge frame-types=admit-only-vlan-tagged comment=defconf interface=ether5 internal-path-cost=10 path-cost=10
add bridge=bridge frame-types=admit-only-vlan-tagged comment=defconf interface=sfp1 internal-path-cost=10 path-cost=10 (is sfp1 part of the local network?)
/interface bridge vlan
add bridge=bridge tagged=bridge,ether4,ether5,ether2 vlan-ids=10,11,20,21,22,20
add bridge=bridge tagged=bridge,ether2,ether3,ether4,ether5 vlan-ids=10
add bridge=bridge tagged=bridge,ether2,ether3,ether4,ether5 vlan-ids=11
add bridge=bridge tagged=bridge,ether2,ether3,ether4,ether5 vlan-ids=20
add bridge=bridge tagged=bridge,ether2,ether3,ether4,ether5 vlan-ids=21
add bridge=bridge tagged=bridge,ether2,ether3,ether4,ether5 vlan-ids=22
add bridge=bridge tagged=bridge,ether2,ether3,ether4,ether5 vlan-ids=201
Is ether3 used as trunk? If not, adjust the above...
CAP
there should be something like this: (manager, mode and datapath.bridge have to be set localy)
set [ find default-name=wifi1 ] configuration.manager=capsman .mode=ap \
datapath.bridge=bridge disabled=no
set [ find default-name=wifi2 ] configuration.manager=capsman .mode=ap \
datapath.bridge=bridge disabled=no
/interface bridge port
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether1 internal-path-cost=10 path-cost=10
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether2 internal-path-cost=10 path-cost=10 pvid=11
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether3 internal-path-cost=10 path-cost=10 pvid=11
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether4 internal-path-cost=10 path-cost=10 pvid=11
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether5 internal-path-cost=10 path-cost=10 pvid=11
add bridge=bridge interface=wifi1 (this is done by datapath.bridge)
add bridge=bridge interface=wifi2 (this is done by datapath.bridge)
/interface bridge vlan
add bridge=bridge tagged=ether1,bridge untagged=ether3,ether2,ether4,ether5 vlan-ids=10,11,20,21,201
add bridge=bridge tagged=bridge,ether1 vlan-ids=10
add bridge=bridge tagged=bridge,ether1 untagged=ether3,ether2,ether4,ether5 vlan-ids=11
add bridge=bridge tagged=bridge,ether1 vlan-ids=20
add bridge=bridge tagged=bridge,ether1 vlan-ids=21
add bridge=bridge tagged=bridge,ether1 vlan-ids=22
add bridge=bridge tagged=bridge,ether1 vlan-ids=201