VLAN Basics 3

certskills
By certskills March 17, 2016 09:05

Short and sweet – how do you create new VLANs and put a couple of ports in each? Today’s lab should be an easy and automatic process before you go take the ICND1, ICND2, or CCNA R&S exams, but getting one more rep in while you’re learning can help. So those of you in the early stages of learning switch commands and VLANs, take 5-10 and do this lab!

Requirements

For this lab we will place two of the GigabitEthernet ports on switch SW1 into VLAN 10, and two other GigabitEthernet ports into VLAN 20 creating two separate broadcast domains on the switch. VLAN 10 will be labeled “office”, and VLAN 20 which will be labeled “research”.

VLANs help reduce CPU overhead on a switch by limiting the ports that receive a broadcast frame. They also enhance security by limiting traffic flow.

The specific rules for this lab are as follows:

  1. On Switch SW1 create VLAN 10 and name the VLAN “Office”. Create VLAN 20 and name the VLAN “Research”.
  2. Configure GigabitEthernet ports 0/1 and 0/2 into VLAN 10.
  3. Configure GigabitEthernet ports 0/3 and 1/0 into VLAN 20.

 

Figure 1: LAN Switch with Two VLANs

Initial Configuration

All ports are currently set to their default settings. The only non-default configuration is that the switch has a hostname SW1 command configured.

Answer on Paper, or Maybe Test in Lab

Next, write your answer on paper. Or if you have some real gear or other tools, configure the lab using them.

You can test your solution in many ways, both with show commands and with ping commands. The show vlan brief command should list the G0/1 and G0/2 interface in VLAN 10, with G0/3 and G1/0 in VLAN 20. The show mac address table command would list learned MAC addresses in VLAN 10 and 20 on the ports as shown in the figure as well. If you changed the four PCs to all have IP addresses in the same subnet, PC1 and PC2 could ping each other, PC3 and PC4 could ping each other, but the hosts in different subnets in this case could not ping each other. (In a real network, a router or Layer 3 switch would be used to route packets between the subnets.)

Do This Lab with Cisco’s VIRL

You can do these labs on paper and still get a lot out of the lab. As an extra help, we have added files for the Virtual Internet Routing Lab (VIRL) software as well. The .VIRL file found here is a file that when used with VIRL will load a lab topology similar to this lab’s topology, with the initial configuration shown in the lab as well. This section lists any differences between the lab exercise and the .VIRL file’s topology and configuration.

Download this lab’s VIRL file!

The .VIRL topology matches this lab topology exactly. The host info does as well.

Host device info:

This table lists host information pre-configured in VIRL, information that might not be required by the lab but may be useful to you.

Device

IP Address

Mac Address

User/password

PC1

10.1.1.1

02:00:11:11:11:11

cisco/cisco

PC2

10.1.1.2

02:00:22:22:22:22

cisco/cisco

PC3

10.3.3.3

02:00:33:33:33:33

cisco/cisco

PC4

10.3.3.4

02:00:44:44:44:44

cisco/cisco

Handy Host Commands:

To see PC IP address: ifconfig eth1

Ping example: ping -c 4 10.1.1.1

Trace example: tracepath 10.1.1.1

To connect to another node within the topology: telnet 10.1.1.1

 

Answers: ROAS Basics 1
Answers: VLAN Basics 3
certskills
By certskills March 17, 2016 09:05
Write a comment

3 Comments

  1. Abdi March 13, 13:01

    Hi Wendell, port 4 is not present, can you please check.it is probably typo is should in place of port G1/0.

    Reply to this comment
  2. Peter August 23, 10:38

    Are VLAN names case-sensitive? In the problem statement you have “Office” and “Research”, in the solution “office” and “research”.

    Reply to this comment
    • CCENTSkills August 24, 16:25

      Hi Peter,
      VLAN names are indeed case sensitive. I’ve changed this post to use all lower case letters in the names so that it matches the answers. Thanks for the note.
      Wendell

      Reply to this comment
View comments

Write a comment

Comment; Identify w/ Social Media or Email

Subscribe

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Search

Categories