RIP configuration LAB

Video Activity

RIP Configuration Lab This lab lesson is a demonstration of RIP. We run the RIP configuration to show how to configure and what each component is configuration specific. For example, because Static Routers have an administrative distance of 1 and RIP has an administrative distance of 120, only the direct routers are connected for this lab to demons...

Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
27 hours 46 minutes
Difficulty
Intermediate
CEU/CPE
31
Video Description

RIP Configuration Lab This lab lesson is a demonstration of RIP. We run the RIP configuration to show how to configure and what each component is configuration specific. For example, because Static Routers have an administrative distance of 1 and RIP has an administrative distance of 120, only the direct routers are connected for this lab to demonstrate how forwarding decisions are made. As such you'll also learn why RIP would not work if the Static Routers previously connected remained an active part of this network lab exercise.

Video Transcription
00:04
So now we're going to do a route information protocol lab
00:07
and I'm going to run rip betweens router to a one rather one. And rather, too. We're going to exclude Router Three and rather four from this lab.
00:18
So let's go to rather chew one.
00:22
I've already erased the static routes that we had on these routers. If you check there, there are no es is rather to one is on Lee aware off is directly connected network.
00:36
The reason I did that is because static routes have an administrative distance off one.
00:42
And as you will see shortly, route information protocol has an administrative distance of 1 20
00:49
So if our static routes were in place
00:52
for the router to make affording decision, if two routes to the same destination are present in the routing table or on the router, the router will install the one with the lower administrative distance in the routing table. So first addicts were still present. Route information protocol
01:07
with an administrative distance of 1 20 which is higher than one
01:11
would not work.
01:12
So to start the routing process on the router, you say router and then you pick your routing protocol I executed the help feature and we're right for now we're gonna pick rip
01:26
so router R I p for out information protocol,
01:32
routing information for a call.
01:34
Then I'm going to do what is called a network statement.
01:40
Now the network statement defines a list
01:45
or defines a range of addresses.
01:49
If an I p within that range is present on the router,
01:55
the interface on which that I p iss sitting is included in the routing protocol.
02:00
So sometimes you will hear people say that the network statement
02:05
enables the router to send routing updates. No, that is a secondary function.
02:09
Yes, the router Wilson routing updates or start sending routing updates. But the purpose? The primary purpose of the network statement is
02:19
that it defines a range of addresses.
02:23
And if an address is present within that range on the router,
02:28
that then that interferes on which that addresses present is included in that routing protocol.
02:34
So if I say network
02:36
and the only network president on router to one is the 200 network
02:40
200.202 100.0,
02:46
then I'm defining arrange. This is a classy address. 200
02:53
and the ranges between 0.1 and dot to 54. So the first valid address is 202 102 101
03:00
and the last valid address is 202 102 $100 to 54.
03:06
Now, do I have an address within that range present on the router?
03:10
Yep, I do. So if I say I do sure, I p
03:15
enter face
03:19
brief.
03:22
I see that
03:23
I p address 202 102 102 which is within the range between 1020.1 and out to 54 is present
03:31
on serial 010
03:35
Hence, serial 010 is included in the routing protocol. Rip
03:39
Now, as a secondary function serial 010 will start sending routing updates.
03:46
That is the only network that is present on router to a one.
03:52
I saved my work
03:55
and I move on to router one. Now Router one has to interface is the serial link
04:03
and
04:06
the fast lieutenant link. The serial link is the 200 or 200 or 200 as you know, network and the fast Internet is the 1 51 a 1 45.0 network.
04:18
So let's enable the routing protocol
04:23
router rib.
04:26
And then we will include the serial interface in our
04:30
in a rip process
04:31
by saying that we're 202 102 $100.0.
04:36
And since if I look at show do show, I'd be interfaced brief
04:43
Since network 200 exists
04:46
on serial 0000000 is included in ripped.
04:53
Next, I'm going to do network 1 50.101 Whoops
04:59
Network 1 50 That 101
05:01
I could
05:02
type in network where I could shorten it to net.
05:06
It's all the same. 1 50.101
05:14
Now,
05:15
remember, I said
05:16
that rip is a class full routing protocol.
05:20
Well, 1 50
05:23
falls within the Class B range
05:26
1 50 falls within the Class B range,
05:30
and a Class B range
05:32
has this last 16 mask or 255.255 dot 0.0
05:38
Only. The 1st 2 octaves are part of the network. In the last two occupants are reserved as host bets.
05:44
So what? I should type
05:46
since default Class B mask is slashed. 16. What I shoot type is 1 50.101 dot 0.0.
05:54
This is the correct way of doing it. What happens if I type 1 50? That one? 01 About 45.0. The router accepts it.
06:03
But if I look at my shore
06:05
running config
06:10
and I look at rip, I scroll down to rip.
06:13
Look, the router fixed the command for me.
06:16
It took away that 45 just put zero in its place. Now, do not try that on the test. Please. You could have points taken away. I'm just showing you that if you make a mistake, the router fixes it for you. However, you should know that you have to type 1 50 that 101.0 dot zero.
06:35
Since it is a class full network statement since reversion one is class full
06:42
and sub net mask information is not sent in routing updates.
06:46
So we're done with the router one and I will save my work.
06:51
Let's go to router to
06:54
and include
06:57
I'm going to include sure I p interface brief. I'm going to include
07:03
fast Lieutenant 00 in the rip process. Fascinating. As you know,
07:10
turnoff debugging
07:12
fast Internet Jiro
07:14
slash 1.10
07:15
in my rip process and fastest in a zero slash one, about 20 in my rip process.
07:23
So I go to Configure Terminal.
07:27
And then I turned on the rip routing process
07:31
by doing the command router ripped.
07:34
And then I do a network statement for the 1 50 network to include the fastest in at 00 interface and rip.
07:43
And then I do a network statement for the 10 Network. Now 10 and 20 are Class A and Class A. The default mask iss slash eight or 255000 So I'm only gonna type and
07:57
Tenn 0.0 dot 0.0 and then for the network 2020.0 dot zero. If I type in 2020 20 0 the writer will fix it for me. But
08:11
I want to do it correctly on my own.
08:15
We save our work
08:18
and let's go to Router to a one to see if this actually worked
08:24
on router to a one. If I say show I p route,
08:28
you guys see these ours on the left hand side that stands for Rip.
08:35
I could clean this out, put out by a little bit by saying, Sure, I peer out, rip or typing. Sure, I peer out rib,
08:43
and then I only see rip specific routes. It filters out the connected route that we saw previously.
08:50
Now
08:52
it says that network tender, tender 10 slash eight
08:56
is available. Why are 202 102 101 which is rather one serial 00 zero's
09:03
interface address. So Router one is the router that is sending us updates about Network 10
09:11
router to is sending updates throughout her one, and rather one is sending updates, too.
09:16
Router to it. One.
09:18
Now this 1 20 The first number, as I said previously, is always the administrative distance, and the default administrative distance for rip
09:26
is too.
09:30
The second number is the metric
09:33
so Network 10 and Network 20 are two hops away from router to a one,
09:37
and network 1 50 is one. Hop away. Is that true? Yes, it is. If you're sitting on router to a one network 10 and 20 year down here. So network 10 and 21 router hub
09:50
to outer hops away and network 1 50 Is this guy over hair
09:56
between router 123 and four network 1 50 is one router. Ho it One router. Hop away the hot being rather one.
10:09
A few more commands to look at.
10:11
What if I say show
10:13
I p
10:15
turtle calls?
10:18
I see that I'm running Rip
10:22
and I'm sending updates every 30 seconds. Next one, due in nine seconds.
10:26
The route Invalid timers. 180 seconds. The whole downtime is 180 seconds. And the
10:33
route flush timer. Cisco sometimes also calls this the garbage collection timer. I don't know why they like to use fancy language, but the flush timer is 240 seconds. The timer after which
10:48
the route is flushed. If no updates are received
10:52
from the routing table,
10:54
serial 010 is part of the rip process
10:58
and a descending version one. So we are running ripped version one. It can receive version two and one. But since we're sending version one, we're running version one
11:11
now this counter in the bottom Last update was nine seconds ago.
11:18
Last update
11:20
Waas
11:22
13 seconds ago.
11:24
So
11:26
you never want to see this counter increments past 30?
11:31
Because the update timer is 30 seconds. So if you get an exam question Where this update timer
11:39
has is all the way up to, let's say,
11:41
2 20
11:43
You check the flush time because it might not be default on the test, you do the command, so I p protocols. So in this case, the flush time is to 40 which is a default. But on the test, they might have changed it to something else. So in this case, if this update, the last update received was 220 seconds ago
12:01
and it gets flushed after 2 40 the answer One of the answers would be This route is going to be flushed from the routing table after 20 seconds
12:09
because to 20 plus 20 is to 40
12:15
now,
12:16
one more command to show you.
12:20
Let's go to
12:22
Router Rip.
12:28
Hey,
12:30
Okay,
12:31
The command is not part of packet tracer, but I will just
12:39
type it out for you. You guys see that the maximum paths is four.
12:45
Well, this means if four pats available between
12:48
your source and destination or between your router and some destination network
12:54
ripped version one can load balance across those links
12:58
for up to four pats
13:01
so ripped version one will send equal amounts of traffic.
13:05
We're all the links
13:07
for up to four pats. So if tree a present ill used three
13:13
if five a president can't use all five, it will use four of those.
13:18
And when I say equal cost pats, I mean Pat's with equal metric or pats with equal hop count.
13:28
The command
13:30
available on a real Cisco router
13:33
is maximum pats and then the number of Pat's. I believe you can increase that up to 16. But then again, that is platform dependent. It depends on how much money you spent on that router.
13:50
Next command we're gonna see
13:54
is a debug command, and we're gonna go to Router One to see it.
14:00
So I'm going to say debug,
14:03
I'd be rip.
14:07
I'm gonna wait a little bit.
14:09
I need some debugging to pop up on screen, and it did. And what I want to show you is rather, one is sending. We won. Oh, version one update
14:20
to the destination address 255255255255 So ripped Version one sends its updates to the all host broadcast addressed,
14:30
and it is sending updates, too,
14:31
to its serial 000 interface which with the i p address 202 102 101 towards router to a one. And these are the networks and the metrics that it's ending
14:45
the network 10 with the metric of to Network 20 with a network of two metric of two and network 1 50 with the metric off one
14:54
that concludes ripped version one.
14:56
Now we're gonna should switch over to rip version, too.
15:01
So how do I switch over to version two?
15:05
I go under the routing protocol or the router prompt router rip
15:11
and you see it stays configure outer. That means this is the router prompt was commonly known as the router prompt.
15:18
So I enable rip. And then I simply say version
15:22
True.
15:24
So let me go ahead and do that on Router One
15:26
and router to
15:30
So I'm going Thio go to outer rip
15:35
and then version, too.
15:37
The school get router to done.
15:41
I'm going to say router rip
15:46
and then version Chu.
15:48
At this moment I am done configuring ripped version, too.
15:54
Now
15:56
let's go look at our routing table again on router to a one
16:02
new show i P route
16:06
ripped
16:08
now reversion to is a class less routing protocol,
16:14
which means sub net mask information is sent in the routing updates. Which means I should not be seeing this default slash it mass for the 10 network.
16:26
I should be seeing a slash 24 mask because that's what exists on router to and to prove it, I'll go to Router to
16:36
and show you the running config. Do show, run or running
16:41
gun fig.
16:45
And if you see
16:47
the 10 networks
16:49
have a slash 24 mask 10 and the 20 networks have a slash 24 mask, which is
16:56
2552552550 not a slash aid mask, which is 255000
17:03
Well, the reason being,
17:07
even though
17:08
sub net mask information is being sent in the routing updates
17:12
Ripped version to auto summarizes
17:15
network addresses to the class full boundary. So even though this should say $10.10 dollars 10 not zeros last 24 by default, Rip creates a summary summary mean meaning a bigger network that encompasses the smaller slashed 24 network.
17:33
This slash eight network encompasses more addresses because they are
17:37
24 host bits
17:41
a slash 24 only has eight host bits. So a splashy eight network is a bigger network with a bigger host range than this last 24 network
17:52
ripped version to auto summarizes to the class full boundary. By default,
17:56
however, we can turn off this behavior.
18:00
So let's turn it off.
18:03
We say No
18:06
Otto summary
18:08
on router to a one
18:11
and let's go get that down on Router one and router to know Auto summary on Router
18:18
two.
18:18
Ah Rather one,
18:21
actually, and then no auto summary.
18:25
Go back into the routing process and say, You know
18:30
no Otto Summary on router to
18:36
And now let's go check our routing table on router to a one
18:41
do show. I'd be route rip,
18:47
huh? Now what do we see?
18:49
Well, what we see
18:51
as you see the network slash eight still in your outing table,
18:56
But the 2020 20 slash
19:00
2020 $20.0 slash 24 network is also there, and the 10 10 $10.0 slash 24 network is there.
19:07
Same for the 1 50 network. The 1 51 010 zero's last 16 network is there like it was previously right here before the new auto summary command was executed. But now the correct address is also here, which is the UN summarized address. The 1 51 a 1 45.0
19:26
I will show you why this happens in about a minute
19:30
now. I waited a total I waited a total of 180 seconds because now router to a one is getting updates for the 1 51 01 45.0 slash 29 network,
19:45
not for the 1 51 on one
19:48
0.0 slash 16 network. So after 180 seconds or three minutes passed by now in the routing table, it says this network is possibly down.
19:59
OK, the 10 and the 20 networks are, for some reason still getting updates. But this this should also soon say that these networks are possibly down.
20:08
The 20 network now say is this network is possibly down,
20:12
and the 10 network says this network is possibly down because updates for the $10.0 dollars you know
20:18
0.0 slash eight network have stopped and updates for the $10.10 dollars $10 0 networks are coming through. So after 180 seconds, which is the route invalid timer. As I said before that this network, the previous ones, the slash eight,
20:34
the slash eight and this last 16 networks say it's possibly down.
20:38
After 240 seconds, these routes will get flushed from the routing table.
20:47
So we're close closing in on that time,
20:52
I have executed the du de Bug I P route routing command. So when these commit, when these routes gets flushed from the routing table, I should see something on screen. So I turned the camera off and I waited the length of the route flush timer. Otherwise we would have been sitting here in silence
21:11
and look what happened.
21:15
Route the Route 1 51 01
21:18
0.0 This last 16 route got deleted from the routing table,
21:23
so it says delete 1 51 0100 And the rip metric that had received to delete the route is a metric off 16. So router one and it there Go Network 20 and Network 10 also getting deleted from the routing table with a hot count of 16
21:42
So why did this happen?
21:45
Well, because router one
21:48
sent
21:49
router to a one a poison drought with an infinite hop count and said, Delete these routes from your outing table
22:00
turnoff, debugging and look at our routing table again.
22:06
And the slash eight and slashed 16 networks are gone. Now we see the correct mask for the networks, the 24 the 29.
22:15
So all is good. This is still the administrative distance. This number is still the hop count. So the first number is always the administrative distance. The second number is always the metric. In this case, the administrative distance is
22:29
1 20 the hop count is true.
22:33
Now let's go to router one
22:36
last little tidbit
22:37
and said debug
22:41
I p rip,
22:44
I'm gonna wait on some update to go through.
22:48
This was received in from
22:52
Router to I'm waiting for rather one to send up an update.
22:57
Okay, so you should see that rip version to sends its updates to the monkey cast address to 24 009 not to 55255255255 So a reversion to updates are sent 2 to 24 009
23:17
Now, what happens if I shut down my fast Internet link
23:22
Fast? Ethernet
23:23
zero slash zero link. What happens if I shut that down? Well, let's see.
23:29
I say shut down.
23:37
Okay? Nothing happened.
23:40
Do you face all No shots,
23:45
You both. I'd be ripped.
24:00
No,
24:06
Give me a second here.
24:07
So
24:08
what I'm going to do now
24:11
is demonstrate route poisoning.
24:12
I'm gonna go to outer to one and Sadie, bug eyed, be ripped
24:18
and debug I p rip events. And then I'm going to go
24:22
check my routing table.
24:26
Make sure that 10 of the 20 networks are here
24:27
and they are here.
24:30
And I'm going to shut down the fast Internet link on router one. So I'm going to shut down this link router. One should send router to a one, a poisoned update about the 10 and 20 networks.
24:42
So let's see if that works.
24:45
I say shut down on Route A one
24:48
and on router to a one. You immediately see the network 10 and 20 were advertised to route or to a one and even the 1 50 network with a hop count of 16 which is a poisoned route since 16 is an infinite hop count in rip for rip.
25:07
And with that note, this concludes the rip portion of the lab. We're gonna go ahead and remove ripped from each one of these routers by executing the command. No router rip.
25:25
Next topic is E I G R P.
Up Next