Community discussions

MikroTik App
 
gtblue
just joined
Topic Author
Posts: 8
Joined: Thu May 26, 2016 4:20 am

IP lease not the same on the Hotspot

Thu May 26, 2016 4:33 am

Hi all,

can please anyone, advice me what is wrong with my hotspot and dhcp server setting, because it's a bit confusing when i would like to trace an user who use the hotspot based on their ip address.
the lease that the dhcp gave to the client is totally different with the one guest used on hotspot.
as attached below for the example :

Image

thank you in advance
 
gtblue
just joined
Topic Author
Posts: 8
Joined: Thu May 26, 2016 4:20 am

Re: IP lease not the same on the Hotspot

Fri May 27, 2016 12:22 pm

anyone? am I posted the question in wrong rooms?
 
User avatar
wahidtelco
just joined
Posts: 15
Joined: Mon Mar 02, 2015 9:13 am
Location: Bangladesh
Contact:

Re: IP lease not the same on the Hotspot

Sun May 29, 2016 3:07 pm

WRITE MORE DETAILS AND SHOW NETWORK TOPOLOGY
 
zmckenzie
just joined
Posts: 8
Joined: Wed May 30, 2007 12:53 am

Re: IP lease not the same on the Hotspot

Fri Jun 03, 2016 2:27 am

It sounds like the Hotspot is 'masquerading' your real IP address to something else.

Go to IP/Hotspot/Hosts. There you should see a list of all MAC addresses, the IP address the client has, and the IP address that Hotspot is using to connect them online.
 
gtblue
just joined
Topic Author
Posts: 8
Joined: Thu May 26, 2016 4:20 am

Re: IP lease not the same on the Hotspot

Sat Jun 04, 2016 11:28 am

WRITE MORE DETAILS AND SHOW NETWORK TOPOLOGY
Dear Mr. Wahid

sorry im complete a noob on mikrotik.

my topology is really simple

Internet -- modem -- mikrotik (dhcp server-hotspot)--- AP --- Client
 
gtblue
just joined
Topic Author
Posts: 8
Joined: Thu May 26, 2016 4:20 am

Re: IP lease not the same on the Hotspot

Sat Jun 04, 2016 11:32 am

It sounds like the Hotspot is 'masquerading' your real IP address to something else.

Go to IP/Hotspot/Hosts. There you should see a list of all MAC addresses, the IP address the client has, and the IP address that Hotspot is using to connect them online.
hai kenzie,

thank you for replying me... this is what i got when i check on the host tab.

Image

so what do you thing probably wrong with my hotspot setting or maybe my nat/firewall?
 
User avatar
rdelacruz
newbie
Posts: 39
Joined: Thu Jul 14, 2016 8:12 pm

Re: IP lease not the same on the Hotspot

Thu Jul 14, 2016 8:15 pm

I am having the same issue. Any updates about it?
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: IP lease not the same on the Hotspot

Thu Jul 14, 2016 10:09 pm

Your pool is too small and/or the lease time is short with a long hotspot idle timeout.

Basically, the Hotspot will assign a virtual IP (the "To Address" IP) for every host that is present on the hotspot network. This is because the Hotspot can work around clients that cannot change their IP settings - suppose a host with a static IP joins the hotspot... the Hotspot will assign a To Address from the actual hotspot IP range, and then deal with the host using that To Address, and not the real address on the host itself.

If a host is assigned an IP by DHCP, but the hotspot still thinks some previous host has that "To Address" - then the hotspot will choose some unused IP from the hotspot range, and assign THAT to the host - even though the host's actual dhcp-assigned address is actually usable.

This symptom of mismatched IP/To IP addresses happens whenever the pool gets crowded. You can reduce it by using a larger IP range (e.g. a /22 supernet instead of a /24) and/or shortening the idle/keepalive timeouts on the hotspot profiles.
 
User avatar
rdelacruz
newbie
Posts: 39
Joined: Thu Jul 14, 2016 8:12 pm

Re: IP lease not the same on the Hotspot

Thu Aug 18, 2016 9:20 pm

I don't think that it has something to do with the address pool. I am trying to figure this out with only one client.
And please also note that on the "Leases" tab of DHCP server, the active IP address is the same with the Address on the Hotspot server.
Image
Last edited by rdelacruz on Thu Dec 20, 2018 7:39 pm, edited 1 time in total.
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: IP lease not the same on the Hotspot

Fri Aug 19, 2016 7:37 am

Go to IP/HotSpot/Servers and change Address Pool=None. You will no longer see the issue, but devices with Static IP addresses will not be able to connect.
 
User avatar
rdelacruz
newbie
Posts: 39
Joined: Thu Jul 14, 2016 8:12 pm

Re: IP lease not the same on the Hotspot

Fri Aug 19, 2016 7:40 pm

Unfortunately, the address pool on IP/HotSpot/Servers is already set to none.
Image

With this issue, what's the best way to assign static IP for Hotspot clients?
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: IP lease not the same on the Hotspot

Sat Aug 20, 2016 5:30 am

Is IP/HotSpot/UserProfiles also set to none for address pool? I forgot it can be set in 2 places.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: IP lease not the same on the Hotspot

Tue Aug 23, 2016 12:25 am

I bet if you'd looked through the hotspot hosts list, you'd find an idle entry for a host with address=10.5.50.254 and to-address=something else

Basically, the DHCP server considered 10.5.50.254 to be available, but the hotspot didn't, so the hotspot had to pick a different IP address to pretend is your computer.
If you'd tried to ping your computer from the Mikrotik, you would have to have used 10.5.50.210 (the to-address).
 
rogerdk
just joined
Posts: 9
Joined: Fri Dec 28, 2018 9:23 pm

Re: IP lease not the same on the Hotspot

Wed Mar 13, 2019 2:23 am

Hi, I know this is an old post but it seems there was not a solution, I am experiencing the same issue with static ips out of the ip range of my hotspot, How can I do to delete invalid Ips in order to accept only hosts that received an ip address from dhcp?
 
User avatar
rdelacruz
newbie
Posts: 39
Joined: Thu Jul 14, 2016 8:12 pm

Re: IP lease not the same on the Hotspot

Thu Mar 14, 2019 5:00 pm

You can use IP Bindings. It allows you to block all unknown addresses, and allow only the hotspot network to authenticate to your Hotspot server.

Image

Who is online

Users browsing this forum: Bruzxce, FAB1150 and 190 guests