I have Mikrotik in big organization. Policy of organization require all computers must obtain addresses by they MAC address. There is too much computers movements. And in leases too much trash.
Can i configure DHCP Server to remove static leases, what not been used for a month or other time period by script or other way?
Can anybody help me with this ?
Hi,
this is only a idea, but..
Perhaps you can set the Lease time to 32d:
ip dhcp-server set dhcp1 lease-time=32d
Then… when DHCP asign a IP to a MAC, you can “write” it in your system (but the IP is dinamically assigned).
Then.. if in 32 days this MAC don’t connect to the network, the IP will be usable again..
If a computer is working every day or twice a month, will always get the same IP and it will work as static IPs..
Easy and no scripts. The only problem is that DHCP server will assign a random IP to a MAC, and perhaps you assign a fixed or per departament IP to a MAC..
I think that.. to avoid users set a IP manually, you need to set Add arp for leases to the server too:
ip dhcp-se set dhcp1 add-arp=yes