3.4.6 Lab - Configure VLANs and Trunking
3.4.6 Lab - Configure VLANs and Trunking
3.4.6 Lab - Configure VLANs and Trunking
Topology
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 - 2019 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 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
2013 - 2019 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.
Question:
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?
Type your answers here.
2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
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?
Type your answers here.
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 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
Why might you want to manually configure an interface to trunk mode instead of using DTP?
Type your answers here.
Issue the show flash command to determine if a vlan.dat file exists in flash.
S1# show flash:
Note: If there is a vlan.dat file located in flash, then the VLAN database does not contain its default
settings.
2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab - Configure VLANs and Trunking
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?
Type your answers here.
Reflection Questions
1. What is needed to allow hosts on VLAN 10 to communicate to hosts on VLAN 99?
Type your answers here.
2. What are some primary benefits that an organization can receive through effective use of VLANs?
Type your answers here.
End of Document
2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com