Hi Mikrotik Users,
may you help me a little bit with following problem.
I want to build up a tunnel (l2tp or eoip) from one mikrotik device to another.
Router is dhcp client, and in the network are two dhcp servers, and the task would be to build up the tunnel to the router who is the faster dhcp server (from that i got the lease).
Yes, use a script to get that ip address. It is probably your gateway ip… if so, there’s the answer. Then, put it in a variable and then use the script to change the tunnel server ip address to that one.
There are tons of scripting examples and a good documentation here.