IP Addressing LAB
Video Activity
IP Addressing Lab For this lesson, we begin by assigning IP address to each router. So you'll learn how to configure and assign IP addresses to devices with unassigned IP addresses that are in Administratively Down Mode. You'll learn how to ping to confirm your setup configuration and learn what it revealed from the ping's output data.
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
IP Addressing Lab For this lesson, we begin by assigning IP address to each router. So you'll learn how to configure and assign IP addresses to devices with unassigned IP addresses that are in Administratively Down Mode. You'll learn how to ping to confirm your setup configuration and learn what it revealed from the ping's output data.
Video Transcription
00:04
we're back to our lab. First thing we're gonna do is we're gonna sign I P Addresses to Router one interface at 00
00:11
Router to interface at 00
00:15
Router three Interface, AB 00
00:18
and Router four Interface at 00 So that's going to rather one.
00:24
Maximize it.
00:26
And let's look at our interface at 00
00:31
So show
00:32
interface fast. Internet zero slash zero.
00:37
Now, real quick, I'm gonna go back. Why? I'm assigning I p addresses to these four interfaces. Well, because they reside on the same land. You see this land in the middle with the four switches? So, Bo, all four, these routers reside on the same data link on the same land,
00:57
so
00:57
we're gonna pick an I p. Address ing scheme to assign to
01:00
Roger one router to Router three and router 400
01:06
I'm going to use the network 1 51 01 45.0
01:11
And the mask I'm gonna pick for 1 51 1 45.0 is a slash 29 mask, which is 255255255 to 48.
01:21
Why did that pick us last 29
01:23
Because when you write it out in binary with a slash 29 the value of the last bit on is eight. So you get addresses between 80.1, which is about first valid address and 0.6, which is your last valid address 0.7 would be my broadcast
01:42
and 0.8 would be where my next network starts.
01:45
So since I have four
01:47
routers,
01:49
since I have four routers,
01:52
I need four addresses. So it's last 29 is the closest fit. Slashed. 28 would yield me 15 addresses because the value of the last bit turned on its 16 and slashed 30 would yield only two addresses because the value of the last bit on is four. Minus two is two
02:12
with 16
02:14
which last 28. I mean, you get 15 total addresses because the value of the last bit turned on its 16.
02:20
So 16 minus two is 14 14 addresses is way too many,
02:24
which last 29. The value of the last bit turned on is eight
02:30
so minus two. I get six addresses. Yes, I'm wasting, too, because I only need four here, but that's the least amount of waste.
02:39
So I'm gonna go back inside rather one
02:44
and look at my F zero slash zero interface.
02:49
And I see that by default, a router interface is an administratively down mode.
02:54
So by default, a router interface is administratively down.
03:00
The M two of this interface or the maximum transmission unit, is 1500 bytes and the band with IHS 100 megabits per second or 100,000 kilobits
03:12
for a second.
03:14
There's another command you can use to look at all the router into faces at the same time the command is and it is actually one of my bread and butter commands.
03:23
This is the command I execute first when I'm solving a problem and I run into,
03:30
uh when I run into a problem in my lab or ed work
03:34
and the command being show I p
03:37
interface
03:38
brief.
03:43
And you see this router has one too.
03:47
34 interfaces tour from our Internet interfaces and tour for my cereal interfaces.
03:54
I'm just gonna tell you that facet in at 00 and serial 000 r unused other two are just sitting there unconnected to anything.
04:03
The I P address is not a sign yet.
04:06
and the port is an administrative lied down mode.
04:14
Now,
04:15
to make changes to report a first need to go into that port.
04:20
So I'm gonna go into interface Fast Ethernet zero slash zero
04:28
zero slide zero.
04:30
And now I'm gonna assign it an I P address.
04:32
So since this is a router one, I'm just going to make this 1 51 a 1 45.1
04:40
So to assign an i p address the commands in Texas, the word I p
04:45
than the word address.
04:46
Then if I execute the help feature,
04:49
it asked me
04:51
for the i p address, which is
04:55
1 51 a 1 45.1
05:00
Then once again, if I execute the help feature,
05:02
I'm asked for a sub net mask, which is 255255
05:09
That too 55 to 48.
05:13
Unfortunately, and I hit enter for the command to take. Unfortunately, Cisco routers up until now, don't do the slash feature
05:23
when you're assigning I piece, it would be nice if we could have just said I p address 1 51 1 45.1 slashed 29. But it just doesn't work that way.
05:32
Next. Since the interface by default is an administratively down mode, I'm going to negate the shut down command. So by default,
05:43
the port is shut down.
05:46
I I'm going to add a no in front off it and hit Enter. And that brings the port up.
05:53
At this point, if I look at my show, do show I p interface
05:59
Brief command again,
06:01
you will see
06:03
that fast. Internet 00 is up
06:08
and up,
06:10
which is good. You want to see up? Up?
06:13
I'm gonna save my work.
06:15
I'm gonna use the shortcut command. I'm going to say do right mem or short.
06:20
Uh, the short form is Just do right or I can say do w r
06:26
Next, I'm gonna go to Router Two and a sign an I P. Address
06:30
and router to for some reason, has
06:33
Oh, it's configuration missing. I'm going to quickly go ahead and do that. No, I p do mean look up.
06:42
Those names are too.
06:45
Line console zero logging sink.
06:49
No exact time out
06:53
and we're done.
06:55
Then I'm gonna go into interface fast Internet zero slash zero and assign it an I P address of 1 51 a 1 45 we can pick not to, cause that's within the valid range.
07:06
Do I need to exit out of conflict line mode to go into the interface? No, I don't. I can simply type in interface facets in at zero slash zero
07:15
kid inner and the prom
07:18
pops me over from config line mode to config i f which stands for interface config Inter Face
07:27
Gonna sign it an I p address
07:29
1 51 01 45.2
07:32
The mask
07:35
and then new Shut down the link again. Bring it up.
07:42
Look at my do show I P interface Brief command
07:46
And I see this interface is up up
07:48
this point I saved my work
07:51
and move on to
07:54
Router three.
07:59
Router three is again missing. This is weird All its config
08:05
So no, I p domain lookout Post name are three line console zero logging sink
08:15
No exact time out.
08:20
Okay, that's takes care for housekeeping can fix next. I'm going to go into the interface fast eating at 00
08:26
and given an i p 1 50
08:31
i p address, I could simply type i p a d d.
08:35
But I don't want to confuse anybody.
08:37
1 51 a 1 45
08:39
45 3 Then the mask
08:45
and again execute the no shutdown command.
08:48
Next, I'm going to see if my work
08:52
make sure this doesn't go missing again. And then look at my interface with the Do Show I p I nt brief command
09:01
again. It says up, up and I'm happy.
09:05
I am going to go to Router four and do the same. Hopefully, writer for hasn't lost and it has lost distant fix. Also, something's going on. You know, I knew Router for has lost its conflicts from yesterday because I already had assigned around her name as our four and I don't see one
09:22
so quickly. Do the housekeeping. No, I p domain dash, Look up
09:28
then lying Const Well host named host name are four than lying
09:35
console zero logging,
09:41
logging
09:43
synchronous
09:45
no exact
09:46
timeout
09:48
and I'm done with my housekeeping. I saved my work.
09:52
Next I'm gonna go into interferes faceted as you know zero
09:56
and assigned an I P address off 1 51 01 45 dot for so router one is 10.1 router to is not to router three is not three and router forest out for it works.
10:11
And the mass to 55255255 to 48.
10:16
No, shut my interface to bring it up
10:18
and check to see if it really is Up, up. So I say, Do show i p interface brief.
10:26
If I could type
10:28
i nt brief
10:31
and I see that the interface is up, up and I am happy
10:37
now
10:39
I'm going to go test to see if this actually worked. So I'm gonna test connectivity
10:46
from router 12 router 23 and four. And I'm going to use the ping utility, which uses the protocol ICMP or Internet Control messaging protocol.
11:00
I'm gonna ping
11:03
1 50 So I'm sitting on route a one. Remember, guys, I'm sitting on route a one
11:09
soaping 1 51 a 1 45.2 which is rather choose a dress
11:15
I'm gonna hit Enter
11:18
and I had an 80% success rate.
11:22
The first ping failed the first i CMB packet sent failed. The next four succeeded.
11:28
There's a reason for that.
11:30
If I do a second ping to router to all five will succeed and I get 100% success.
11:37
I will. Ping Router three now just changed glass octet
11:41
up. Arrow key. Bring up The command changed the last October 2.3.
11:46
Once again, you will see an 80% success rate. But if I ping it again,
11:52
so you see an 80% success rate. Four out of five pings went through. One failed the 1st 1
11:58
and a second ping yields 100% success rate. Five auto five pings went through.
12:03
Lastly, I'm gonna ping router for
12:09
once again, you're going to see an 80% success rate, but a second
12:13
set up pings that s and use 100% success rate
12:16
80%
12:18
100%.
12:20
Think about why this is happening.
12:22
Well, the answer being
12:26
the first ping fails because router one is doing the art process.
12:31
It doesn't know router to Router three's a router Fours Mac address.
12:35
So it cannot build the frame to send over the pink inside of the frame
12:41
to router to three or four. So, whence that our process, that request and reply process is happening the first ping times out.
12:50
Once that process has happened, Router one has already stored
12:56
router 23 and four is Mac address in It's our Table.
13:00
So since they're already stored the second time I paying, I get 100% success rate
13:05
because Router one already knows the destination Max and can immediately go ahead and build the frame
13:11
to encapsulate the ICMP. Pack it in.
13:15
So let's look at our our cash or our table with command Show I. P. Ark
13:22
and I hit Enter
13:22
and you see router to address is 1 51 1 45 That, too.
13:28
This is its hardware address or it's Mac address and it's been in this table for two minutes.
13:37
This is rather threes. I p. Address $45 3
13:41
and this highlighted portion is Router three's Mac address, and it's been in the our cash or our table for one minute.
13:50
This is rather fours address 1 51 a 1 45.4
13:54
and this is its Mac address
13:58
with it, with the Mac address being in the O. R. Table for one minute.
14:03
Now you don't see an age attached to Router one's own I, P and Mac binding
14:09
because my Mac address won't
14:13
age out
14:13
off
14:16
the our table. It can never age out. If I for some reason wanted to clear my our cash, I could execute the command. Clear.
14:26
I'd be art.
14:30
Okay, so maybe it is clear are clear. I pr works
14:35
on some router routers. You'll notice as you progress in your network engineering career. Sometimes there are minor differences between the oasis. So one router might have one command, and then you it won't work on another router. And you hit the question Mark Command
14:52
to figure out what the proper command is.
14:56
So I could clear out my arm cash if I wanted to.
15:00
And it really didn't work
15:01
on
15:03
on this device
15:05
on Ah, packet tracer. But the clear our cash command will clear out your arm if you needed to for any reason.
15:13
Now, let's make sure the 00 d zero d three b 64 b 01 is actually Router two's Mac address.
15:22
Well, let's find out. I will minimize this
15:26
and go to outer, too.
15:28
And look at the interface in detail. I say show
15:33
interfaces fast. Internet zero slash zero
15:39
and
15:41
the Mac address off. This interface is 00 D's. You know d three B six, b four, b 01 with matches. What is N Router ones are cash
15:54
or our table.
15:56
Now what if I asked you guys So we've looked at the our table. We know how the art process happened. You know how ping happens.
16:04
Let me show you
16:07
another command.
16:08
So if I say debug
16:11
i p i c m p
16:14
i si m p being the protocol that
16:18
ping uses
16:19
the debo command. What it does is takes the internal processing off a router and puts it on screen. A big no, no. In production, you do not use the D book command in production, you can be fired for issuing a debo command at work or in production.
16:37
So this is only used for learning purposes.
16:40
So if I say debug, i p i c m p
16:44
and I go to router
16:45
four and I also say
16:51
debug i p i c m p.
16:55
So now let's send a ping from router 12 router for
17:00
paying 1 51 0 on $45 for
17:04
you See that I sent five icmp messages
17:10
so
17:11
it says echo reply received because router one sent an echo packet over to Router four. It was received from the source Router four, and the destination was us. So this was the echo reply that was received from Router four. If you go to outer four and check
17:30
writer four, we'll say
17:32
I sent an echo. Reply
17:33
my source. Waas
17:36
1 51 1 45 not four, which is its own address and the destination waas 40.1.
17:44
Let's turn off the bugging you. Which stands for Lundy, Bug and all on debug All I could have possibly said, I'll do it a different way on Router one. I could have possibly also said
17:56
no debug FBI, CMP except useless All assume so
18:02
much quicker.
18:03
Now I'm going to say debug I p packet
18:08
and also on Router four. I'm going to say GI bug I p.
18:15
Packet,
18:15
Please Remember, guys do not ever use the Debo command in production. At work, you can be fired. It's a fireable offense because there's so much traffic flowing through a router at a given time. If you said the book, I'd be packing, your screen will freeze and the router me crash
18:33
trying to put all that traffic on screen for you
18:37
It is very process intensive. So do not do this command at work. I cannot stress enough
18:42
anyhow. Now I send a ping from router four. I mean, rather one back to outer four.
18:49
So I'm pretty sure I have it in my command. History used up arrow key to pull it up,
18:56
and I send the pink.
18:57
So let's look at one of the things that I said because I sent five.
19:03
The source address was 1 51 a 1 45.1 which is my local address on Router one.
19:10
The destination de for destination address was 1 51 1 45 That four.
19:15
And it was routed. Wire the routing table.
19:18
This we will see tomorrow what this means
19:21
right now. This is not supposed to make sense to you.
19:26
Then you received a package back, which is the echo reply coming back from router for 1 51 1 $45 for
19:34
and the destination off That packet was 1 51 a 1 45 Not one which is you or rather one.
19:41
You should have also seen a similar occurrence on Router four.
19:45
You saw.
19:48
Let's look at this one right here.
19:52
You see that? The source address with the inbound packet was 1 51 1 45.1 and the destination was your own router, which is router for the one we're sitting on right now.
20:03
And then I sent a message back, which was my echo reply.
20:07
True
20:08
source Address 1 51 1 45.1
20:12
No source Address 1 51 1 45.4 And the destination was 1 51 1 45.1 This was my echo reply packet.
20:22
And this was the echo that I received from Router one.
20:26
I'm gonna turn off debugging
20:29
and we're gonna
20:30
do one more thing and then commence for the day.
20:36
You space all to turn off debugging.
20:38
Now if I asked you guys a question I want you do 10 test connectivity
20:44
from router 12 router. 23 and four in one command. How would you do it?
20:49
Simple
20:52
for the 1 51 01 45 zeros. Last 29 Network 1 51 a 1 45.7 is my broadcast address. Let's see what happens when napping That address
21:06
this pink should go out to everybody.
21:11
And it does. It goes out to 23 and 45 times and 23 whips, too.
21:19
Groups 23 and four. Reply back five times.
21:25
Gonna turn off, keep bugging
21:27
and save my work. And this concludes this part of the lecture. Thank you.
Up Next
Instructed By
Similar Content