Community discussions

MikroTik App
 
vasilii
just joined
Topic Author
Posts: 12
Joined: Fri May 14, 2021 12:41 pm

multiple hosts with same mac

Thu Jul 28, 2022 11:18 am

hello
I manage many hotspot installations with different network configurations and all of them has the same issue. sometime(quite often) hotspot users need to relogin as they were logged out.
in logs it sounds: "remove mac cookie: multiple hosts with same mac".
As I mentioned before this I also get warning: "warning: Detected conflict by ARP response for ..."
below is the log of such issue where hotspot user were logged out and also was appeared in hotspot/hosts as Dynamic(7A:58:35:FE:B0:52 and it was logged in earlier as myemail@mail.ru):
Jul 25 00:12:20 62.2.179.18 dhcp,debug dhcp1 received discover id 501857898 from 0.0.0.0 '1:7a:58:35:fe:b0:52'
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet ciaddr = 0.0.0.0
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet chaddr = 7A:58:35:FE:B0:52
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet Msg-Type = discover
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet Parameter-List = Subnet-Mask,Classless-Route,Router,Domain-Server,Domain-Name,Unknown(108),Captive-Portal,Domain-Search,Auto-Proxy-Config
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet Max-DHCP-Message-Size = 1500
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet Client-Id = 01-7A-58-35-FE-B0-52
Jul 25 00:12:20 62.2.179.18 dhcp,debug,packet Address-Time = 7776000
Jul 25 00:12:20 62.2.179.18 dhcp,debug lease not found, new lease, acquire
Jul 25 00:12:20 62.2.179.18 dhcp,debug ping 10.50.3.66
Jul 25 00:12:21 62.2.179.18 hotspot,debug hotspot: serverHS: new host detected 7A:58:35:FE:B0:52/10.50.3.66 by ARP reply to 10.50.0.1
Jul 25 00:12:21 62.2.179.18 dhcp,warning warning: Detected conflict by ARP response for 10.50.3.66 from 7A:58:35:FE:B0:52
Jul 25 00:12:21 62.2.179.18 dhcp,warning Detected conflict by ARP response for 10.50.3.66 from 7A:58:35:FE:B0:52
Jul 25 00:12:21 62.2.179.18 dhcp,debug ping done 10.50.3.66
Jul 25 00:12:21 62.2.179.18 hotspot,info,debug info: myemail@mail.ru (10.50.2.102): trying to log in by mac-cookie
Jul 25 00:12:21 62.2.179.18 hotspot,info,debug hotspot: myemail@mail.ru (10.50.2.102): trying to log in by mac-cookie
Jul 25 00:12:21 62.2.179.18 hotspot,debug hotspot: myemail@mail.ru (10.50.2.102): using profile <planCopy_guest_free_user_myemail@mail.ru>
Jul 25 00:12:21 62.2.179.18 hotspot,debug hotspot: myemail@mail.ru (10.50.2.102): adding ip->user binding
Jul 25 00:12:21 62.2.179.18 hotspot,debug hotspot: serverHS: dynamic host 7A:58:35:FE:B0:52/10.50.3.66 added, ip 10.50.2.102
Jul 25 00:12:21 62.2.179.18 hotspot,account,info,debug info: myemail@mail.ru (10.50.2.102): logged in
Jul 25 00:12:21 62.2.179.18 hotspot,account,info,debug hotspot: myemail@mail.ru (10.50.2.102): logged in
Jul 25 00:12:21 62.2.179.18 hotspot,debug hotspot: myemail@mail.ru (7A:58:35:FE:B0:52): replace mac cookie: user logged in
Jul 25 00:12:22 62.2.179.18 dhcp,debug dhcp1 received discover id 501857898 from 0.0.0.0 '1:7a:58:35:fe:b0:52'
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet secs = 2
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet ciaddr = 0.0.0.0
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet chaddr = 7A:58:35:FE:B0:52
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet Msg-Type = discover
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet Parameter-List = Subnet-Mask,Classless-Route,Router,Domain-Server,Domain-Name,Unknown(108),Captive-Portal,Domain-Search,Auto-Proxy-Config
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet Max-DHCP-Message-Size = 1500
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet Client-Id = 01-7A-58-35-FE-B0-52
Jul 25 00:12:22 62.2.179.18 dhcp,debug,packet Address-Time = 7776000
Jul 25 00:12:22 62.2.179.18 dhcp,debug lease not found, new lease, acquire
Jul 25 00:12:22 62.2.179.18 dhcp,debug ping 10.50.3.180
Jul 25 00:12:23 62.2.179.18 dhcp,debug ping done 10.50.3.180
Jul 25 00:12:23 62.2.179.18 dhcp,debug dhcp1 sending offer with id 501857898 to 10.50.3.180
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet ciaddr = 0.0.0.0
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet yiaddr = 10.50.3.180
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet siaddr = 10.50.0.1
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet chaddr = 7A:58:35:FE:B0:52
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Msg-Type = offer
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Server-Id = 10.50.0.1
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Address-Time = 3000
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Subnet-Mask = 255.255.252.0
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Router = 10.50.0.1
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Domain-Server = 8.8.8.8
Jul 25 00:12:23 62.2.179.18 dhcp,debug,packet Captive-Portal = "https://hotspot.ru/api"
Jul 25 00:12:24 62.2.179.18 dhcp,debug dhcp1 received request id 501857898 from 0.0.0.0 '1:7a:58:35:fe:b0:52'
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet secs = 4
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet ciaddr = 0.0.0.0
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet chaddr = 7A:58:35:FE:B0:52
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Msg-Type = request
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Parameter-List = Subnet-Mask,Classless-Route,Router,Domain-Server,Domain-Name,Unknown(108),Captive-Portal,Domain-Search,Auto-Proxy-Config
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Max-DHCP-Message-Size = 1500
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Client-Id = 01-7A-58-35-FE-B0-52
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Address-Request = 10.50.3.180
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Server-Id = 10.50.0.1
Jul 25 00:12:24 62.2.179.18 dhcp,debug lease offered, addressed to me
Jul 25 00:12:24 62.2.179.18 dhcp,debug 10.50.3.180 entering bound
Jul 25 00:12:24 62.2.179.18 dhcp,info info: dhcp1 assigned 10.50.3.180 to 7A:58:35:FE:B0:52
Jul 25 00:12:24 62.2.179.18 dhcp,info dhcp1 assigned 10.50.3.180 to 7A:58:35:FE:B0:52
Jul 25 00:12:24 62.2.179.18 dhcp,debug dhcp1 sending ack with id 501857898 to 10.50.3.180
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet ciaddr = 0.0.0.0
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet yiaddr = 10.50.3.180
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet siaddr = 10.50.0.1
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet chaddr = 7A:58:35:FE:B0:52
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Msg-Type = ack
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Server-Id = 10.50.0.1
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Address-Time = 3000
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Subnet-Mask = 255.255.252.0
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Router = 10.50.0.1
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Domain-Server = 8.8.8.8
Jul 25 00:12:24 62.2.179.18 dhcp,debug,packet Captive-Portal = "https://hotspot.ru/api"
Jul 25 00:12:26 62.2.179.18 hotspot,debug hotspot: serverHS: new host detected 7A:58:35:FE:B0:52/10.50.3.180 by ARP reply to 10.50.0.1
Jul 25 00:12:26 62.2.179.18 hotspot,debug hotspot: myemail@mail.ru (7A:58:35:FE:B0:52): remove mac cookie: multiple hosts with same mac
Jul 25 00:12:26 62.2.179.18 hotspot,info,debug info: 7A:58:35:FE:B0:52 (10.50.3.180): trying to log in by mac
Jul 25 00:12:26 62.2.179.18 hotspot,info,debug hotspot: 7A:58:35:FE:B0:52 (10.50.3.180): trying to log in by mac
Jul 25 00:12:26 62.2.179.18 hotspot,debug hotspot: 7A:58:35:FE:B0:52 (10.50.3.180): local user not found
Jul 25 00:12:26 62.2.179.18 hotspot,info,debug info: 7A:58:35:FE:B0:52 (10.50.3.180): login failed: invalid username or password
Jul 25 00:12:26 62.2.179.18 hotspot,info,debug hotspot: 7A:58:35:FE:B0:52 (10.50.3.180): login failed: invalid username or password
Jul 25 00:12:26 62.2.179.18 hotspot,debug hotspot: serverHS: dhcp host 7A:58:35:FE:B0:52/10.50.3.180 added, ip 10.50.3.180


dhcp config:
name="dhcp1" interface=bridgeHS lease-time=50m address-pool=HSIA_pool authoritative=yes use-radius=no client-mac-limit=1
hotspot pool is the same as dhcp pool, keepalive is 2m, hotspot idle timeout 5m

I tried to switch off conflict detection.

I m not sure what is the real reason to logout user. is it "Detected conflict by ARP response " or Dynamic address in hosts of hotspot.
but it seems mikrotik issue as it happens in different network configurations without any routers, arp relays, pseudobridges and etc and with different vendors.
it happens also just AP connected to mikrotik.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 63 guests