3.4.6 Lab - Configure VLANs and Trunking - Faith Brooks
3.4.6 Lab - Configure VLANs and Trunking - Faith Brooks
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
Objectives
Part 1: Build the Network and Configure Basic Device Settings
Part 2: Create VLANs and Assign Switch Ports
Part 3: Maintain VLAN Port Assignments and the VLAN Database
Part 4: Configure an 802.1Q Trunk between the Switches
Part 5: Delete the VLAN Database
Background / Scenario
Modern switches use virtual local-area networks (VLANs) to improve network performance by separating
large Layer 2 broadcast domains into smaller ones. VLANs can also be used as a security measure by
controlling which hosts can communicate. In general, VLANs make it easier to design a network to support
the goals of an organization.
VLAN trunks are used to span VLANs across multiple devices. Trunks allow the traffic from multiple VLANS to
travel over a single link, while keeping the VLAN identification and segmentation intact.
In this lab, you will create VLANs on both switches in the topology, assign VLANs to switch access ports,
verify that VLANs are working as expected, and then create a VLAN trunk between the two switches to allow
hosts in the same VLAN to communicate through the trunk, regardless of which switch the host is actually
attached to.
Note: The switches used with CCNA hands-on labs are Cisco Catalyst 2960s with Cisco IOS Release 15.2(2)
(lanbasek9 image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model
and Cisco IOS version, the commands available and the output produced might vary from what is shown in
the labs. Refer to the Router Interface Summary Table at the end of the lab for the correct interface identifiers.
Note: Ensure that the routers and switches have been erased and have no startup configurations. If you are
unsure contact your instructor.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
Required Resources
2 Switches (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable)
2 PCs (Windows with a terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
Instructions
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
No.
Can S1 ping S2?
Yes.
If you answered no to any of the above questions, why were the pings unsuccessful?
They were unsuccessful because you cannot ping a device that is on a different subnet without a
default gateway to route traffic from one subnet to the other.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
Note: Current switch technology no longer requires that the vlan command be issued to add a VLAN to
the database. By assigning an unknown VLAN to a port, the VLAN will be created and added to the VLAN
database.
b. Verify that the new VLAN is displayed in the VLAN table.
What is the default name of VLAN 30?
VLAN 0030.
c. Use the no vlan 30 command to remove VLAN 30 from the VLAN database.
S1(config)# no vlan 30
S1(config)# end
d. Issue the show vlan brief command. F0/24 was assigned to VLAN 30.
After deleting VLAN 30 from the VLAN database, what VLAN is port F0/24 assigned to? What happens to
the traffic destined to the host attached to F0/24?
The ports become inactive .
e. Issue the no switchport access vlan command on interface F0/24.
f. Issue the show vlan brief command to determine the VLAN assignment for F0/24.
To which VLAN is F0/24 assigned?
VLAN 1.
Note: Before removing a VLAN from the database, it is recommended that you reassign all the ports
assigned to that VLAN.
Why should you reassign a port to another VLAN before removing the VLAN from the VLAN database?
The VLANS are inactive and this causes them to be unavailable to use until they are re-assigned
to a different VLAN.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
b. Issue the show vlan brief command on S1 and S2. Interface F0/1 is no longer assigned to VLAN 1.
Trunked interfaces are not listed in the VLAN table.
c. Issue the show interfaces trunk command to view trunked interfaces. Notice that the mode on S1 is set
to desirable, and the mode on S2 is set to auto.
S1# show interfaces trunk
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
The information could be exposed if the default settings are used that end users could connect to.
b. Issue the show flash command to verify that the vlan.dat file has been deleted.
S1# show flash:
Question:
To initialize a switch back to its default settings, what other commands are needed?
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
Reflection Questions
1. What is needed to allow hosts on VLAN 10 to communicate to hosts on VLAN 99?
It will require a Layer 3 device .
2. What are some primary benefits that an organization can receive through effective use of VLANs?
Smaller broadcast domains., better security
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com