Lab 4
Lab 4
TRUNKING
Lab-04
Computer Networks
COSC-3201
Lab Instructor:
Mr. Muhammad Tariq Ali
Student Name
Student Roll #
Department
Year/Section
1. OBJECTIVES
Perform an initial configuration of a Cisco Catalyst 2960 switch and PCs.
Configuring VLAN Trunking in Cisco Packet tracer
Lab Task 1:
Virtual LANS:
A virtual LAN is any broadcast domain that is partitioned and isolated in a computer network at the
data link layer.
Step 1:
Step 3: Create VLAN 2 (Name: CS) and VLAN 3 (Name: IT ) on both switches:
Switch1 #config terminal
Switch1 (config)#vlan 2
Switch1 (config-vlan)#name CS
Switch1 (config-vlan)#vlan 3
Switch1 (config-vlan)#name IT
Switch2 >enable
Switch2 #config terminal
Switch2 (config)#int fa0/4
Switch2 (config-if)#switchport mode access
Switch2 (config-if)#switchport access vlan 2
Trunk ports are used when another switch is connected to this interface, and this link is carrying
multiple VLANs (trunk link).
Note: By default, all VLANs are allowed on a trunk. The switchport trunk command
allows you to control what VLANs have access to the trunk. For this lab, keep the
default settings which allows all VLANs to traverse F0/1.
Note: If there is a vlan.dat file located in flash, then the VLAN database does not
contain its default settings.
Step 2: Delete the VLAN database.
a. Issue the delete vlan.dat command to delete the vlan.dat file from flash and reset
the VLAN database back to its default settings. You will be prompted twice to confirm
that you want to delete the vlan.dat file. Press Enter both times.
S1# delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm] S1#
b. Issue the show flash command to verify that the vlan.dat file has been deleted
S1# show flash