# Set the hostname or label of network to be updated.# Hostnames with spaces are unsupported. Replace the value in the quotations below with your host names.# To specify multiple hosts, separate them with commas.:local noiphost “URLDINAMICA”

# Change to the name of interface that gets the dynamic IP address:local inetinterface “INTERFACE”

#————————————————————————————# No more changes need

:global previousIP

:if ([/interface get $inetinterface value-name=running]) do={# Get the current IP on the interface :local currentIP [/ip address get [find interface=”$inetinterface” disabled=no] address]