eworm on meadow QR code: rsc.eworm.de RouterOS Scripts
a collection of scripts for MikroTik RouterOS

Run other scripts on IPv4 DHCP server lease

GitHub stars GitHub forks GitHub watchers required RouterOS version Telegram group @routeros_scripts donate with PayPal

⬅️ Go back to main README

ℹ️ Info: This script can not be used on its own but requires the base installation. See main README for details.

Description

This script is supposed to run from IPv4 DHCP server as lease script. On a DHCP lease it runs each script containing the following line, where ## is a decimal number for ordering:

# provides: dhcpv4-server-lease, order=##

Currently it runs if available, in order:

Requirements and installation

Just install the script:

$ScriptInstallUpdate dhcpv4-server-lease;

… and add it as lease-script to your dhcp server:

/ip/dhcp-server/set lease-script="dhcpv4-server-lease" [ find ];

See also


⬅️ Go back to main README
⬆️ Go back to top

RouterOS Scripts documentation generated on Thu, 14 May 2026 23:02:49 +0200 for main/3478/d586205a
Copyright © 2013-2026 Christian Hesse <mail@eworm.de>