Jeremy's IT Lab
Day 16 LabSwitch/Route

VLANs (Part 1)

11m4 chapters53 cues5 cards1 lab
Day 16 LabYT: -tq7f3xtyLQ
00:00 / 11:02

Synchronized Transcript

53 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 some basic VLAN configurations, specifically configuring access ports on a Cisco switch, which is what was covered in day 16’s lecture video.

Jeremy

As I said in that video, an access port belongs to a single VLAN, and a switch won’t forward frames between VLANs directly, it must send it to a router first.

Jeremy

This network here is very much like the one I used for the demonstration in the lecture video, featuring three VLANs. VLAN10, the engineering department, VLAN20, the HR department, and VLAN30, the sales department.

Jeremy

Let’s get started with step 1. First up, we must configure the correct IP address and subnet mask on each PC, and we must set the gateway address as the last usable address of the subnet.

Jeremy

We will later configure that address on R1, as it will be the default gateway for each subnet. So, let’s go on PC1 first. From the config tab, let’s enter the gateway address first.

Jeremy

The last usable address for PC1’s subnet is 10.0.0.62, so that will be the default gateway of the subnet, R1’s address.

Jeremy

Next, click on the network interface here, and set the IP address of 10.0.0.1, hit tab, and then adjust the subnet mask to 255.255.255.192, because it’s a /26 subnet.

Jeremy

Okay, that’s all for PC1. I’ll quickly run through the other PCs now. PC2 is next. Go to the config tab, gateway address of 10.0.0.62.

Jeremy

Go to the network interface, IP address of 10.0.0.2, and subnet mask of 255.255.255.192.

Jeremy

Okay, that’s all for the VLAN10 PCs, next VLAN20. So, I’ll go on PC3.

Jeremy

Config. Set the gateway address of 10.0.0.126, the last usable address of the subnet. Then, configure the network interface, address of 10.0.0.65, subnet mask 255.255.255.192.

Jeremy

Okay, now let’s go to PC4. Config, gateway address of 10.0.0.126, then let’s configure fastethernet0.

Jeremy

IP address of 10.0.0.66, subnet mask of 255.255.255.192. Okay, those are the PCs in VLAN20.

Jeremy

Finally, let’s configure PC5 and PC6 in VLAN30. PC5 first. In the config tab, set the gateway address to 10.0.0.190, which is the last usable address of the subnet.

Jeremy

Then, set PC5’s IP address to 10.0.0.129, and subnet mask of 255.255.255.192.

Jeremy

Okay, finally let’s go on PC6. Set the gateway address of 10.0.0.190, and PC6’s IP address is 10.0.0.130, and the subnet mask is once again 255.255.255.192,

Jeremy

or /26. Okay, so we’ve configured all of the PCs, that’s step 1 complete. Step 2 is to make three connections between R1 and SW1, and configure one interface on R1 for each VLAN.

Jeremy

So, I’ll click down here for the connections, and select a straight through cable. I’ve already put the interface labels on the network diagram, SW1’s G0/1 to R1 G0/0, etc.

Jeremy

So, let’s do that. SW1 G0/1 to R1 G0/0. Next is SW1 G1/1 to R1 G0/1.

Jeremy

And then SW1 G2/1 to R1 G0/2. Okay, we’ve made three connections, now let’s configure R1.

Jeremy

Hop on to the CLI, and then enter privileged exec mode with ENABLE. And then, global config mode with CONFIGURE TERMINAL.

Jeremy

Okay, I’ll configure G0/0 for VLAN10, G0/1 for VLAN20, and G0/2 for VLAN30.

Jeremy

So, INTERFACE G0/0. We must assign the same IP addresses that we configured as the gateway addresses for each PC.

Jeremy

Here in VLAN10, that is IP ADDRESS 10.0.0.62 255.255.255.192.

Jeremy

Then, enable the interface with NO SHUTDOWN. Okay, next up G0/1. INTERFACE G0/1.

Jeremy

The gateway address for VLAN20 is IP ADDRESS 10.0.0.126 255.255.255.192.

Jeremy

NO SHUTDOWN. Okay, now G0/2. INTERFACE G0/2. The gateway address for VLAN30 is IP ADDRESS 10.0.0.190 255.255.255.192.

Jeremy

NO SHUTDOWN. Okay, let’s confirm with a quick show command. DO SHOW IP INTERFACE BRIEF.

Jeremy

There are the three gateway address we configured for each VLAN, looks good. For step 3, let’s configure SW1’s interfaces.

Jeremy

Go on to the CLI of SW1. ENABLE. And then CONFIGURE TERMINAL. Okay, now let’s configure the three VLAN10 interfaces at once like this: INTERFACE

Jeremy

RANGE G0/1 COMMA F3/1 COMMA F4/1. Now we are configuring all three interfaces at once. Let’s configure the interfaces as access ports with this command: SWITCHPORT MODE ACCESS It should enter that mode by default, but it’s best to

Jeremy

manually configure it. Remember, an access port belongs to a single VLAN, as opposed to trunk ports which we will cover in Day 17’s lecture video.

Jeremy

Next, let’s assign the VLAN, SWITCHPORT ACCESS VLAN 10. Okay, that’s it. Let’s go on to VLAN20.

Jeremy

INTERFACE RANGE G1/1 COMMA F5/1 COMMA F6/1. SWITCHPORT MODE ACCESS.

Jeremy

SWITCHPORT ACCESS VLAN 20. Okay, finally let’s do VLAN30. INTERFACE RANGE G2/1 COMMA F7/1 COMMA F8/1.

Jeremy

SWITCHPORT MODE ACCESS. SWITCHPORT ACCESS VLAN 30. Let’s check it out. DO SHOW VLAN BRIEF. Okay, our VLANs were created and the interfaces were assigned to the correct VLANs.

Jeremy

But, let’s also change the VLAN names now. VLAN 10. NAME ENGINEERING.

Jeremy

VLAN 20. NAME HR. VLAN 30. NAME SALES. And let’s check once more.

Jeremy

DO SHOW VLAN BRIEF. Okay, the names have been changed. That’s all for step 3.

Jeremy

Finally let’s test connectivity, I’ll do some pings from PC1. Okay, go on to the CLI of PC1, and first I’ll ping to complete the ARP process.

Jeremy

Let’s ping to PC3, in VLAN 20 PING 10.0.0.65.

Jeremy

Okay, so we can reach PC3.

Jeremy

Next, let's ping PC5 in VLAN 30. PING 10.0.0.129. Okay, we can reach PC5 as well.

Jeremy

Now let’s go in simulation mode, and ping PC3 again. Okay, let's do that ping.

Jeremy

PING 10.0.0.65. Okay, so PC1 sends the ping to SW1, then it goes to R1, then back to SW1, then to PC3, and the return follows the same path.

Jeremy

So, R1 is doing the inter-vlan routing for us because it has one interface in each VLAN. Okay, let’s do one more test.

Jeremy

I’ll ping VLAN10’s broadcast IP, which is 10.0.0.63, and let’s see if the broadcast only goes to devices in VLAN10, as it should.

Jeremy

Let’s try. PING 10.0.0.63. Okay, there we go, it is sent to SW1, which then forwards it only to R1 and PC2.

Jeremy

Okay, in this lab we did basic configuration of access ports on a Cisco switch. 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