Automating DHCP lease cleanup based on Simple Queues (ISP use case)

Hi,

I’d like to share a real ISP use case I recently implemented using RouterOS scripting.

In many ISP networks using DHCP + Simple Queues, when a customer is removed from the management system, the DHCP lease often remains active and requires manual cleanup.

I implemented an automation that:

  • detects active customers via Simple Queues
  • makes their DHCP lease static while active
  • tags leases logically
  • automatically removes the lease when the queue no longer exists or when the customer equipment is replaced

This keeps the router clean and avoids manual intervention, without using PPPoE or RADIUS.

I’m sharing this as an idea / approach. Happy to discuss improvements or other use cases.

“Automating DHCP lease cleanup based on Simple Queues (ISP use case)”
“Synchronizing DHCP leases with Simple Queues in ISP environments”
“Automated DHCP lease management for ISPs (RouterOS scripting)”

I am not sure what exactly are you sharing, three possible alternative titles for your idea?