# Metric type 1 and type 2 explanation in Redistribution

**URL:** https://forum.networklessons.com/t/metric-type-1-and-type-2-explanation-in-redistribution/28477
**Category:** Routing & Switching
**Created:** [July 14, 2022, 12:16pm UTC](https://forum.networklessons.com/t/metric-type-1-and-type-2-explanation-in-redistribution/28477 "2022-07-14T12:16:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![netech148](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@netech148](https://forum.networklessons.com/u/netech148)
#### Post date: [July 14, 2022, 12:16pm UTC](https://forum.networklessons.com/t/metric-type-1-and-type-2-explanation-in-redistribution/28477/1 "2022-07-14T12:16:43Z")

</div>

Hi Rene,  
**Topic::** Redistribution in OSPF / Redistribution between OSPF and EIGRP  
I’m trying to check the difference between metric type 1 and metric type 2 configuration and it’s details in redistribution. I am unable to find details about it. Please direct me to check the appropriate topic if it is already in this site.

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [July 14, 2022, 1:24pm UTC](https://forum.networklessons.com/t/metric-type-1-and-type-2-explanation-in-redistribution/28477/2 "2022-07-14T13:24:48Z")

</div>

Hi

I asked recently the same here.

> [@How to configure Redistribution between OSPF and RIP](https://forum.networklessons.com/t/how-to-configure-redistribution-between-ospf-and-rip/947/31):
>
> Hello Giovanni The redistribute ospf 1 match external command will automatically redistribute both types of OSPF external routes. In this [Cisco documentation](https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/5242-bgp-ospf-redis.html#redistributionofonlyospfexternal), it gives this explanation: Note: The configuration shows match external 1 external 2 and the command entered was redistribute ospf 1 match external. This is normal because OSPF automatically appends “external 1 external 2” in the configuration. It matches both OSPF external 1 and external 2 routes and it redistributes both routes into …

---

<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: [July 16, 2022, 11:03am UTC](https://forum.networklessons.com/t/metric-type-1-and-type-2-explanation-in-redistribution/28477/3 "2022-07-16T11:03:53Z")

</div>

Hello Valli

The following lesson explains the various types of paths that OSPF shares, and the way that these are examined before looking at their metrics. These include External type 1 and External type 2 OSPF routes.

> **[OSPF Path Selection explained](https://networklessons.com/ospf/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 more info on the E1 and E2 routers and why they exist and how they are useful for redistribution can be found at the following post:

> [@Redistribution between EIGRP and OSPF](https://forum.networklessons.com/t/redistribution-between-eigrp-and-ospf/12701/5):
>
> 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: [https://networklessons.com/cisco/ccie-enterprise-infrastructure/ospf-path-selection-explained](https://networklessons.com/cisco/ccie-enterprise-infrastructure/ospf-path-selection-explained) 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: [https://forum.networklessons.com/t/ospf-path-selecti…](https://forum.networklessons.com/t/ospf-path-selection-explained/969/35)

If you have any further questions, don’t hesitate to ask!

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![netech148](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@netech148](https://forum.networklessons.com/u/netech148)
#### Post date: [July 16, 2022, 12:53pm UTC](https://forum.networklessons.com/t/metric-type-1-and-type-2-explanation-in-redistribution/28477/4 "2022-07-16T12:53:18Z")

</div>

Thank you very much!
