VLAN Basics 3

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!


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.


IP Address

Mac Address














Handy Host Commands:

To see PC IP address: ifconfig eth1

Ping example: ping -c 4

Trace example: tracepath

To connect to another node within the topology: telnet


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


  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.

      Reply to this comment
  3. BrookeAlexis August 19, 12:41

    Hi. I’m using Packet Tracer 7.3.1 to recreate this and I seem to be unable to find an appropriate switch with more than 2 GigabitEthernet ports on it to use for this and some of the other labs. I was thinking about simply substituting 4 FastEthernet ports for this lesson. Can you tell me which switch I should use in Packet Tracer for this lab or point me in the right direction? Thanks.

    I apologize if this has already been answered elsewhere. I did some searching but didn’t find what I was looking for.

    Reply to this comment
    • certskills Author August 20, 08:18

      No problem. Use the 3650. It and the 3560 can act as layer 3 switches, but with all default config, the switches act as layer 2 switches. And the 3650 gives you a bunch of GigE ports.

      Reply to this comment
View comments

Write a comment

Comment; Identify w/ Social Media or Email


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

Thank you for subscribing.

Something went wrong.