Community discussions

 
AhmedWajdi
just joined
Topic Author
Posts: 1
Joined: Fri Aug 02, 2019 6:12 pm

how to set time limit to dhcp client

Fri Aug 02, 2019 6:18 pm

How to set time limit to a dchp client
ex:
setting 3days for a client and then it`s automatically become disabled.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1685
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: how to set time limit to dhcp client

Tue Aug 06, 2019 1:17 am

Hey

If I got your question right, it's the "lease-time": duration of ip assignment.
 
User avatar
skylark
MikroTik Support
MikroTik Support
Posts: 102
Joined: Wed Feb 10, 2016 3:55 pm

Re: how to set time limit to dhcp client

Tue Aug 06, 2019 9:48 am

There is no specific time limit parameter for DHCP lease, but you can configure lease time to 3 days and after the client receives an IP address via dhcp-client, then you can make them static and block them:
 /ip dhcp-server lease set 0 block-access=yes
After the lease time expires, the client will not receive a new address again.

More practically would be a using user-manager.
 
loveman
Member
Member
Posts: 311
Joined: Tue Mar 10, 2015 9:32 pm

Re: how to set time limit to dhcp client

Thu Aug 08, 2019 3:52 pm

You can using user manger like hotspot server to limit time so when the user finish real time after that the user disconnect or no internet service.

Who is online

Users browsing this forum: No registered users and 31 guests