I have a DHCP server running with a lease script.
From a Windows client cmd prompt, if I execute
Code: Select all
ipconfig /release
ipconfig /renew
However, if I execute only the renew on the Windows client
Code: Select all
ipconfig /renew
Same thing happens, if I reboot the Windows client. Expiration date is reset, lease script is not called.
So here is the question: Is this expected behavior, or is this a bug in RouterOS, which I should report?
Or is there some option, where I can ask RouterOS to execute the script on a renew?
This would be a simple lease-script used for testing:
Code: Select all
:log info message="$leaseBound $leaseServerName: $leaseActMAC -> $leaseActIP"
EDIT:
I forgot to mention, the Windows client has a static lease. Not sure, if this makes any difference.