# Redistribution between EIGRP and OSPF

**URL:** <https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701>\
**Category:** Lessons Discussion\
**Created:** [November 2, 2020, 1:31pm UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701 "2020-11-02T13:31:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [November 2, 2020, 1:31pm UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/1 "2020-11-02T13:31:45Z")

</div>

This topic is to discuss the following lesson:

> **[Redistribution between EIGRP and OSPF](https://networklessons.com/cisco/ccie-enterprise-infrastructure/redistribution-between-eigrp-and-ospf)**
>
> This lesson explains how to configure basic redistribution between OSPF and EIGRP on Cisco IOS routers.

---

<div class="post-metadata">

**Author:** ![midhul.mk](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/9de0a6/32.png) [@midhul.mk](https://forum.networklessons.com/u/midhul.mk)\
**Post date:** [November 24, 2020, 12:11pm UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/2 "2020-11-24T12:11:46Z")

</div>

Any update on this ?

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [November 25, 2020, 5:45am UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/3 "2020-11-25T05:45:17Z")

</div>

Hello Midhul

I’ve informed Rene to fix the ShildSquare Captcha link. However, you are still able to click it and after you perform the Captcha test, you can successfully go to the lesson. If you have any specific questions about this lesson please let us know.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![sims](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sims](https://forum.networklessons.com/u/sims)\
**Post date:** [May 11, 2021, 1:50am UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/4 "2021-05-11T01:50:55Z")

</div>

Hi,  
when we decide E1 or E2 . I mean in real life scenarios when we dicde to go for E1 and E2  
Thanks

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [May 12, 2021, 6:18am UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/5 "2021-05-12T06:18:59Z")

</div>

Hello Sims

I’m assuming you’re asking about External type 1 and 2 for OSPF, correct? You can find out more information about those at the following lesson:

> **[OSPF Path Selection explained](https://networklessons.com/cisco/ccie-enterprise-infrastructure/ospf-path-selection-explained)**
>
> OSPF will select a path based on the origin BEFORE looking at the cost of the path. In this lesson, I'll explain to you how it works.

Now in a real-world scenario, when we redistribute, why would we choose E1 over E2 or E2 over E1? Well, first take a look at this post to remind us of how path cost is measured for E1 and E2:

> [@OSPF Path Selection explained](https://forum.networklessons.com/t/ospf-path-selection-explained/969/35):
>
> Hello Rahul E1 and E2 are two different ways of calculating an external route. An external route is one that has been introduced into OSPF from a different autonomous system. This external autonomous system could be running a different routing protocol, static routing or even another OSPF instance completely independent of the one in question. When a route is defined as E1, it includes the cost from the ASBR to the particular router that we are looking at. An E2 route does not include this …

Now take a look at this diagram:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/0/071f29d38c870a57baaec61d78f437a0af10918d.png)  
Imagine that all links are of the same type, and have the same cost. If you were to redistribute the 5.5.5.5/32 destination into OSPF at both R2 and R4 as an E2 route, then the cost that **R7** will see to that destination will be identical for both the red path as well as the green path, so both routes would be installed in the routing table. This is because E2 routes don’t take into account the distance to the ASBR, that is, the distances to R2 and R4 in this case.

If it was to be redistributed as an E1 route, then the cost to the ABSRs would be taken into account. Since the cost via the green route is less, that route would be installed in the routing table.

So it really comes down to, “how do you want your network to behave?” This is just one more way in which you can tweak routing to achieve the routing patterns and paths that you want.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![davidilles](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/davidilles/32/9686_2.png) [@davidilles](https://forum.networklessons.com/u/davidilles)\
**Post date:** [August 4, 2023, 11:47am UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/6 "2023-08-04T11:47:17Z")

</div>

Hello, everyone!

When we are advertising connected networks into an IGP, is it better to use the network command or the redistribute connected command?

Thank you.

David

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [August 13, 2023, 7:18am UTC](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/7 "2023-08-13T07:18:36Z")

</div>

Hello David

Either command can be used to “inject” the networks of connected interfaces into a routing protocol. However, the behavior is different, and the one you will choose depends upon what you want to achieve. Take a look at this [NetworkLessons note on the topic of network vs redistribute connected commands](https://notes.networklessons.com/routing-network-vs-redistribute-connected-commands).

I hope this has been helpful!

Laz
