CAPsMAN with Bridge Integration
CAPsMAN with Bridge Integration
Section titled “CAPsMAN with Bridge Integration”Overview
Section titled “Overview”This guide covers integrating CAPsMAN with RouterOS bridge interfaces. Understanding how CAPsMAN interacts with bridges is essential for:
- Complex network topologies with multiple VLANs
- Remote CAP deployments over Layer 3 networks
- Seamless bridging between wireless and wired networks
- Proper traffic forwarding between CAPs and the network
Key Concepts
Section titled “Key Concepts”Bridge in Datapath
Section titled “Bridge in Datapath”When configuring CAPsMAN datapath profiles, you must specify a bridge interface rather than physical ports. This is a common source of confusion—specifying physical ports does not automatically include associated bridges and VLANs.
# Correct: Use bridge interface/caps-man datapath add name=Corporate bridge=corporate-bridge vlan-id=10
# Incorrect: Using physical interface (will not work as expected)/caps-man datapath add name=Corporate bridge=ether1 vlan-id=10Discovery Interface
Section titled “Discovery Interface”The CAP discovery interface must be configured correctly for CAPs to find and register with CAPsMAN. This is especially important in complex topologies where CAPs connect through switches or over non-Ethernet media.
Configuration Scenarios
Section titled “Configuration Scenarios”Scenario 1: Simple Bridge Integration
Section titled “Scenario 1: Simple Bridge Integration”The most common deployment—CAPs connect to a switch, and the CAPsMAN router uses a bridge to combine wireless and wired networks.
# On CAPsMAN Router
# Create bridge for wireless traffic/interface bridgeadd name=bridge-wireless
# Add physical interfaces to bridge/interface bridge portadd bridge=bridge-wireless interface=ether2add bridge=bridge-wireless interface=ether3
# Enable CAPsMAN manager/caps-man manager set enabled=yes
# Create datapath using bridge/caps-man datapath add name=Wireless-DP bridge=bridge-wireless
# Create configuration/caps-man configuration add name=Office-AP \ datapath=Wireless-DP \ security=Corp-Security \ ssid=Office-Network
# Create provisioning rule/caps-man provisioning add action=create-dynamic-enabled \ master-configuration=Office-APOn each CAP:
# On CAP device/interface bridgeadd name=bridge-local
/interface bridge portadd bridge=bridge-local interface=ether1
/interface wifi cap set enabled=yes \ capsman-addresses=10.0.0.1 \ discovery-interface=bridge-local \ interface=wifi1Scenario 2: Bridge with VLAN Filtering
Section titled “Scenario 2: Bridge with VLAN Filtering”When you need to segment wireless traffic into multiple VLANs using bridge VLAN filtering:
# On CAPsMAN Router/interface bridgeadd name=bridge-main vlan-filtering=yes
# Physical ports - Ether1 to switch, Ether2-3 for future CAPs/interface bridge portadd bridge=bridge-main interface=ether1add bridge=bridge-main interface=ether2add bridge=bridge-main interface=ether3
# VLAN filtering - VLAN10 for corporate, VLAN20 for guest/interface bridge vlanadd bridge=bridge-main tagged=bridge-main,ether1 vlan-ids=10add bridge=bridge-main tagged=bridge-main,ether1 vlan-ids=20
# CAPsMAN datapath for Corporate VLAN/caps-man datapath add name=Corp-DP \ bridge=bridge-main \ vlan-id=10 \ vlan-mode=use-tag
# CAPsMAN datapath for Guest VLAN/caps-man datapath add name=Guest-DP \ bridge=bridge-main \ vlan-id=20 \ vlan-mode=use-tag
# Configurations/caps-man configuration add name=Corporate-AP \ datapath=Corp-DP \ security=Corp-Security \ ssid=Corporate-Network
/caps-man configuration add name=Guest-AP \ datapath=Guest-DP \ security=Guest-Security \ ssid=Guest-Network
# Provisioning - create both SSIDs on each CAP/caps-man provisioning add action=create-dynamic-enabled \ master-configuration=Corporate-AP \ slave-configurations=Guest-APScenario 3: Discovery Across Complex Networks
Section titled “Scenario 3: Discovery Across Complex Networks”When CAPs connect through switches or over non-Ethernet media (like powerline adapters), the discovery interface must be a bridge:
# On CAP - using bridge for discovery/interface bridgeadd name=bridge-local
/interface bridge portadd bridge=bridge-local interface=ether1
# CRITICAL: Use bridge interface for discovery, not physical port/interface wifi cap set enabled=yes \ capsman-addresses=10.0.0.1 \ discovery-interface=bridge-local \ interface=wifi1This resolves issues where CAPs fail to register with CAPsMAN when connected through:
- Powerline adapters
- Managed switches with complex VLAN configurations
- Multiple network hops
- Wireless backhaul links
Scenario 4: Local Forwarding with Bridge
Section titled “Scenario 4: Local Forwarding with Bridge”In local forwarding mode, traffic is switched locally by the CAP. The bridge on the CAP must include both the wireless interface and the uplink port:
# On CAP/interface bridgeadd name=bridge-local
# Add wireless and uplink to bridge/interface bridge portadd bridge=bridge-local interface=ether1add bridge=bridge-local interface=wlan1
# Enable CAP mode with local forwarding/interface wifi cap set enabled=yes \ capsman-addresses=10.0.0.1 \ discovery-interface=bridge-local \ interface=wlan1
# On CAPsMAN - datapath with local-forwarding=yes/caps-man datapath add name=Local-FWD \ bridge=bridge-main \ local-forwarding=yes \ vlan-id=10 \ vlan-mode=use-tagCommon Issues and Troubleshooting
Section titled “Common Issues and Troubleshooting”Issue 1: CAP Not Registering with CAPsMAN
Section titled “Issue 1: CAP Not Registering with CAPsMAN”Symptoms: CAP never appears in /caps-man interface print
Solutions:
-
Verify CAPsMAN is enabled:
/caps-man manager print# Ensure enabled=yes -
Check CAP discovery interface:
/interface wifi cap print# Verify discovery-interface is set correctly -
Use bridge interface for discovery:
/interface wifi cap set discovery-interface=bridge-local -
Verify network connectivity:
/ping 10.0.0.1# From CAP, ping CAPsMAN router -
Check firewall on CAPsMAN router:
/ip firewall filter print# Ensure CAPsMAN ports are not blocked (TCP 5246, UDP 5247)
Issue 2: Wireless Clients Connected but No Traffic
Section titled “Issue 2: Wireless Clients Connected but No Traffic”Symptoms: Clients associate but cannot pass traffic
Solutions:
-
Verify datapath bridge is correct:
/caps-man datapath print# Check bridge parameter points to valid bridge -
Check bridge port membership:
/interface bridge port print# Ensure CAP interface is added to bridge -
For VLANs, verify bridge VLAN filtering:
/interface bridge vlan print# Ensure VLAN IDs are configured -
Check PVID on CAP interfaces:
/interface bridge port print# Verify PVID matches expected VLAN
Issue 3: Bridge Not Included in CAPsMAN Traffic
Section titled “Issue 3: Bridge Not Included in CAPsMAN Traffic”Symptoms: Traffic not passing through bridge to wired network
Cause: Physical interface specified instead of bridge in datapath
Solution:
# Wrong - physical interface/caps-man datapath add name=DP1 bridge=ether1
# Correct - bridge interface/caps-man datapath add name=DP1 bridge=bridge-mainIssue 4: CAPsMAN Over Switch
Section titled “Issue 4: CAPsMAN Over Switch”Symptoms: CAPs connect through a switch but cannot reach CAPsMAN
Solution:
-
On CAPsMAN router, allow CAPsMAN on switch-facing interface:
/caps-man manager interfaceadd interface=ether2 -
Ensure switch allows CAPsMAN traffic (UDP 5246/5247)
-
If using VLANs, ensure management VLAN is allowed on trunk
Provisioning with Bridge Interfaces
Section titled “Provisioning with Bridge Interfaces”Use provisioning rules to automatically assign CAP configurations based on identity or other attributes:
# Provision based on CAP identity/caps-man provisioning add \ action=create-dynamic-enabled \ identity-regexp="^Office-" \ master-configuration=Office-AP
/caps-man provisioning add \ action=create-dynamic-enabled \ identity-regexp="^Warehouse-" \ master-configuration=Warehouse-AP
# Provision based on MAC address/caps-man provisioning add \ action=create-static-enabled \ mac-address=AA:BB:CC:DD:EE:FF \ master-configuration=Office-APBest Practices
Section titled “Best Practices”-
Always use bridge interfaces in datapath configuration, never physical ports
-
Use bridge for discovery - Especially important in complex network topologies
-
Enable VLAN filtering on bridge - Required for multi-VLAN deployments
-
Match PVID values - Ensure bridge port PVID matches the datapath VLAN ID
-
Use local forwarding - Default and recommended for most deployments unless centralized control is needed
-
Monitor with CAPsMAN interface - Regular checks with
/caps-man interface print
See Also
Section titled “See Also”- CAPsMAN - Main CAPsMAN documentation
- CAPsMAN with VLANs - VLAN deployment guide
- Bridge VLAN Filtering - Bridge configuration
- Wireless VLAN Trunk - Wireless trunking