Please help, i need some help regarding to autoremove inactive mac address on ip dhcp lease.
I think it’s possible if i use script to autoremove it. But i confuse how to make for the script.
My assumtion is active or not active mac address on ip - dhcp - lease will be check on ip - hotspot - active, If there is no active mac address on ip - dhcp - lease than it should be remove.
Why would there not be a lease just because the host isn’t active? The lease is there until it is no longer valid and the host doesn’t claim it back. If you want the DHCP leases to expire sooner decrease the lease period.
Yes correct, it’s because the user is no longer active for the those ip segment.
For information, we use authentication system : radius manager
Ip segment was divided into three diffrent segments, so if user active again in other segment before old lease time priode ended and log in with a different segment, then the mac address will be double in dhcp lease with diffrent ip.
This will resulted errors in log mikrotik : limit address per-mac address.
And if the user is logged back into the old segments then the login priode will be continue old lease time which store in the dhcp lease.
We would like if the user is log in back into old ip segment and it should be count for new lease
time priode according lease time setting on the server.
We set our shared users on server is 2.
Because of that reason, we think to create a script to remove inactive mac addresses and use the active one mac address.
hi guys .. here migh be a solution for ya… it`ll remove every 5 minutes … just paste it on your new terminal – team_beruang @ makassar - indonesia - hehehe
add comment=“” disabled=yes interval=5m name=schedule2 on-event=“/ip hotspot host remove [find where !authorized and !bypassed]” policy=
reboot,read,write,policy,test,password,sniff,sensitive start-time=startup