Community discussions

MikroTik App
 
Niffchen
newbie
Topic Author
Posts: 38
Joined: Thu Mar 22, 2018 1:36 pm

CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN

Sat Aug 04, 2018 9:32 am

Hello,

I am using a hEX as CAPsMAN und 2 hAPs + 1wAP as access points controlled by the CAPsMAN. The wireless lan exists, I can connect everytime I need to but sometimes I have very poor transfer rates via wireless lan. One hour later everything seems to be perfect again and so on.
I analyzed different things during the last weeks. I have no errors or drops on any interfaces, the ROS is the latest version 4.62.6 on every device.
I recognized that my caps are reconnecting in different intervals. The interval is not a specific time I can reproduce. Sometimes it takes some minutes, some hours or a CAP is re-connecting after one day or more. The intervals are all different and seem more random on all CAPs. The CAPs don't re-connect all at the same time. Every CAP seems to re-connect as he likes to.

Today I recognized some timeouts during the re-connect of a CAP to the CAPsMAN in the log of the CAP:
aug/03 17:20:20 system,error,critical router was rebooted without proper shutdown 
aug/03 17:20:31 interface,info ether1 link up (speed 1G, full duplex) 
aug/03 17:20:34 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
aug/03 17:20:35 caps,info CAP connected to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
aug/03 17:20:35 caps,info CAP joined MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
05:54:39 system,info cloud change time Aug/03/2018-17:23:56 => Aug/04/2018-05:54:39 
06:45:39 caps,info CAP sent max keepalives without response 
06:45:39 caps,info CAP disconnected from MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:46:12 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:46:32 caps,info CAP connect to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) failed: timeout 
06:46:32 caps,info CAP failed to join MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:46:32 caps,info CAP selected CAPsMAN MikroTik-Keller2 (::ffff:192.168.5.1:5246) 
06:46:52 caps,info CAP connect to MikroTik-Keller2 (::ffff:192.168.5.1:5246) failed: timeout 
06:46:52 caps,info CAP failed to join MikroTik-Keller2 (::ffff:192.168.5.1:5246) 
06:47:00 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:47:02 caps,info CAP connected to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:47:02 caps,info CAP joined MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:49:54 system,info,account user admin logged in from 192.168.5.55 via ssh 
06:59:10 caps,info CAP sent max keepalives without response 
06:59:10 caps,info CAP disconnected from MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:13 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:14 caps,info CAP connected to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:14 caps,info CAP joined MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:32 caps,info CAP sent max keepalives without response 
06:59:32 caps,info CAP disconnected from MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:34 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:37 caps,info CAP connected to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:59:37 caps,info CAP joined MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:07:55 caps,info CAP sent max keepalives without response 
07:07:55 caps,info CAP disconnected from MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:07:58 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:08:02 caps,info CAP connected to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:08:02 caps,info CAP joined MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:21:40 caps,info CAP sent max keepalives without response 
07:21:40 caps,info CAP disconnected from MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:21:43 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:22:03 caps,info CAP connect to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) failed: timeout 
07:22:03 caps,info CAP failed to join MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:22:03 caps,info CAP selected CAPsMAN MikroTik-Keller2 (::ffff:192.168.5.1:5246) 
07:22:23 caps,info CAP connect to MikroTik-Keller2 (::ffff:192.168.5.1:5246) failed: timeout 
07:22:23 caps,info CAP failed to join MikroTik-Keller2 (::ffff:192.168.5.1:5246) 
07:22:31 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:22:51 caps,info CAP connect to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) failed: timeout 
07:22:51 caps,info CAP failed to join MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:22:51 caps,info CAP selected CAPsMAN MikroTik-Keller2 (::ffff:192.168.5.1:5246) 
07:23:11 caps,info CAP connect to MikroTik-Keller2 (::ffff:192.168.5.1:5246) failed: timeout 
07:23:11 caps,info CAP failed to join MikroTik-Keller2 (::ffff:192.168.5.1:5246) 
07:23:18 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:23:21 caps,info CAP connected to MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
07:23:21 caps,info CAP joined MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 


I also tried to isolate the problem. I disconnected everything from the lan instead of the hEX and one hAP, the problem resides. I also disconnected the dsl modem of my provider for a specific time and the two left devices showed the same phenomenon.
If I disable RSTP and set the protocol to "none" the CAPs don't re-connect anymore and everything seems to be ok. The transfer-rates are good everytime.
Every CAP can ping the CAPsMAN, default Gateway is set correctly, DNS servers are set, the connection for every CAP to the internet ist perfect. There is no problem reaching any device on the network. The mentioned problem exists If we are surfing on the internet or if we are streaming and the CAPs are also re-connecting if no one is at home.
I don't really know what else to analyze. The are no hints where to look at next.
Do you have any suggestions? If you need some more informations about my configuration please ask for it.

Regards,
Jens
 
Niffchen
newbie
Topic Author
Posts: 38
Joined: Thu Mar 22, 2018 1:36 pm

Re: CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN  [SOLVED]

Fri Aug 10, 2018 8:37 pm

I solved the problem. The CAPsMAN needed to be restarted by hard powering off and on again.
After this procedure everything is ok and my CPAS don't disconnect any more with RSTP activated.
 
bobbyyang
just joined
Posts: 1
Joined: Tue Jan 21, 2020 1:42 pm

Re: CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN

Sat Apr 18, 2020 5:10 pm

The problem I encountered is similar to yours, my solution is cap--bridge--Ports--remove wlan1
Last edited by bobbyyang on Sat Apr 18, 2020 5:14 pm, edited 2 times in total.
 
Shy
Member Candidate
Member Candidate
Posts: 243
Joined: Sat Jun 13, 2020 8:17 am

Re: CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN

Thu Aug 13, 2020 11:54 am

Can you elaborate exacly what you did?
on hAP ac2 bridge the setting is the following and the wlan is assigned to that bridge
Image
Image
You do not have the required permissions to view the files attached to this post.
 
fmcfmc
just joined
Posts: 2
Joined: Thu Apr 03, 2014 11:35 am

Re: CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN

Wed Oct 28, 2020 8:51 am

06:45:39 caps,info CAP sent max keepalives without response 
06:45:39 caps,info CAP disconnected from MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
06:46:12 caps,info CAP selected CAPsMAN MikroTik-Keller2 (CC:2D:E0:68:3D:3E/13/0) 
I had the same problem till yesterday. I had no wlan in bridge, I even had not any bridge. I fixed it changing two things in each CAP:
/interface wireless cap set caps-man-addresses=x.x.x.x
/interface wireless cap set discovery-interfaces=""
x.x.x.x is my CapsMAN's IP

It change the connection between CAP and CapsMAN from L2 to L3. You will see it in Winbox Capsman->Remote CAP. In the first column should be an IP address not MAC address. No more "CAP sent max keepalives without response" and it is stable. I hope it help.
 
danielcada
just joined
Posts: 3
Joined: Sat Jan 27, 2018 10:02 am

Re: CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN

Tue Mar 02, 2021 9:48 pm

I also had a similar problem with the message in LOG: "CAP sent max keepalives without response." When running CAP and CAPsMAN on the same device, in my case on RB4011, you have to open packets from CAP to CAPsMAN on the firewall!!!

/ip firewall filter add action=accept chain=input comment="CAP to CAPsMAN" dst-port=5246,5247 protocol=udp src-address=192.168.0.1 /IP address of CAP/
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: CAPsMAN - CAPs are re-connecting in different intervals and timeout during re-connect with CAPsMAN

Tue Mar 02, 2021 11:35 pm

This is one of default firewall filter rules, present in SOHO line in 6.47.9:
/ip firewall filter 
add chain=input action=accept dst-address=127.0.0.1 comment="defconf: accept to local loopback (for CAPsMAN)"

Who is online

Users browsing this forum: Bing [Bot], grusu and 38 guests