Jeremy's IT Lab
Day 15 LabSubnetting

Subnetting (VLSM)

15m4 chapters72 cues8 cards1 lab
Day 15 LabYT: Rn_E1Qv8--I
00:00 / 14:59

Synchronized Transcript

72 cues indexed • Click dialogue or words to jump
Jeremy

Welcome to Jeremy’s IT Lab. This is a free, complete course for the CCNA. 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. Also, remember to download this practice lab from the link in the description and try it out yourself in packet tracer.

Jeremy

In this lab we will practice subnetting using VLSM, variable-length subnet masks. This will be very similar to the end of day 15’s lecture video, you will subnet a class C network into 5 subnets of different sizes.

Jeremy

So, I highly recommend that you try to complete this lab first, before watching this video to check your answers. We are required to subnet the 192.168.5.0/24 network to provide sufficient addressing for each LAN, as well as the point-to-point connection

Jeremy

between R1 and R2. We will follow the same process that I introduced in Day 15’s lecture video. Assign the largest subnet at the start of the address space, and then the second largest, etc, until you have assigned each subnet.

Jeremy

So, that means we will assign subnets in this order: LAN2, LAN1, LAN3, LAN4, and finally the point-to-point link.

Jeremy

The instructions also say to assign the first usable address to the PC in each LAN, and the last usable address to the router. Finally, we should configure static routes so that hosts in each LAN can reach hosts in the other LANs.

Jeremy

So let’s get started with LAN2. I hope you’ve already solved this lab and are just watching this video to check, since I won’t go step-by-step through each calculation like in the lecture video.

Jeremy

Let me tab out to this document where I’ve calculated all of the answers. So, for LAN2 we must use a /25 prefix length. LAN2 only requires 64 hosts, and as I’ve written below a /25 prefix length allows for 126, but if we used a /26 prefix

Jeremy

length there would only be enough addresses for 62 hosts because we have to subtract 2 for the network and broadcast addresses. So, LAN2’s network address is 192.168.5.0, and its broadcast address is 192.168.5.127,

Jeremy

both /25. Let’s assign the addresses to PC2 and R1. Let me go on R1 first. First, enter privileged exec mode with ENABLE.

Jeremy

Then, enter global config mode with CONFIGURE TERMINAL. R1’s Gigabitethernet0/1 interface is in LAN2, so INTERFACE G0/1 to configure it.

Jeremy

The broadcast address is 192.168.5.127, so let’s configure R1’s IP address as one below it, the last usable address.

Jeremy

IP ADDRESS 192.168.5.126, and for a /25 prefix length the subnet mask will be 255.255.255.128.

Jeremy

Also, let’s enable the interface with NO SHUTDOWN. Let’s confirm our configuration. DO SHOW IP INTERFACE G0/1.

Jeremy

The ‘SHOW IP INTERFACE’ command shows various information about the interface, primarily layer 3 information. You can see here that the IP address has been configured correctly.

Jeremy

You may notice the broadcast address of 255.255.255.255. This address basically functions the same as the subnet broadcast address of 192.168.5.127, and it can be used for any network.

Jeremy

When we configure other IP addresses and use this SHOW IP INTERFACE command, those other interfaces will display the same broadcast address too.

Jeremy

Keep in mind, if a host sends a broadcast to 255.255.255.255, it won't be sent to ALL networks, it will still stay in the local subnet, and a router will NOT route it to other networks.

Jeremy

The subnet broadcast address however, 192.168.5.127 in this case, can be used by hosts in other subnets to send a broadcast to this subnet.

Jeremy

Anyway I think I’ll explain that in a lecture video in the future, so don’t worry about it. I just wanted to explain it since you can see it here. Okay, now let’s configure PC2.

Jeremy

Click on config, then first set the default gateway to R1, 192.168.5.126. Then, click on fastethernet0, and set the IP address and subnet mask.

Jeremy

The first usable address is 192.168.5.1. After you enter it you can press tab, and notice it tries to fill in the subnet mask for me, however since this isn’t a classful network, it’s a subnet, let me change the last octet

Jeremy

to 128. Okay, that’s all for this subnet. The second largest subnet is LAN1. Let me go back to my document and let’s look at LAN1.

Jeremy

So, for LAN1 we will use a /26 subnet mask. LAN1 requires 45 hosts, and a /26 subnet mask allows 62.

Jeremy

The network address is the next address after LAN2’s broadcast address, so it's 192.168.5.128/26.

Jeremy

The broadcast address, with all host bits set to 1, is 192.168.5.191. Let’s configure the router and the PC.

Jeremy

I’ll go back to R1 first. Let’s configure the G0/0 interface with the last usable address.

Jeremy

INTERFACE G0/0. IP ADDRESSS 192.168.5.190 255.255.255.192, which is the subnet mask for a /26 prefix length.

Jeremy

Enable the interface with NO SHUTDOWN, and let’s check. DO SHOW IP INTERFACE G0/0.

Jeremy

The IP address is correct, and you can see the same broadcast address 255.255.255.255. Next let’s configure PC1.

Jeremy

Click on config, set the gateway to 192.168.5.190. Then click on fastethernet0, set the ip address to 192.168.5.129, hit tab, and then change the last octet to 192, for the

Jeremy

/26 prefix length. That’s all for LAN1. Next up is LAN3. Let’s go back to that document.

Jeremy

So, for LAN3 we will use a /28 prefix length, which allows for 14 hosts, exactly the number we need for LAN3.

Jeremy

Keep in mind, in real networking you want to leave some extra room for future growth, but when taking a test do EXACTLY as the instructions say.

Jeremy

The network address is the next address after LAN1’s broadcast address, so it’s 192.168.5.192/28.

Jeremy

The broadcast address is 192.168.5.207. Let’s go configure R2. Enable.

Jeremy

Conf t. Interface g0/0. Let’s configure the last usable address here. IP ADDRESS 192.168.5.206 255.255.255.240, which is the subnet mask for a

Jeremy

/28 network. Enable the interface with NO SHUTDOWN, and let’s confirm. DO SHOW IP INTERFACE g0/0.

Jeremy

So, the IP address is correct. Next let’s configure PC3. Click on config.

Jeremy

Set the gateway address to 192.168.5.206. Click on fastethernet0, IP address of 192.168.5.193.

Jeremy

Hit tab, and then change the last octet here to 240. Okay, that’s all for LAN3. Next is LAN4. Let’s go back to that document.

Jeremy

So, for LAN4 we will actually use a /28 also. LAN4 requires only 9 hosts, so a /29 prefix length, which allows only 6 hosts, would be too small.

Jeremy

The network address is 192.168.5.208, and broadcast address is 192.168.5.223.

Jeremy

Now let’s go back to R2 and configure it’s G0/1 interface. Interface g0/1. Ip address 192.168.5.222 255.255.255.240.

Jeremy

Enable the interface with NO SHUTDOWN. And let’s check, DO SHOW IP INTERFACE G0/1. Okay, the IP address looks correct.

Jeremy

Let’s go to PC4. config. Set the gateway to R2’s address, 192.168.5.222.

Jeremy

fastethernet0, set the IP address to the first usable address, 192.168.5.209, hit tab, and change the last octet of the subnet mask to 240.

Jeremy

That’s all for LAN4. The last subnet we have to assign is the point-to-point connection between R1 and R2. Let’s go back to the document.

Jeremy

So, we can use a /30 or /31, I’m going to go with /30, I just think it’s the safe option to go with on a Cisco test.

Jeremy

So, the network address is 192.168.5.224, and broadcast address is 192.168.5.227.

Jeremy

We’ll use the first usable address for R1, and last usable address for R2. In fact, those are the only two usable addresses.

Jeremy

Let’s go on R1. Interface g0/0/0. Ip address 192.168.5.225 255.255.255.252.

Jeremy

Enable the interface with NO SHUTDOWN. Let’s check it. DO SHOW IP INTERFACE G0/0/0. Okay, the address looks good.

Jeremy

Now let’s go on R2. interface g0/0/0. IP ADDRESS 192.168.5.226 255.255.255.252.

Jeremy

And enable it with NO SHUTDOWN. And finally let's confirm. DO SHOW IP INTERFACE G0/0/0. Okay, no problems here.

Jeremy

Now, the last step is to configure static routes on each router. Each router has three connected networks. Those are the point-to-point link, and LAN1 and LAN2 for R1, or LAN3 and LAN4 for R2.

Jeremy

So, we’ll have to configure two static routes for each router. First, let’s configure the routes to LAN1 and LAN2 here on R2.

Jeremy

Exit, to go back to global config mode. First, LAN1. IP ROUTE, then LAN1’s network address, 192.168.5.128 255.255.255.192, then let me use the question

Jeremy

mark here. Note that you can either specify the exit interface of this router, or the IP address of the next hop. I’ll go with the next hop, 192.168.5.225.

Jeremy

Okay, that’s it. Next, to LAN2, same thing. IP ROUTE 192.168.5.0 255.255.255.128, and then the next hop of 192.168.5.225.

Jeremy

Let’s check the route table. DO SHOW IP ROUTE. Okay, you can see the connected and local routes here, and then the two static routes we just configured.

Jeremy

Let’s go on R1 and configure the routes to LAN3 and LAN4. First, exit to return to global config mode.

Jeremy

So, the route to LAN 3, first. IP ROUTE 192.168.5.192 255.255.255.240, then the next hop of 192.168.5.226.

Jeremy

Okay, now to LAN4. IP ROUTE 192.168.5.208 255.255.255.240 192.168.5.226.

Jeremy

Let’s check the route table. DO SHOW IP ROUTE. Okay, looks like R1 has all of the routes it should. Let’s just try a ping from PC1 to another PC, let’s try PC4, to make sure our routes work.

Jeremy

Really, you should try to ping all other PCs but I’ll just show one. Okay, so from PC1’s CLI, let’s ping to PC4.

Jeremy

PING 192.168.5.209...now, because the ARP process hasn’t completed yet there may be a few failures, but if I keep talking you should see that PC1 can now reach PC4.

Jeremy

Okay, so we have successfully subnetted and configured a network, and then configured static routes to provide reachability.

Jeremy

That’s all for this lab. Thank you for watching. Please subscribe to the channel, like the video, leave a comment, and share the video with anyone else studying for the CCNA.

Jeremy

If you want to leave a tip, check the links in the description. I'm also a Brave verified publisher and accept BAT, or Basic Attention Token, tips via the Brave browser.

Jeremy

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