Newbie here… using a hEx3 routerboard which works great in my office.
Just figured out how to set a fixed IP for some devices in IP-DHCPserver, by right clicking on that devices entry and set ‘Make static’.
But how on earth can I go back to dynamically allocated IP in the same Winbox menu?
Thanks for the quick reply, Anav.
But what if once reconnected it will not lease a new IP to that device? Just maybe…
I would rather like to have a simple menu type choice - ‘Make dynamic’.
Why would you go from static back to dynamic? What might be the use case?
And why do you think, that dynamic would not be like its name: dynamic?
If you want the device to always be available via the same IPv4(/IPv6) address, then make it static; if you do not want this device to be a server, then don’t make it static.
If you (e.g. by error) made a dynamic lease static, the lease can be deleted, then (before the old lease ends, as the client does not know about the server changing its configuration!) the client will first try to get that old IP address back, and if the DHCP server does not see it free, then it gives the client another address, otherwise, the client gets back the old address (but this time, it will be dynamic).
My question was more like academic, as you’re right, no need for dynamic lease in normal environments.
Strange that the ‘Make static’ option does not have the ‘Get back to dynamic’ option too.
He does have a valid point. I had the same question once. I suspect it gets asked by anyone who’s assigned a static by mistake and wanted it back to dynamic. The solution - deleting the lease - doesn’t feel very natural - especially the first time you do it. A button that simply carried out the command would make a lot of noobs much more comfortable and save a lot of time with many people having to ask the question and wait for answers.
I agree with previous posters in that the wording on the button might be a bit scary for user which didn’t press it before. For a cautious/frighten user the label might mean “block device from obtaining lease in the future” as well … The only problem is that there isn’t action “make dynamic” … even in CLI there’s only “remove” and if the label on the button was changed to “make dynamic”, pressing it would still make lease to disappear … probably making cautious/frighten user panic.
So this thread is actually a feature request … for a new action “make-dynamic”, which would not remove lease, it would only remove the “static” bit.