I’m sorry to bother you again, but can you help me? I want to know if there is a way to get the LAN IP from dhcp different each time after the host restarts.
/tool netwatch
add down-script="/int pppoe-client set pppoe-out10 disabled=yes
\n:delay 3s\r\
\n/int pppoe-client set pppoe-out10 disabled=no\r\
\n" host=192.168.88.10
I’m sorry to bother you again, but can you help me? I want to know if there is a way to get the LAN IP from dhcp different each time after the host restarts.
The easiest way would be making the lease static. If not possible for whichever reason, you can retrieve the active IP by mac address with
/ip dhcp-server lease get [find mac-address=00:01:02:03:04:05] address
And use this to adjust the netwatch script.
I do convert all DHCP leases to static using this sctipt:
http://forum.mikrotik.com/t/dhcp-automatic-dynamic-to-static/129147/1