Discover Link-State Database

CCIE v5.1: Learn the Details of OSPF and its Implementation CCIE v5.1 Learn the details of OSPF and its implementation
35 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€66.52
List Price:  €95.03
You save:  €28.51
£55.40
List Price:  £79.15
You save:  £23.74
CA$97.77
List Price:  CA$139.67
You save:  CA$41.90
A$107.48
List Price:  A$153.55
You save:  A$46.07
S$94.07
List Price:  S$134.39
You save:  S$40.32
HK$544.73
List Price:  HK$778.22
You save:  HK$233.49
CHF 61.85
List Price:  CHF 88.36
You save:  CHF 26.51
NOK kr773.61
List Price:  NOK kr1,105.21
You save:  NOK kr331.59
DKK kr496.19
List Price:  DKK kr708.87
You save:  DKK kr212.68
NZ$119.31
List Price:  NZ$170.45
You save:  NZ$51.14
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,370.95
List Price:  ৳11,959.01
You save:  ৳3,588.06
₹5,916.42
List Price:  ₹8,452.40
You save:  ₹2,535.97
RM312.50
List Price:  RM446.45
You save:  RM133.95
₦117,624.49
List Price:  ₦168,042.19
You save:  ₦50,417.70
₨19,473.08
List Price:  ₨27,819.88
You save:  ₨8,346.79
฿2,426.48
List Price:  ฿3,466.55
You save:  ฿1,040.07
₺2,418.28
List Price:  ₺3,454.83
You save:  ₺1,036.55
B$406.67
List Price:  B$580.99
You save:  B$174.31
R1,268.60
List Price:  R1,812.36
You save:  R543.76
Лв130.09
List Price:  Лв185.85
You save:  Лв55.76
₩98,070.61
List Price:  ₩140,106.88
You save:  ₩42,036.26
₪261.37
List Price:  ₪373.41
You save:  ₪112.03
₱4,133.88
List Price:  ₱5,905.80
You save:  ₱1,771.92
¥10,806.63
List Price:  ¥15,438.71
You save:  ¥4,632.07
MX$1,423.91
List Price:  MX$2,034.25
You save:  MX$610.33
QR255.44
List Price:  QR364.93
You save:  QR109.49
P956.94
List Price:  P1,367.12
You save:  P410.17
KSh9,046.20
List Price:  KSh12,923.70
You save:  KSh3,877.50
E£3,475.04
List Price:  E£4,964.56
You save:  E£1,489.51
ብር8,733.50
List Price:  ብር12,476.97
You save:  ብር3,743.46
Kz63,853.79
List Price:  Kz91,223.61
You save:  Kz27,369.81
CLP$68,157.66
List Price:  CLP$97,372.26
You save:  CLP$29,214.60
CN¥506.84
List Price:  CN¥724.09
You save:  CN¥217.25
RD$4,224.90
List Price:  RD$6,035.83
You save:  RD$1,810.93
DA9,349.94
List Price:  DA13,357.64
You save:  DA4,007.69
FJ$158.89
List Price:  FJ$226.99
You save:  FJ$68.10
Q540.76
List Price:  Q772.55
You save:  Q231.78
GY$14,655.30
List Price:  GY$20,937.04
You save:  GY$6,281.74
ISK kr9,679.61
List Price:  ISK kr13,828.61
You save:  ISK kr4,149
DH699.78
List Price:  DH999.72
You save:  DH299.94
L1,274.52
List Price:  L1,820.82
You save:  L546.30
ден4,093.48
List Price:  ден5,848.08
You save:  ден1,754.59
MOP$561.60
List Price:  MOP$802.33
You save:  MOP$240.72
N$1,270.52
List Price:  N$1,815.10
You save:  N$544.58
C$2,577.69
List Price:  C$3,682.57
You save:  C$1,104.88
रु9,455.06
List Price:  रु13,507.81
You save:  रु4,052.75
S/265.82
List Price:  S/379.77
You save:  S/113.94
K281.99
List Price:  K402.86
You save:  K120.87
SAR262.75
List Price:  SAR375.38
You save:  SAR112.62
ZK1,938.58
List Price:  ZK2,769.51
You save:  ZK830.93
L331.04
List Price:  L472.94
You save:  L141.89
Kč1,685.42
List Price:  Kč2,407.85
You save:  Kč722.43
Ft27,354.11
List Price:  Ft39,078.98
You save:  Ft11,724.86
SEK kr771.99
List Price:  SEK kr1,102.90
You save:  SEK kr330.90
ARS$70,181.20
List Price:  ARS$100,263.16
You save:  ARS$30,081.95
Bs485.08
List Price:  Bs693
You save:  Bs207.92
COP$308,906.07
List Price:  COP$441,313.30
You save:  COP$132,407.23
₡35,572.52
List Price:  ₡50,820.06
You save:  ₡15,247.54
L1,770.13
List Price:  L2,528.86
You save:  L758.73
₲548,589.81
List Price:  ₲783,733.33
You save:  ₲235,143.51
$U2,994.50
List Price:  $U4,278.05
You save:  $U1,283.54
zł289.22
List Price:  zł413.19
You save:  zł123.97
Already have an account? Log In

Transcript

Hello this is your host Habib's Korea. In this lecture we are moving towards actual simulation for for the topic that we have discussed which is the LSA types and we will discover the OSPF link state data databases in in in all of these routers that we see in the topology but mainly we will examine our two because that's the backbone router and we will see we will see the OSPF topology from from our tools perspective. So, so as you know we discussed there the LSA types which is type one which is the router LSA type two network LSA type three which is the summary LSA type four which is the ASB Our summary of essays and type five, which is the autonomous system lsaps. Now, just just a brief, no How about this topology, as you can see we have we have r1, which is acting as an ABR because it's connected to area zero, it's connected to area one.

And similarly it's connected to area two. So it has three interfaces. And each interface is connected to a different area. Our four here is, is acting as a SVR. The reason is there's an external network that is connected to to our four and and let's move on to configure the topology based on the subnet that we have already provided here. We will create some loopback interfaces definitely, like in our five we will create one loopback interface, our one will have one loopback interface and our two will have loopback interface, our three and our four I don't think it's necessary to provide a loopback IP address.

But let's, let's start it's gonna be fun. And hopefully we can get this topology up and running in in the shortest time possible. So let's start with our one. Okay, so I am in the console here for r1 and we will start configuring the interfaces first. IP address 172 30 dot 12 dot two to five to two subnet mask would only give us two hosts interface as the slash zero IP address 172 3213 dot make it two as well. We will configure a loopback address as well.

IP let's let's take a loopback address to be one dot one. And we will also add the deal the router protocol. So, router OSPF one router ID and then we will also add the networks. So the first network that we want to add is the 172 dot 30 dot 12 dot two now that's an area zero Network 13 dot two and that scenario one and that's an area according to our topology and we do have a network which is 192 dot 16 dot 101 in area zero. Let's save it. So r one is configured.

Let's go to r two. Let's bring it up and bring up the console. So similarly r two is up here and we will configure the interfaces interface loopback zero let's give it an IP address of 192 16 dot two dot two. interface FA zero slash zero and the IP address on this end of the router will make a dot one 172 two dot 12 dot one no shut. router, OSPF one. We have two networks here which is 192 dot 16 dot two to zero dot zero dot zero area zero and another network which is the 172 30 dot 12 dot one here is zero.

And we can see the OSPF has formed an adjacency This is great. So the first so, so we have configured that now. We could do actually we could do show IP route. And we can see there's the topology here, which is the there's a route here which is oh and that's the OSPF route that I have here. That's going towards That's getting advertised via 172 30 dot 12 dot two. Now if I look at the show IP, OSPF database, I can see there's a there's a router ID, which is one dot one dot one in this area, it's advertised here and then there's 192 16 dot two dot two which is advertised by r two.

So this is actually a type one link state advertisement here. You can see that but we will get back to this in a shot and shortly, but let's configure first the topology and then we will discuss further about the link states. Okay, thank you. We will be moving now to our three and the Let's wait for the console to come up. Okay, so just logged into our three and let's configure the interfaces interface zero slash zero IP address 172 dot 30 to 30 dot one no shot and let's add a router OSPF one network 172 3013 81 less safe now we will move on to are for. I'm here on our floor right now and we will configure the interfaces as well.

So interface serial zero slash one IP address 172 dot 30 dot four to 1-255-255-2552 252. No Sure. There's another interface here for our four which has the IP address of 172 dot two dot 45 dot two to five, five to 255255225 to no shot Show IP interface brief I just want to say the interfaces are up. Great. Let's add the routing protocol network 172 that 30 dot 14 dot one, area two. So our four is basically as soon interfaces one interface in area two and the other interfaces and an external domain which we will not add it to the OSPF here but what we can do in our four is establish a static route So IP route, we will we will try to reach to the loopback address of our five.

And we're assuming the loopback address is is, is an IP address somewhere outside and an external network and we have to reach it somehow. And it's going via the interface and Justin to our force F Zero slash zero. So it's 172 to 245 dot one In consistent address, okay, so that's good. Let's save the topology, the configuration for our four. Okay, so if I look into so we added the OSPF inflammation we added the static route to the neighboring device and let's jump to our five Okay, so I'm here in our fight over to the same thing we'll configure first interfaces so interface fa, zero slash zero with the IP address of 172 dot 30 dot 45 dot 125525 Five to five, five to 250 to no shot. And we will also configure the loopback address that we were talking about.

The IP address is 100 100 100 dot 1255255 to zero to zero. That's the IP address and no shot, exit, exit. So that's all we can do in R five, we're assuming it's an external network. We cannot add anything to it and we don't have any access to it. But for the purpose of the simulation, we're just giving it an IP address a loopback IP address, so that we can actually our four can reach it. Let's go back to our four And let's see if our static route that we created can actually reach it.

So so we are here in our for let's try to ping 100 100 101. And yes, we can ping it. That's great. So our static route that we added is, is good. Now, if I do show IP route here, there's a static route and there's the directly connected route. I wonder why I'm not seeing the show running config.

Okay, so for some reason we're not able to see the neighboring or any adjacency that's forming in our four. So part of it is really to troubleshoot what the problem is. So we fixed one side of the r four which is getting access to the external network. Internally, it's not working. So the one thing I noticed is we have not assigned it on the router ID. So router OSPF one and let's assign it a router ID of four dot four dot four dot four.

And once we do that, and we exit that and let's see show IP interface brief I just want to make sure that we are actually the issue is the serial interface s zero slash zero is showing protocol down. So called t interface as zero slash zero. shot, no shot. And if I go back and I do show IP interface brief and still it's showing protocol down. So Oh, I see I know what happened. It's not actually we're supposed to configure as zero slash one not as zero slash zero.

My mistake. Let's go back to interface s zero slash zero and do no IP address. Address 172 dot 14 dot 1-255-255-2255 2252. And it's best to shut it down. And let's go to interface s zero slash one IP address 172 dot 30 dot 14 dot 1-255-255-2255 2252 IP address, no shot and that should be it. And yes, I can see the interfaces coming up.

One thing we need to do probably is to Yes, so we had to wait a little bit to get the adjacency and the OSPF database formed. So if I do show IP OSPF I do have routes here show IP route OSPF. I do see it okay so as you can see right now in the show IP route OSPF I don't see the network 400 100 100 dot one but I do have it in my I do have it in my routing table. As you can see I do have this this network in my routing table but when I go to show IP route or show IP route OSPF I don't see it. Okay, one way to do it is to really redistribute that network to OSPF. So, the best way to do is if you go to and pay attention to this because this is really important in in the real world.

So if you do come T and you do router OSPF one and I do redistribute, right. And now I can do static statics subnets Yeah, so that's all you need to do actually. So get it into the show IP show IP route. So we do see it here, that's fine. And we did add the redistribute command into our four. So that should inject our route into the other routers routing table.

So let's, let's now go ahead and look at our two and just investigate the data link. The link state database basically so let's go ahead and do it step by step so we can Okay, so the basically the first command that we will do to investigate the database or to check a database Is the show IP OSPF database. Now the database will have information about all the LSA and that will describe the network topology from this routers point of view. So if I do show IP OSPF, OSPF database. As you can see, I have two database here that's created. And I do see all the networks, right and now we will examine all these networks in the database.

So basically, if it comes to the type one LSA then this is the LSA four type one there you go. And it shows that this one is also type one LSA okay which is also known as the router, router LSA Okay. Now if I also do I can do show IP, OSPF database router self originate, I can see what this router has originated in the topology so it says router link state that's the link state which is the router link state which is type one and this is the link state ID which is basically the the loopback address of the IP address of the router. This is what's advertising and it's connected to a transit network, which is the area zero network here also shows it's an area zero network and the link ID of the designated router to Dr. Is this one 172 32 after two and the router interface that it's going through is this one.

So that's all about the type one LSA. Okay, so let's go back to the to the database itself again show IP, OSPF database. And let's talk about the type two LSA which is known as the network LSA. Now the network LSA is when you look at it, it will be in this area, this area of the database and it will tell you This is the advertisement link it receipts for type two LSA. And that's the other way you can actually investigate type two LSA is by typing show IP OSPF, OSPF database network and you will see exactly the same thing. You will see the link state ID which is the IP address of the designated router which is that and you will also see the advertising router which is the router ID of the of the designated router and you will basically see the details in in a clear picture so, If you basically say if if you want to know what which routers to do so if I do show IP OSPF neighbor so this is the DR one dot one dot one dot one.

And the reason why this became the DVR is because the loopback IP address that we we gave it was one 192 16 dot two dot two. And because it's higher Actually, we gave it 192 16 dot one dot one right. So, this is the, this is the DVR that it shows. So our one is the DVR and it's also the A ABR of the of this topology. So according to the topology, this is the result that we received. Yeah, so.

So we were discussing about the DR here and how did it Find how the r one was elected as the Dr. And the explanation is the interface IP address, which is F Zero slash zero of r1 is higher and it's given 172 dot 30 dot 1230. So that dot 12 the two that's the IP address and that is the reason why this was this was given designated router the role okay. So similarly we will check our one as well and see if it corresponds to the same. So here we are in our one and if I do show IP OSPF neighbor I can see there is the BDR which is actually pointing to a 192 16 dot two dot two with the IP interface of 172 30 dot 12 dot one. And that's a BDR. So in summary in one area, if you have multiple routers in that area, there will be a DR and a BDR.

Election. And that's how that's how this is, this is being these routers are elected for the roles. The interesting part is when there are many routers, they actually talk to the they actually talk to the BDR. And the BDR talks to the Dr. Dr. talks to the BDR. And then the video will again transmit the the updates to the other routers, that's how OSPF works and that's how it convergence is literally It's faster than the other routing protocols. And also because of the areas that helps a lot because because of the areas this scalability is better, it's it's, it's scalable, it's faster, and so on.

So we covered type one type two LSA. Now let's go back to the show IP OSPF database again. And now for the summary basically, which is the type three LSA. This is the area of focus for type three LSA, which is the summary. And the summary is basically provided by the area border router, which is, in this case, area border router is r1. Because it's it's basically connecting all the areas together.

And what it does. r1 is basically taking the information that I received from area one, area two, and it summarizes it and then passes passes it on to r two, and r two sees it in this area of the database. I hope this is clear. You can also see the type three LSA is by just typing. If you just type show IP, OSPF database summary, this is a good command to understand the summary the type three summary. So you can see there's this network here with the link state ID of the network which is network 172 to 30 dot 13.

And there should be another one as well which is this 114. This is the summary. Okay, so now let's move on to the type four LSA which is basically the advertisements for the external routes. So if I again go back to show IP OSPF database, and in here I can see there is a summary ASP link state which is coming from this router ID, which is our four. So in our topology, our four is the one that that's that's injecting an external route into the OSPF and you can see here it's coming from here to the area border router. And the external link states are here hundred 100 dot zero.

And it's shown here. The other command we can use is show IP OSPF database and I can put is br summary. And there you go, this is going to be the D. This is going to give us all the details here. And it's it's a command that makes things easy to understand what's going on in the network and what is the external route coming from. So this is the command that we will be using mostly. And the last one is the type five LSA which is the external LSA is.

Again, it's related to a ISP or router. So if I go back again to show IP OSPF, OSPF database As I stated that dot one is basically the last type five external, there you go type five external link states and if I type show IP OSPF database external that should give me the detailed information about what is there as an external link. And there you go, that's the link state. It tells me it's a slash 24 network mask. That's how we actually put in our static IP route. So we gave it slash 24.

So I hope the end of this topology and this lab that I have demonstrated, you have enough knowledge to go ahead and and investigate and create OSPF network on your own. I believe this was the last chapter of OSPF that I wanted to cover. And it's been it's been great teaching this course. OSPF is a very big routing protocol and it has a lot of in depth information. It can be used in many ways. We have covered the technical aspects of OSPF in a real world environment.

And this should be quite good in giving you information about OSPF in practical world. And I hope you have enjoyed and see you soon again in my next topics or courses that I will be presenting. I hope you can join me in those courses as well. Thank you again and have a wonderful day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.