Yes. It's wireless network with so many APs in WDS with bridge mode. But these APs don't do L2 nat but station/CPE at customer end does L2 nat. And there are multiple entries with same mac as there are multiple customers to single CPE which is in bridge mode with L2 nat. There is no fix time as to when the hotspot will hang. Also don't know why it's hanging.
Had script running in early morning to disable and enable hotspot but this method disconnects all users and they have to re-login. This cannot be permanent solution.
drzen -> What script you run every 1 hour ?
I run this:
incongruenceHealt
:local hosts [/ip hotspot ip-binding find bypassed]
:foreach h1 in=$hosts do={
:local mac [/ip hotspot ip-binding get $h1 mac-address]
:local comment [/ip hotspot ip-binding get $h1 comment]
:log info (" MAC: ".$mac." - ".$comment)
:local dhcps [/ip dhcp-server lease find mac-address=$mac]
:foreach m1 in=$dhcps do={
:local server [/ip dhcp-server lease get $m1 server]
:log info (" server: ".$server)
:if ($server = "wifi") do {
:log info ("MAKE STATIC: ".$mac)
/ip dhcp-server lease comment $m1 comment=$comment
/ip dhcp-server lease make-static $m1
}
}
}
But IMHO this isn't a good solution. It's like a reboot or a disable/enable operation.
I'm using Unifi Ubiquiti: about 40 APs with 500-800 users connected. I have the same scenario in 4 campus. I cannot disable and re-enable hotspot because every time users must reauthenticate.
I have made some detailed tests. Two clear and repetables points:
1. Problem appears only with mikrotik and unifi (in my scenario)
2. The problem seems users that have a bypass on hotspot. Sometimes dhcp server lease an ip address to these and try to set the same address to an hotspot host. Without bypass hosts there are no problems.
v.