Community discussions

MikroTik App
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 12:49 pm

I've never done a big enough Mikrotik deployment to really merit looking at CAP but I've got a eight AP new project so thought it would be a good time to re-visit it. I got it working in the lab over a year ago and made some notes but it's not working. The equipment is as follows:
  • RouterBoard 2011UIAS - main router where CAPSMAN is running
  • hEX PoE 5 Port Gigabit Router - configured as a switch uplinked to above and used to power/connect the cAP AC
  • cAP AC - access points
Everything works a treat when I manually configure the cAP AC as an access point/switch, i.e. remove all routing and firewall configuration.

I've gone through the configuration of CAPSMAN on the router following my instructions from last time and enabled CAPS on the cAP AC. The problem is at each end, the cAP AC appears for about 30 seconds in CAPSMAN, shows it's been managed by CAPS on the cAP AC and Wi-Fi network appears. Then 30 seconds later, it disappears from CAPSMAN and cAP AC shows it's not managed. Wait a while and it re-appears.

I'm afraid I don't have access to the kit right now to grab screenshots.

Any ideas?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 12:53 pm

... again youtube ...
Last edited by rextended on Fri Sep 24, 2021 12:56 pm, edited 2 times in total.
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

Re: cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 12:55 pm

For what it's worth, this is the video I followed plus my instructions:

Configuration: https://www.youtube.com/watch?v=OGFKfyzHnsM
5GHz: viewtopic.php?t=136476

  1. Add channels (https://en.wikipedia.org/wiki/List_of_WLAN_channels), 20MHz control channel, 2ghz-onlyn:
    • Channel1: 2412
    • Channel6: 2437
    • Channel11: 2467
  2. Add datapath to bridge
  3. Add Security configuration:
    • Authentication: WPA2 PSK
    • Encryption: aes ccm
    • Passphrase: as required
  4. Add configuration:
    • Wireless: mode=ap; SSID=as required;
    • Channel: as required
    • Datapath: as required
    • Security: as required
  5. Add provisioning:
    • Hw supported modes: g for 2.4Ghz and a for 5GHz (not sure about this)
    • Action: create dynamic enabled
    • Name format: identity, prefix AP
  6. CAP manager: enable
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 12:56 pm

Yes, my idea is: you mis/not configure something on some place on some point and on some way...

The riddle game again?

Where are the /export of the configurations of each device?
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

Re: cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 12:56 pm

>I'm afraid I don't have access to the kit right now to grab screenshots.

I specifically apologised for not been able to get those right now...
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 12:58 pm

Do not make screenshot, are completely useless for read all configuration items

The config is... the config, not one image.

OT: (and now I imagine someone in the forum reading this, out of "spite" takes a screenshot of the terminal or something similar...)
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

Re: cAP AC connects & disconnects continually with CAP

Fri Sep 24, 2021 9:14 pm

I think I've figured it out. When I reset the configuration as CAPS Mode, it worked fine but when I tried to enable CAP on existing configuration, it didn't work. So I did the usual trick of comparing the two configurations and my gaze fell upon this key difference. The first is the working CAPS Mode configuration:
/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge interface=ether2
The second is my configuration from when I'd manually set-up AP/switch, I'd added all ports to the bridge:
/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge interface=ether2
add bridge=bridge interface=wlan-2g
add bridge=bridge interface=wlan-5g
This causes the problem I describe. Removing the two wlan from the bridge and all is fine. So having the wireless ports added to the bridge when they are managed by CAPs causing a problem.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5325
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: cAP AC connects & disconnects continually with CAP

Sun Sep 26, 2021 5:19 pm


This causes the problem I describe. Removing the two wlan from the bridge and all is fine. So having the wireless ports added to the bridge when they are managed by CAPs causing a problem.
CAPSMAN adds those interfaces automatically. You're not supposed to add them manually.
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

Re: cAP AC connects & disconnects continually with CAP

Sun Sep 26, 2021 9:29 pm

The problem is that the I'd configured the device manually before it was used with CAP and when you do that, you add all ports to the bridge. So the advise here would be to reset device in CAPs mode to remove any potential conflicting settings.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: cAP AC connects & disconnects continually with CAP

Mon Sep 27, 2021 12:08 am

Meh, one should have to write an exam to use capsman.
It would ensure folks learn how to configure the router without capsman.
and then decide if they really wanted to use capsman.........

It causes nothing but trouble when a non savvy person buys MT wifi and dives right in..........
 
maigonis
Member Candidate
Member Candidate
Posts: 180
Joined: Sat Jul 20, 2019 8:16 pm

Re: cAP AC connects & disconnects continually with CAP

Mon Sep 27, 2021 9:15 am

Can you send us capsman and cap log output? What ROS version are you using on both devices?

That might be L2 issues. Try to add static CAP server on APs.

Example:
/interface wireless cap
set bridge=bridge1 caps-man-addresses=192.168.100.1 enabled=yes interfaces=wlan1,wlan
And send us full capsman and cap configuration.
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

Re: cAP AC connects & disconnects continually with CAP

Tue Sep 28, 2021 12:07 am

It causes nothing but trouble when a non savvy person buys MT wifi and dives right in..........
That's the main reason why RouterOS and Mikrotik isn't more popular than it is. It's not plug and play. As a sometime software developer, I love the complexity but there is a massive learning curve compared to other devices, inc. Cisco. It's power is both it's strength and weakness at the same time.

When I started using Mikrotik kit, I asked whether there was a reference book I could buy. There isn't. Thank goodness for YouTube videos but even then you come across conflicting advice and configurations.

What happened here is perfectly understandable - I had configured the access point manually first and not cleared the configuration, therefore it didn't work. I can see the reason CAPsMAN exists - in a large installation it really helps save time. I installed the system this evening - went well. The ability to change the 2G channel width from 40MHz to 20MHz in one step was great.

Once you've climbed that not inconsiderable learning curve, RouterOS is wonderful but hindsight is a wonderful thing. The manual is a reference and not that easy to navigate. I recently had reason to implement NGINX which for somebody not that familiar with Linux is a daunting task. I came across "The Complete NGINX Cookbook" - a stunningly good free manual. RouterOS needs something like that.
 
User avatar
robmaltsystems
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Fri Jun 21, 2019 12:04 pm

Re: cAP AC connects & disconnects continually with CAP

Tue Sep 28, 2021 10:13 pm

Doh - school boy error... trying to work out why we're only getting ~90Mbps. Looking at channels etc. and then realised you've plugged the hEX PoE into fast ethernet not gigabit uplink ;-)

Who is online

Users browsing this forum: Uqbar and 43 guests