Vlan Trunking
Vlan Trunking
Vlan Trunking
Topology
Addressing Table
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.
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 11
Lab - Configuring VLANs and Trunking
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 are Cisco Catalyst 2960s with Cisco IOS Release 15.0(2) (lanbasek9 image). Other
switches and Cisco IOS versions can be used. Depending on the model and Cisco IOS version, the
commands available and output produced might vary from what is shown in the labs.
Note: Ensure that the switches have been erased and have no startup configurations. If you are unsure
contact your instructor.
Required Resources
• 2 Switches (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
• 3 PCs (Windows 7, Vista, or XP with 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
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 11
Lab - Configuring VLANs and Trunking
d. Configure the IP address listed in the Addressing Table for VLAN 1 on the switch.
e. Administratively deactivate all unused ports on the switch.
f. Copy the running configuration to the startup configuration.
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 11
Lab - Configuring VLANs and Trunking
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
99 enet 100099 1500 - - - - - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 11
Lab - Configuring VLANs and Trunking
S1(config-if)# no ip address
S1(config-if)# interface vlan 99
S1(config-if)# ip address 192.168.1.11 255.255.255.0
S1(config-if)# end
b. Issue the show vlan brief command and verify that the VLANs are assigned to the correct interfaces.
S1# show vlan brief
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 11
Lab - Configuring VLANs and Trunking
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 11
Lab - Configuring VLANs and Trunking
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, what VLAN is port F0/24 assigned to? What happens to the traffic destined to the
host attached to F0/24?
Note: Before removing a VLAN from the database, it is recommended that you reassign all the ports
assigned to that VLAN.
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 11
Lab - Configuring VLANs and Trunking
Why should you reassign a port to another VLAN before removing the VLAN from the VLAN database?
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 11
Lab - Configuring VLANs and Trunking
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 11
Lab - Configuring VLANs and Trunking
Directory of flash:/
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 11
Lab - Configuring VLANs and Trunking
Directory of flash:/
Reflection
1. What is needed to allow hosts on VLAN 10 to communicate to hosts on VLAN 20?
2. What are some primary benefits that an organization can receive through effective use of VLANs?
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 11