4.7 - Lab - Manual - 7 - CN - VLAN Communication Using Packet Tracer
4.7 - Lab - Manual - 7 - CN - VLAN Communication Using Packet Tracer
/ UMT Lahore
Lab Manual # 07
Task-:
Scenario to implement:
In this scenario we have 2 offices of an organization each office has 3 department’s Sales,
Marketing and Finance. We have same LAN so IP addresses will be of the same class. Initially all
department’s PCs can communicate with each other. We can ping from PC1- 10.0.0.1 to all other
pcs having IPs 10.0.0.2 --- 10.0.0.6 and vice versa. It shows broadcast behavior of switches within
same LAN.
Main objective of this LAB is to control/ prevent broadcast communication between these 6 PCs.
So that only relevant department PCs can communicate with each other. (i.e. Sales Department
PC-1 having IP 10.0.0.1 should only communicate with other office Sales department PC-4
having IP 10.0.0.4 in the same way Marketing department PC of Office-1 should communicate
with only Marketing PC of another department and so on …...).
Page 1|5
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore
Step-01:
Assign static IPs to all PCs shown in above Topology.
Step-02: Configuration on Switch0 (Left side – Switch 0)
Click on Switch0 and goto CLI tab
Switch > enable
Switch # config terminal
Switch (config) # hostname Switch0
Switch0 (config) # vlan 100
Switch0 (config-vlan) # name sales
Switch0 (config-vlan) # exit
To check VLANs
Switch0 (config) # ctrl+ Z
Switch0# show vlan
// it will show a list of VLAN created now along with VLAN 1 (default)
To check VLANs
Switch1 (config) # ctrl+ Z
Switch1# show vlan
// it will show a list of VLAN created now along with VLAN 1 (default)
On Switch 0:
Switch0 (config) #interface fastethernet 0/1
Switch0 (config-if) #switchport mode access
Switch0 (config-if) #switchport access vlan 100
Switch0 (config-if) # exit
Step 05: Perform the same above configurations on Switch1 (Right side)
On Switch 1:
Switch1 (config) #interface fastethernet 0/1
Switch1 (config-if) #switchport mode access
Switch1 (config-if) #switchport access vlan 100
Switch1 (config-if) # exit
On Switch0:
Switch0 (config) # interface fastethernet 3/1
Switch0 (config-if) # switchport mode access
Switch0 (config-if) # switchport mode trunk
Switch0 (config-if) exit
On Switch1:
Switch1 (config) # interface fastethernet 3/1
Switch1 (config-if) # switchport mode access
Page 4|5
Lab Manual / CN-5th/ BSSE / SE Dept./ UMT Lahore
Step-7:
Now ping 10.0.0.4 from PC1 having IP 10.0.0.1 it will be successful.
Same way
ping 10.0.0.5 from PC2 having IP 10.0.0.2 it will be successful.
ping 10.0.0.6 from PC3 having IP 10.0.0.3 it will be successful.
Mean all relevant department can only communicate with each other.
End of Lab # 07
Page 5|5