after device obtained random IP assigned from DHCPd server, then it will stick to its random IP regardless forever. Why is that?
Also how can I change the IP range for dynamic hosts in my network and reserve a pool for static ones without loosing current configuration?
start of by using DHCP and select Make static when right clicking the mac address or ip adress you like to assign and secondly edit the static ip of the mac address you selected and discpmnect cmputer and connect again and you are all ser …}
if you like to make the network safer change HDCP pool to static only seems to work for me but i have not hade enough time to play with it though but seems to work so far.
Sorry but doesn’t make any sense to me. In ISC DHCPd in Linux device will acquire a new static IP once previous lease expire. What is different in Mikrotik DHCPd implementation that it is not acting like this and requires device to be physically disconnected from network? That looks to me either like a bug or misconfiguration.
I think that static lease entries actually need client-id set, not mac address. Or perhaps both, hence suggestion by @Matthiastik … if one starts off by using dynamic lease (which is syntactically correct in all aspects) and making it static plus changing address to desired one (can actually be outside dynamic address range), then success is almost guaranteed (but see next paragraph).
Regarding address change: client will only get changed address when client requests lease renewal … and that only happens after half of lease time (in your case that’s after 3.5 days as lease time is set to 1 week). DHCP server can not push address change.
Next: static lease has to actually work (see my previous paragraph). If it doesn’t and dynamic lease address range doesn’t change, then client will successfully renew its current address.
That makes even less sense. If i set static IP without client-id before I plug device to network then it is fine but not after. Also I can’t find anything about this in MikroTik Wiki.