fbpx

On OSPF instances what does it mean to redistribute routes via Type 1 or Type 2?

In the OSPF (Open Shortest Path First) protocol, route redistribution refers to the process by which routes learned by one routing protocol are introduced into another.

In the specific case of OSPF, when routes from other routing protocols (such as RIP, EIGRP, or static routes) are redistributed within OSPF, they can be assigned as Type 1 (Type 1) or Type 2 (Type 2) routes.

This has to do with how the cost of these redistributed routes within the OSPF network is calculated.

Type 1 Routes (Type 1):

In this type of redistribution, the cost of the redistributed route is the sum of the original cost of the route in its source protocol plus the cost to reach the router that is performing the redistribution. In other words, the cost increases as the route passes through more OSPF routers, thus reflecting a cumulative metric that includes both the cost within OSPF and the cost of the route's original protocol.

Type 2 Routes (Type 2):

For Type 2 routes, only the external cost of the route as originally learned from the other protocol is considered, ignoring the cost to reach the router performing the redistribution.

The OSPF cost of reaching the redistribution point is not added to the cost of the redistributed route. This type of route keeps its external cost as the predominant value, regardless of how many OSPF hops the route must traverse.

The choice between Type 1 and Type 2 can affect route selection in the network, depending on the topology and the desired routing policy.

Type 1 may be more useful in networks where you want the metric to reflect the entire path through the OSPF network, while Type 2 may be preferred when the external cost must remain predominant over the internal OSPF costs.

This is crucial in environments where you want to control or manipulate route selection more precisely based on the original source of the route.

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