Hotspot and IP

Hello !

Is it possible to make that hotspot gives out the same IP for every user forever !??
We need this because we often get requests from police about ip adresses.
At this moment we just use usual DHCP + HOTSPOT.

What do you use for authentication? The local database, User Manager, or FreeRADIUS? RADIUS allows you to issue a FRAMED-IP for each customer.

But I don’t see a need for that. I use FreeRADIUS, and the accounting section is quite good. I can find ip addresses assigned to clients in RADIUS radacct table quickly for sessions during the last couple weeks. Never had the police ask about it tho.

“Eternity is a very long time, especially towards the end.” Woody Allen

We use local database > in mikrotik router.
So the only way to make it possible is to make an RADIUS server, right ?

If you are using the local database, you can make the dhcp assignments static. This is not a static ip. Some refer to it as a persistent ip. The client requests an ip and is issued the same ip every time by the dhcp server.

/ip dhcp-server lease
make-static X

Replace X with the line number of the dhcp lease. That mac will get that ip every time it requests one. More info about it in the manual.

ADD: Another option is to change the dhcp server lease time to a very long time. Default is 3 days. Change it to a month.

Thanks !
Problem is that we need to keep that ip for very big time , cuz police sends requests about IP adresses. And we need that ip is assigned to every hotspot acc , but given out by DHCP.
I think we will do that RADIUS server thing then!

Thanks again ! : )

You’re radius server logs should contain what MAC and IP address combination used what access code. This way you can search for a specific MAC and see what IP they signed in with, this should be valid throughout the entire session. You can also send yourself the log files of the MikroTik and track the MAC of a user that way to see what IPs they were assigned via DHCP. Both of these things can be indexed by a good syslog server.

Doing something with persistent/sticky IPs will make you run out of available leases in a hotspot situation, which is never a good thing.