Each dynamic routing protocol has administrative distances already defined.
In MikroTik RouterOS, the “distance” of a dynamic route is a concept that represents the priority of the route; that is, a metric that helps determine which route to use when there are multiple routes to the same destination. This distance is commonly known as “administrative distance” in the networking world.
The lower the distance number, the higher the priority of that route in the routing system.
Distance Settings on Dynamic Routes
In MikroTik RouterOS, it is possible to assign or change the distance of dynamic routes. By default, each routing protocol has its own predefined distance, but you can configure it manually to fit the specific needs of your network. For example:
- RIP It has a default distance of 120.
- OSPF It has a default distance of 110.
- BGP has a default distance of 20 for external routes (eBGP) and 200 for internal routes (iBGP).
For routes learned through dynamic methods like OSPF or BGP, you can set the distance to values such as 2 or 3 if you want these routes to have a higher priority compared to other routes learned through different protocols or static methods. This is useful in scenarios where you need to fine-tune route selection based on specific network policies or redundancy requirements.
How to Change the Distance in MikroTik
To change the distance of a dynamic route in MikroTik, you can do so through the specific routing protocol settings. Here's a generic example of how you could do it for OSPF:
- Access MikroTik RouterOS via WinBox, WebFig, or SSH.
- Navigate to the OSPF section (or whatever other routing protocol you're configuring):
/routing ospf instance
- Edit the OSPF instance to change the distance:
set [find default=yes] distance=3
This setting will change the administrative distance of all routes learned by OSPF to 3
. It is important to note that changing the administrative distance can have a significant impact on the routing behavior of your network, and should be done carefully and considering the entire network topology.
In short, yes, it is possible to configure dynamic routes in MikroTik to have a distance of 2 or 3, allowing you to manipulate and prioritize network traffic according to your operational and strategic needs.
There are no tags for this post.