Answer the question
In order to leave comments, you need to log in
How to change Distance on Mikrotik?
There are two WANs. For statics, I know how to set up rules and, by changing the Distance, make traffic for a specific IP go to a specific WAN.
But since we get an IP address via DHCP via one of the WANs, the route in the IP Route List is generated automatically and an entry with Distance 0 is written there, respectively, the traffic goes through this route.
If I prescribe statics for all WANs, then everything works. But I can't leave the static as the provider can change the settings and start issuing a different IP via DHCP.
How can I change the Distance for a dynamic route?
ps I didn’t understand scripts in Mikrotik and I don’t understand anything about them.
Answer the question
In order to leave comments, you need to log in
/ip dhcp-client add add-default-route=yes default-route-distance=<1..255>
Configure the DHCP client so that it does not add the default route and add the default route manually, and then change its Distance as you like.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question