OSPF LSA Types Explained

No problem :slight_smile: I’m working on the website today and had Visio open…

Good job Rene, i like your explanations. keep going.


Hi Rene
just a little confused you did not advertise network in R2 so how come it got populated in ospf database table ? and one more question using redistribute command makes a router an ASBR?? whats the difference between advertising a network with network command or using a redistribute command ?

Many Thanks

Hi Muhammed,

R2 has selected as the router ID for OSPF, that’s why you see it in the database:


Redistribution is normally used to import/export prefixes between two routing protocols, for example OSPF and EIGRP. When you configure redistribution on OSPF then it becomes an ASBR (Autonomous System Border Router). Here’s an introduction to redistribution:



Hi Rene,

If the ASBR is in a different area and set the FA to non-zero ( if all condition satisfy for non-zero FA… of course), then does routers in other area use Type4 LSA to recurse Type5 LSAs? or it will use type 3 LSA for FA address to recurse type5 .in other words in this scenario does type 4 LSA is ever looked at?

Hi Akash,

Good question, I think as long as there is a forward address then the router will prefer this instead of using LSA type 4 to lookup the ASBR. Even if the ASBR is in another area. I’d have to lab it up to be sure though.


R1#show ip ospf database

Router id is not

Hi Ajith,

Do you mean in the first example? This happened because I already had a second loopback interface with, that’s why this became the router ID. Maybe I should change this, I can imagine it could be confusing.


LSA type 8 and 9 are for IPv6 OSPFv3, I’ll cover these in a different lesson. LSA type 10 is used for traffic engineering but I doubt that it’s implemented on Cisco IOS.

Hi Rene,

Following the first “show ip ospf database” we can see while not yet configured.

This could be misleading for many.

Thanks for the great content!


Hi Eddi,

I agree, I just fixed it so it shows the correct router ID.


Hi Rene,

Why is show ip ospf database output Type-5 AS External Link States are shown without assigning any area? also if type 5 external routes are in one area then Type-4 LSA will not be present as the same is not necessary to decode the router ID. or just by seeing the absence of Type-4 LSA can we conclude that an area is stub?.. please help very confused.

Hi Suneeth,

We don’t require area numbers to get to the prefix that the LSA type 5 is advertising. The only thing we need is to know is how to get there, which is advertised with LSA type 4.

The absence of LSA type 4/5 only means there is no ASBR, which can also occur if you use regular areas and don’t use redistribution.



Hi, Rene, Do we have a distinct DR/DBR per area? or we would have only one DR/DBR for the the whole OSPF X?

DR/BDR is elected per multiaccess segment. So you can have different dr and bdr in same ospf router if the router have different ethernet connections (same.subnet is not.allowed on router)

Hi Adil,

Like Suneeth explained, the DR/BDR election is done per multi-access segment. Not per area or OSPF domain.


Thank you… Rene and Suneeth!

Would you please explain it a little more! I heard in a video Rene’s saying " Multi access means the ability to access each other mutually. However i don’t know what are the rules for multi access. I mean can you give an example of some networks, multi access and not multi access segments?

19 posts were merged into an existing topic: OSPF LSA Types Explained

Multi Access - Ethernet, frame relay

Non Multi access - Point to point serial links

The best example of multi-access is indeed Ethernet, all devices on the same segment are able to reach each other directly unlike a point-to-point link where there is only one other device on the other end.