Hi
I want to change distance of route by a function in VB.net.
I change routes with tihs function like this :
mikrotik.Send(“/ip/route/set”)
mikrotik.Send(“=disabled=no”)
mikrotik.Send(“=.id=*22” )
mikrotik.Send(“.tag=1”, True)
but like this :
mikrotik.Send(“/ip/route/set”)
mikrotik.Send(“=distance=1”)
mikrotik.Send(“=.id=*22” )
mikrotik.Send(“.tag=1”, True)
don’t change distance.
can you help me . in attached file there are class and function that i used.
MK class.txt (6.92 KB)
hm… all is working for me on v3.30 and v5.0beta1
Hi + Thx
But my program don’t work properly. 
you may try with some 100%-working implementation, and then sniff and compare your program communication and working implementation…
i want to change distance of routes. now plz say to me if with these commands :
mikrotik.Send(“/ip/route/set”)
mikrotik.Send(“=distance=1”)
mikrotik.Send(“=.id=*22” )
mikrotik.Send(“.tag=1”, True)
distance of routes don’t changes where(Which Part) of my program i would check to solved this problem .
command itself looks OK, just check if that .id is correct for the route you are trying to alter.
also, what is exact reply from router when you execute the command (try with python api client to see everything)
Hi
with thanks for your guide. i do that.
after attention to MK command reply i find that add “true” parameter to end of command , then distance change.
again thanks of you.