Jeremy's IT Lab
Day 08 LabSubnetting

Configuring IP Addresses

10m3 chapters51 cues6 cards1 lab
Day 08 LabYT: e1jbvyMeS5I
00:00 / 10:06

Synchronized Transcript

51 cues indexed • Click dialogue or words to jump
Jeremy

Welcome to Jeremy’s IT Lab. This is a free, complete course for the CCNA 200-301. If you like these videos, please subscribe to follow along with the series.

Jeremy

Also, please like and leave a comment, and share the video to help spread this free series of videos. Thanks for your help. Let’s get started.

Jeremy

In this lab we’ll configure IP addresses on a Cisco router. This is like the demo topology I used in Day 8’s main video, I just changed the IP addresses.

Jeremy

We still have one class A network, 15.0.0.0/8, one class B network, 182.98.0.0/16, and one class C network, 201.191.20.0/24.

Jeremy

Let’s get started. The first step is to configure R1’s hostname. I haven’t done any configurations yet on R1, so it still has the default hostname of ‘router’.

Jeremy

Let’s go on to the CLI of R1. Now I’ll use enable to enter privileged exec mode. Then, to configure the hostname, we have to be in global config mode, so ‘conf t’.

Jeremy

Now let’s set the hostname. Hostname R1. Okay, you can see the prompt changes to display the new hostname.

Jeremy

That’s all for step 1. Step 2 is to use a ‘show’ command to view a list of R1’s interfaces, their IP addresses, status, etc.

Jeremy

Do you remember what command that is? It’s a very helpful command which you’ll use a lot as you configure Cisco routers. It’s show ip interface brief.

Jeremy

But as you can see, the command doesn’t work. Why is that? Well, its because ‘show’ commands are normally done from privileged exec mode.

Jeremy

However, let me use the ‘up’ arrow to return to the previous command, then I’ll use the shortcut ‘control A’, so hold the control key and press A, and then cursor returns to the beginning of the line.

Jeremy

Then, type ‘do’ in front of the command, and now it lets me enter the command from global config mode. Now you can see a list of interfaces, their IP addresses, which are unset at the moment, and their statuses.

Jeremy

Remember, the ‘status’ column indicates the Layer 1 status. Currently their status is administratively down, because Cisco router interfaces have the ‘shutdown’ command applied to them by default.

Jeremy

The protocol column indicates the layer 2 status of the interface. Because layer 1 is shutdown, layer 2 cant operate, so they are all down.

Jeremy

We will configure gigabitethernet0/0, 0/1, and 0/2 in this lab, so they should all become UP, UP afterwards.

Jeremy

Step 3 is to configure the appropriate IP addresses on R1’s interfaces, and enable them. We are also instructed to configure appropriate interface descriptions.

Jeremy

Let’s start on the gigabitethernet0/0 interface. Just for this first interface, I’ll type out the whole command.

Jeremy

Interface gigabitethernet 0/0. There we go, as you can see the prompt has changed to show that I’m in interface configuration mode.

Jeremy

Let’s configure the IP address. Once again, I’ll use the full commands for this first interface. Ip address 15.255.255.254, now what’s the appropriate subnet mask for a /8 prefix length?

Jeremy

It’s 255.0.0.0. Now let’s configure a description. I’ll indicate that this interface is connected to switch 1.

Jeremy

description, I'll put two hashtags, to SW1, and then again, hashtags. You can use different descriptions if you want, this is just how I do descriptions.

Jeremy

Finally, let’s enable the interface. No shutdown. Immediately, I get two messages indicating that the interface has come up.

Jeremy

Before checking on the status of the interface, I’ll configure the other two interfaces. To switch to configuring another interface, I don’t have to exit back to global config mode first.

Jeremy

I can just type ‘interface g0/1’, and now I’m in interface config mode for gigabitethernet 0/1. Let’s set the IP address.

Jeremy

IP address 182.98.255.254. The subnet mask for a /16 prefix length is 255.255.0.0.

Jeremy

And the description. Description ## to SW2 ##. Let’s enable it. No shut.

Jeremy

Okay, now let’s go to the last interface. Int g0/2.

Jeremy

Ip address 201.191.20.254, and the subnet mask for a /24 prefix length is 255.255.255.0.

Jeremy

Next, the description. Description ## to SW3 ##. Finally, let’s enable it.

Jeremy

No shut. Okay, since we’re done with the configurations I’ll use the command ‘end’ to go back to privileged exec mode. Alternatively, I could have used the ‘exit’ command twice.

Jeremy

Once to return to global config mode, and then a second time to return to privileged exec mode. Now let’s check on the status of the interfaces.

Jeremy

Show ip interface brief. Now you can see the IP addresses we configured, the method lists ‘manual’ instead of unset, and the layer 1 and layer 2 statuses of the interfaces are up and up.

Jeremy

Now, step 5 says to view the running config to confirm the changes, and then save the Show running-config.

Jeremy

Here are the interfaces. You can see the descriptions, and ip addresses we configured. Notice the default duplex auto and speed auto commands.

Jeremy

Also, if you look at the vlan1 interface, you can see the shutdown command, which as I said is applied by default to cisco router interfaces.

Jeremy

Okay, let’s save the config. I mentioned in a previous video that there are a few ways to save the config. Copy running-config startup-config.

Jeremy

Write memory. Or, just write. I like to use the shortcut version of write, W R. There we go.

Jeremy

Step 6 is to configure the IP addresses of PC1, PC2, and PC3. I’ll go on PC1 first. To configure the IP address, click config up here.

Jeremy

First, notice that I pre-configured the gateway here. I’ll talk about what the purpose of the gateway is when we talk more about routing, but notice that its R1’s IP address.

Jeremy

Now, to configure the PC's IP address, click on fastethernet0 here, that is PC1’s network interface card. And then here you can configure the IP address.

Jeremy

15.0.0.1. And look at the subnet mask. It automatically fills in 255.0.0.0, since this is a class A address.

Jeremy

Okay, now we can exit out of here. Let’s do the same on PC2. Click on PC2. Click config.

Jeremy

Click on fastethernet0. The IP address is 182.98.0.1, and once again it automatically fills in the subnet mask, this time 255.255.0.0 because this is a class B address.

Jeremy

Now let’s go on PC3. Click config. Fastethernet0. IP address of 201.191.20.1.

Jeremy

And this time the subnet mask is 255.255.255.0, for this class C address. Okay, finally let’s go back to PC1 and try to ping.

Jeremy

Click desktop, then command prompt. Now I’ll try to ping PC2. Ping 182.98.0.1.

Jeremy

Okay, looks like PC1 can reach PC2. How about PC3? Ping 201.191.20.1.

Jeremy

Great, PC1 can ping PC3 as well. So, in this lab we looked at how to configure IP addresses on router interfaces, how to configure interface descriptions, and how to enable interfaces with the ‘no shutdown’ command.

Jeremy

We also configured IP addresses on PCs in packet tracer and confirmed reachability with ping. That’s all for this lab. Thank you for watching.

Jeremy

Please subscribe to the channel, like the video, leave a comment, and share the video with anyone else studying for the CCNA. If you want to leave a tip, check the links in the description.

Jeremy

I'm also a Brave verified publisher and accept BAT, or Basic Attention Token, tips via the Brave browser. That's all for now.

Keyboard shortcuts

Shortcuts are ignored while you are typing in a search box, note field, or the scratchpad.

Playback

SpaceK
Play or pause
←→
Seek 5 seconds
JL
Seek 10 seconds
C
Toggle in-video captions

Scrubber (when focused)

←→
Seek 5 seconds
Shift←/→
Seek 10 seconds
Page UpPage Down
Seek 30 seconds
HomeEnd
Jump to start or end

Flashcards

Space
Reveal the answer
1234
Grade Again / Hard / Good / Easy

Navigation

←→
Move between study-mode tabs
HomeEnd
First or last study-mode tab
?
Open or close this sheet