fbpx

What is the administrative distance of OSPF in MikroTik?

On MikroTik routers using RouterOS, the administrative distance is a value that is assigned to routes obtained through different routing protocols to determine the preference of one route over another in case there are multiple routes to the same destination.

Administrative distance is a fundamental concept in routing as it helps avoid conflicts between routes and determines which route is considered the most reliable and therefore chosen for sending traffic.

OSPF Administrative Distance in MikroTik

For the OSPF (Open Shortest Path First) protocol in MikroTik, the default administrative distance is 110. This value is consistent with other network devices and adheres to industry standard practices, allowing for consistency and predictability in mixed network environments.

Why is administrative distance important?

Administrative distance is crucial when a router has multiple routes learned from different sources (e.g., static routes, OSPF, BGP) to the same destination.

The route with the lowest administrative distance has priority and is used to route traffic. Here are some common administrative distances to compare:

  • Static routes: They generally have a distance of 1 (although this can be configured).
  • EIGRP: Typically it has a distance of 90.
  • OSPF: It has a distance of 110, as mentioned.
  • BGP: Typically has a distance of 120 for internal routes.

Configuration and Adjustment of the Administrative Distance in MikroTik

In MikroTik RouterOS, you can adjust the administrative distance if necessary to tailor routing to your specific requirements. This can be done using the command line interface (CLI) or through WinBox or WebFig.

Here's how you could change the administrative distance for OSPF:

  1. Access your MikroTik Router via WinBox or SSH.
  2. Navigate to OSPF configuration:

    /routing ospf instance
  3. Modify the administrative distance (only if it is necessary):

    set [find default=yes] distance=110

    This command checks if the default value is set and, if necessary, changes it.

Modifying the OSPF administrative distance can be useful in situations where you are integrating OSPF with other routing protocols and need to control which route takes precedence. However, such changes should be made with caution and with a full understanding of the implications on the global network.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011