# OSPF Default-information originate always

**URL:** <https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675>\
**Category:** CCNP Enterprise\
**Tags:** networking\
**Created:** [July 26, 2022, 12:41pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675 "2022-07-26T12:41:30Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 26, 2022, 12:41pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/1 "2022-07-26T12:41:30Z")

</div>

Hi everyone

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/ae3e6abc0f91c57ddb0637281fa43ac7e97c71b3.jpeg)  
the slides here said the default metric after using default-information originate always is 20 but when i try to do this command the result is different

R1\<------------S1/0-----------\>R2  
R1(config)#router ospf 1  
R1(config-router)#default-information originate always

R2#show ip route ospf  
Gateway of last resort is 10.1.121.1 to network 0.0.0.0

O\*E2 0.0.0.0/0 [110/ **1**] via 10.1.121.1, 00:01:05, Serial1/0  
1.0.0.0/15 is subnetted, 1 subnets

# which one is correct ?

another question, is that means R1 now is consider as ASBR because he creates a Type-5 external LSA ?

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 26, 2022, 1:08pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/2 "2022-07-26T13:08:15Z")

</div>

You are correct. The External LSA that carries the default route has a metric (i.e. cost) of “1”…not 20. If you can tell me the name of the course and name of the video within that course where you took this screenshot I’ll ask our video producer’s to insert a note at that point.

As to whether-or-not this makes R1 an ASBR, take a look at the Type-1 Router LSA generated from R1. If that router is an ABR or an ASBR (or both) it will advertise that capability within its Router LSA.

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 26, 2022, 1:42pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/3 "2022-07-26T13:42:01Z")

</div>

> [@kbogart-81b6c89deee9](#):
>
> As to whether-or-not this makes R1 an ASBR, take a look at the Type-1 Router LSA generated from R1. If that router is an ABR or an ASBR (or both) it will advertise that capability within its Router LSA.

# thanks keith for this reply this is the course [INE](https://my.ine.com/Networking/courses/802434b0/ccnp-routing-switching-course) ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/e270a7899ce78aad1702b6922c0f7205dd7ad445.jpeg) at minute 7:00

R1#show ip ospf database

```
        OSPF Router with ID (0.0.0.1) (Process ID 1)

            Router Link States (Area 0)

```

Link ID ADV Router Age Seq# Checksum Link count  
0.0.0.1 0.0.0.1 553 0x80000002 0x002F03 5  
0.0.0.2 0.0.0.2 600 0x80000002 0x00B087 4

```
            Type-5 AS External Link States

```

Link ID ADV Router Age Seq# Checksum Tag  
0.0.0.0 0.0.0.1 553 0x80000001 0x00357C 1

R1#show ip ospf database router self-originate

```
        OSPF Router with ID (0.0.0.1) (Process ID 1)

            Router Link States (Area 0)

```

LS age: 24  
Options: (No TOS-capability, DC)  
LS Type: Router Links  
Link State ID: 0.0.0.1  
Advertising Router: 0.0.0.1  
LS Seq Number: 80000002  
Checksum: 0x2F03  
Length: 84  
AS Boundary Router  
Number of Links: 5

```
Link connected to: a Stub Network
 (Link ID) Network/subnet number: 1.0.0.0
 (Link Data) Network Mask: 255.254.0.0
  Number of MTID metrics: 0
   TOS 0 Metrics: 1

Link connected to: a Stub Network
 (Link ID) Network/subnet number: 10.11.1.2
 (Link Data) Network Mask: 255.255.255.254
  Number of MTID metrics: 0
   TOS 0 Metrics: 1

Link connected to: another Router (point-to-point)
 (Link ID) Neighboring Router ID: 0.0.0.2
 (Link Data) Router Interface address: 10.1.121.1
  Number of MTID metrics: 0
   TOS 0 Metrics: 64

Link connected to: a Stub Network
 (Link ID) Network/subnet number: 10.1.121.0
 (Link Data) Network Mask: 255.255.255.0
  Number of MTID metrics: 0
   TOS 0 Metrics: 64

Link connected to: a Stub Network
 (Link ID) Network/subnet number: 10.1.12.0
 (Link Data) Network Mask: 255.255.255.0
  Number of MTID metrics: 0
   TOS 0 Metrics: 1

```

i don`t see anything related to default routes on Type-1 router LSA on R1  
R1\<-.1-----------S1/0---------.2–\>R2  
10.1.121.0/24

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 26, 2022, 2:48pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/4 "2022-07-26T14:48:07Z")

</div>

The Type-1 Router LSA from R1 will not show you any information about the default route it generated. That is contained in a Type-5 External LSA. However, your question was if R1 became an ASBR by generating a default route and the output you provided (the Router LSA from R1) does show that is IS advertising itself as an ASBR:

![Screen Shot 2022-07-26 at 10.20.23 AM](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/64dc83da6ff08582deaa4dd83d2e51642222de64.png)

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 26, 2022, 9:03pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/5 "2022-07-26T21:03:20Z")

</div>

sir, i`m going to ask you a very weird questions :  
1-when R1 create a Type 5 external lsa, the default metric value is 20. but why the default metric value is different in the default route(metric=1 by default)?

2-in Type-1 Router LSA, why there is an indication that router is an ABR or an ASBR ?what does that means ?what problems does this behavior trying to solve?

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 27, 2022, 1:36am UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/6 "2022-07-27T01:36:06Z")

</div>

Hi major133,

The behavior of setting the default cost of External LSAs to 20…with the exception of the default-route (also contained in an External LSA) which has a cost of 1 is a Cisco thing. Other vendors (like Juniper) don’t use those values. I have no idea why Cisco decided to do it this way.

As to why a Type-1 router LSA contains flags for ABR or ASBR…I also do not know why. I don’t honestly know what purpose this solves since ABRs clearly place their own Router-ID inside of their type-3 Summary LSAs…and ASBRs place their router-ID inside of their Type-5 external LSAs.

Two very good questions for which you may never find an answer. If you do…please let me know.  
🙂

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 27, 2022, 11:18am UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/7 "2022-07-27T11:18:34Z")

</div>

![download](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/b8d6b9e699b468077f12895b6b0f0aa92637ac05.jpeg)  
Thank you Sir  
I love you Sir

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 28, 2022, 12:52pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/8 "2022-07-28T12:52:38Z")

</div>

ok keith please i need some help

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/181108b3415bac85ee226dd62412e1fd1e29db3c.jpeg)  
in this part at the minue 41:15 , you asking yourself a question but i didn`t understand that question you were talking about the stub area vs the default-information originate command and you asking yourself this command (quoted exactly like what you said) : "you might be thinking wait a second we just saw when we use the default-information originate command it creates a type 5 external lsa but you`re telling me that stub area don`t allowed that so how is the abr is going to do it?" sir, what is the meaning of this question?i don`t understand your question  
what was you mean by "stub area don`t allowed that "?

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 28, 2022, 1:32pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/9 "2022-07-28T13:32:05Z")

</div>

The purpose of Stub areas (Stub, Totally-Stubby, NSSA and Totally NSSA) is to prevent ABRs from flooding the area with Type-5 External LSAs. But this presents a dilemma because a Type-5 External LSA is created when you issue the command, “default-information originate”.

So in my video I was presenting a question;

1. How do we get a default route into a Stub area when…
2. …the command “default-information originate” by design creates a Type-5 external LSA and…
3. …Type-5 External LSAs are not allowed into Stub Areas

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 28, 2022, 5:35pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/10 "2022-07-28T17:35:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/a88c5fc495b876bd2cefca8f9defc93dc00f0b89.png)  
is that what you`re referring to ? i put this scenario if that`s what you mean please tell me  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/db2b5886c46eb9c4b0f3814bf862e8679efa6e06.png)

here,R2 is going to stop sending the external default route from R4 and will send a type-3 default route only for all these external routes including the default route.correct ?

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 28, 2022, 5:53pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/11 "2022-07-28T17:53:29Z")

</div>

Yes, that is correct. When the ABR (R2 in your diagram) is connected to a Stub, Totally-Stubby, or Totally NSSA area that ABR will dynamically generate a default route and inject it within a Type-3 Summary LSA.

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 29, 2022, 1:43pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/12 "2022-07-29T13:43:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/3498b83d9c679e4c88a5d25387829bb5477fbe75.png)  
sir, in Type-5 External LSA why there is nothing about the area number like the other types ?

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 29, 2022, 2:58pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/13 "2022-07-29T14:58:05Z")

</div>

OSPF Link-State Update packets…and the LSAs they contain, don’t have any field for “Area”. If you take look at this URL you’ll see what I mean:  
[http://www.tcpipguide.com/free/t\_OSPFMessageFormats-7.htm](http://www.tcpipguide.com/free/t_OSPFMessageFormats-7.htm)

If you and I are OSPF routers, after I form an adjacency with you I know what area you are in because that was part of the OSPF Hello packet you sent me. Let’s assume that the link you and I share is in Area-2. If I receive an OSPF Link-State Update packet from you this is what I will do:

1. If that packet contains any **Type-1, Type-2, Type-3 or Type-4 LSAs** I will place them into my Area-2 database (because they came from my neighbor in Area-2 and these LSAs are not allowed to be flooded beyond the area in which they originated).
2. I will then continue to flood those LSAs to any other connected neighbors I have **in Area-2**
3. If the Link-State Update packet contains any Type-5 External LSAs I will flood those **to all of my neighbors** , regardless of what area they are in. This means if I am an ABR with other neighbors in Area-0 and Area-7 I will flood the External LSAs to those neighbors too.
4. Because Type-5 LSAs are flooded throughout the entire OSPF domain, **they don’t belong to any one specific area.** That’s why in the output of “show IP ospf database” they are at the end of the output and no area value is associated with them.

Hope that helps!  
Keith

---

<div class="post-metadata">

**Author:** ![major133-ac9365513dd](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@major133-ac9365513dd](https://legacy-community.ine.com/u/major133-ac9365513dd)\
**Post date:** [July 30, 2022, 5:37pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/14 "2022-07-30T17:37:53Z")

</div>

sir,you said that

> [@kbogart-81b6c89deee9](#):
>
> 1. Because Type-5 LSAs are flooded throughout the entire OSPF domain, **they don’t belong to any one specific area.** That’s why in the output of “show IP ospf database” they are at the end of the output and no area value is associated with them.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ine/original/1X/2871897cd1eecd4b22d71c0a060e879a6838f527.png)

but sir that`s totally weird to me because type-7 nssa external lsas are also external routes but as you can see there is area 2 indication here  
the type-7 nssa external lsas are not belongs to ospf domain like the type-5 external lsas

---

<div class="post-metadata">

**Author:** ![kbogart-81b6c89deee9](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kbogart-81b6c89deee9](https://legacy-community.ine.com/u/kbogart-81b6c89deee9)\
**Post date:** [July 31, 2022, 6:31pm UTC](https://legacy-community.ine.com/t/ospf-default-information-originate-always/2675/15 "2022-07-31T18:31:02Z")

</div>

Type-7 External LSA do not get flooded throughout the entire OSPF domain like Type-5’s do. Type-7 LSAs, are like Type-1’s through Type-4’s. Once they get originated by an ASBR in Area-X, they must stay in Area-X. In this case, Area-X must be configured as a Not So Stubby Area. That’s why Type-7’s are associated with an area in the output of “sho ip ospf database”.
