Worksheet 5
Student Name: Shubham Verma UID: 24MCA20376
Branch: MCA Section/Group: 1/A
Semester: 4 Date of Performance: 03-04-2026
Subject Name: Network Administration Lab Subject Code: 24CAP-754
➢ Aim: To configure, verify, and troubleshoot inter-switch connectivity using Trunk Ports, VLANs, VTP
(Version 1 & 2), DTP (Dynamic Trunking Protocol), 802.1Q encapsulation, and Native VLAN on Cisco
switches.
➢ Objective:
• To configure trunk ports between switches for multiple VLAN traffic.
• To create and verify VLANs on Cisco switches.
• To configure Dynamic Trunking Protocol (DTP) for trunk negotiation.
• To configure and verify VTP (Version 1 and Version 2) for VLAN propagation.
• To implement 802.1Q trunk encapsulation between switches.
• To configure Native VLAN on trunk links.
• To add and remove VLANs dynamically and test communication between VLAN devices.
➢ Input/Apparatus Used:
Cisco Packet Tracer: Software tool used for simulating networking environments.
➢ Devices:
• 2 Cisco Switches (2960)
• 4 PCs
• Ethernet Cables
➢ Commands:
• switchport mode trunk
• switchport trunk encapsulation dot1q
• switchport trunk native vlan
• switchport mode access
• vtp domain
• vtp mode
• show vlan brief
• show interfaces trunk
• show vtp status
➢ Procedure/Algorithm/Code:
Steps for Configuration:
Basic Switch Configuration:
Switch 1 (SW1) Configuration
Enter Configuration Mode
enable
conf t
hostname SW1
Create VLANs
vlan 10
name HR
exit
vlan 20
name IT
exit
Assign Ports to VLAN 10
int range fa0/1-4
switchport mode access
switchport access vlan 10
exit
Assign Ports to VLAN 20
int range fa0/5-8
switchport mode access
switchport access vlan 20
exit
Configure Trunk Port (connection to SW2)
Assuming Fa0/24 connects SW1 to SW2
interface fa0/24
switchport mode trunk
switchport trunk native vlan 10
exit
Verify VLANs
show vlan brief
show interfaces trunk
Switch 2 (SW2) Configuration:
Enter Configuration Mode
enable
conf t
hostname SW2
Create VLANs
vlan 10
name HR
exit
vlan 20
name IT
exit
Assign Ports to VLAN 10
int range fa0/1-4
switchport mode access
switchport access vlan 10
exit
Assign Ports to VLAN 20
int range fa0/5-8
switchport mode access
switchport access vlan 20
exit
Configure Trunk Port (connection to SW1)
interface fa0/24
switchport mode trunk
switchport trunk native vlan 10
exit
Verify VLANs
show vlan brief
show interfaces trunk
➢ Test Connectivity
• Assign PCs to the appropriate VLANs and test connectivity between PCs in different VLANs using ping and
Traceroute.
• Verify communication between devices connected to trunked ports.
➢ Output:
➢ Learning outcomes (What I have learnt):
1. Understand the concept of VLANs and how they logically divide a network.
2. Configure VLANs on Cisco switches and assign ports to specific VLANs.
3. Configure trunk ports between switches to allow communication between multiple VLANs.
4. Verify VLAN configuration using commands like show vlan brief.
5. Understand the role of Native VLAN in carrying untagged traffic.
6. Troubleshoot VLAN connectivity issues in a switched network.