0% found this document useful (0 votes)
36 views5 pages

LAB 3 Configuring VLANs On A Switch

The document outlines a lab exercise focused on configuring VLANs on a Cisco switch to separate network traffic among different departments. It details the setup, including the necessary hardware, steps for creating VLANs, assigning ports, and verifying connectivity between PCs. Additionally, it poses an assignment question regarding VLAN configuration on multiple switches.

Uploaded by

moosaishfaq461
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views5 pages

LAB 3 Configuring VLANs On A Switch

The document outlines a lab exercise focused on configuring VLANs on a Cisco switch to separate network traffic among different departments. It details the setup, including the necessary hardware, steps for creating VLANs, assigning ports, and verifying connectivity between PCs. Additionally, it poses an assignment question regarding VLAN configuration on multiple switches.

Uploaded by

moosaishfaq461
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

LAB 3: Configuring VLANs on a Switch

Objective: Set up VLANs to separate network traffic.


Topology

• One Switch
• Two PCs connected to different VLANs

VLAN stands for Virtual Local Area Network. A VLAN allows you to logically divide a physical network into
separate, isolated networks—even if all devices are connected to the same switch.

Example:
Imagine a single office switch with:
• HR computers
• Sales computers
• Guest computers
Without VLANs, they’re all in one big network, which is insecure and inefficient.
With VLANs:
• IT_Department is isolated in VLAN 10
• CS_Department is in VLAN 20
• ADP_CS is in VLAN 30
Even though all are connected to the same switch, they can’t talk to each other unless explicitly
allowed (e.g., using a router).
Scenario Setup
We'll use:
• 1 Cisco Switch
• 6 PCs (e.g., PC0, PC1, PC2, PC3, PC4, PC5)
• VLAN 10 (for PC0 and PC1), VLAN 20 (for PC2 & PC3 ), and VLAN 30 (for PC4 & PC5)

Step 1: Open Cisco Packet Tracer


• Start a new project.
• Drag and drop a Switch onto the workspace.
• Drag and drop 6 PCs.

Step 2: Connect the Devices

Step 3: Assign IP Addresses to PCs as shown in figure


Step 4: Configure VLANs on the Switch
Click the Switch > CLI tab > Press Enter
Switch> enable
Switch# configure terminal
Step 4.1: Create VLANs
Switch(config)# vlan 10
Switch(config-vlan)# name
IT_Department
Switch(config-vlan)# exit

Switch(config)# vlan 20
Switch(config-vlan)# name
CS_Department
Switch(config-vlan)# exit

Switch(config)# vlan 30
Switch(config-vlan)# name
ADP_CS
Switch(config-vlan)# exit

Switch(config)#do show vlan


Step 5: Assign Ports to VLANs

Switch(config)# interface fa0/1


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# exit

Switch(config)# interface fa0/2


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# exit

Switch(config)# interface range fa0/3-4


Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 20
Switch(config-if)# exit
Switch(config)# interface range fa0/5-6
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 30
Switch(config-if)# exit

Now check reply from each PC by pinging them

→I have checked PC1 by ping with IP of PC0


and PC2 as shown in figure.

Note: Helping tutorial available at


https://www.geeksforgeeks.org/configuring-
and-verifying-vlans-in-cisco/
Assignment Question: How to configure VLAN on multiple switches? For example, a reference
network has shown in the following figure. How can we configure it in Cisco Packet Tracer?
(Note: You can make your own network with atleast two switches)

You might also like