problem to change ip route distance with script
Posted: Thu Feb 28, 2013 5:10 am
Hello mikrotikers,
I am having troubles to change the distance in the routes with scripting, i can't find the way to do it, maybe you guys could give me a hint
This is the code that I'm trying to use but can't change it automatically to 2
And I'm kind of stucked in here...any answer to this??
Thanks for your help
I am having troubles to change the distance in the routes with scripting, i can't find the way to do it, maybe you guys could give me a hint
This is the code that I'm trying to use but can't change it automatically to 2
Code: Select all
:if ([/ping 8.8.8.8 count=5] = 5) do={
/ip route edit number =1 value-name=distance
}
Thanks for your help