Lab #7

Download as pdf or txt
Download as pdf or txt
You are on page 1of 35

Lab Repot #7

Name M.Mobeen Tahir


Section : BCE-F-19-A
Registration ID : 191210
Course : Computer Networks
Submitted To : Lab Engr.Uzair
Computer Networks

Table of Contents Page No.

Lab# 3 ....................................................................................................... 3
VLAN (Virtual Local Area Networks) .................................................. 3
Objective: ................................................................................................................................... 3
Introduction: ............................................................................................................................. 3
VLAN: .................................................................................................................................... 3

Post Lab Task .......................................................................................... 5


Task ............................................................................................................................................ 5
Solution: ..................................................................................................................................... 5
Circuit: .................................................................................................................................... 5
Addressing Table: ..................................................................................................................... 7
Step#1 (Configure the Switch) ................................................................................................. 8
Switch#1 ................................................................................................................................. 8
Switch#2 ................................................................................................................................. 9
Switch#3 ............................................................................................................................... 10
Step#3 (verify Connectivity)................................................................................................... 11
Step#4 (Show IOS Version) .................................................................................................... 13
Step#5 (Display VLAN Interface Information) .................................................................... 15
Step#6 (Create and Name two VLAN) .................................................................................. 16
Switch#1 ............................................................................................................................... 17
Switch#2 ............................................................................................................................... 18
Switch#3 ............................................................................................................................... 19
Task#7 (Display VLAN interface information) .................................................................... 20
Switch#1 ............................................................................................................................... 20
Switch#2 ............................................................................................................................... 21
Switch#3 ............................................................................................................................... 22
Task#8 (Assign Ports to VLAN 2) ......................................................................................... 23
Switch#1 ............................................................................................................................... 24
Switch#3 ............................................................................................................................... 25
Task#9 (Display VLAN interface information) .................................................................... 26

1
Computer Networks

Switch#1 ............................................................................................................................... 26
Switch#3 ............................................................................................................................... 27
Task#10 (Assign Ports to VLAN 3) ....................................................................................... 28
Switch#1 ............................................................................................................................... 29
Switch#3 ............................................................................................................................... 30
Task#11 (Display VLAN interface information) .................................................................. 30
Switch#1 ............................................................................................................................... 31
Switch#3 ............................................................................................................................... 32
Task#11 .................................................................................................................................... 33
Conclusion: .............................................................................................................................. 34

2
Computer Networks

Lab# 3
VLAN (Virtual Local Area Networks)

Objective:
This lab exercise is designed for:
 Create a basic switch configuration and its verification.
 Create two VLAN’s, name them and assign member ports to them.

Introduction:
VLAN:
VLANs (Virtual LANs) are logical grouping of devices in the same broadcast domain. VLANs
are usually configured on switches by placing some interfaces into one broadcast domain and some
interfaces into another. Each VLAN acts as a subgroup of the switch ports in an Ethernet LAN.

VLANs can spread across multiple switches, with each VLAN being treated as its own subnet or
broadcast domain. This means that frames broadcasted onto the network will be switched only
between the ports within the same VLAN.

A VLAN acts like a physical LAN, but it allows hosts to be grouped together in the same broadcast
domain even if they are not connected to the same switch. Here are the main reasons why VLANs
are used:

 VLANs increase the number of broadcast domains while decreasing their size.
 VLANs reduce security risks by reducing the number of hosts that receive copies of frames
that the switches flood.
 you can keep hosts that hold sensitive data on a separate VLAN to improve security.
 you can create more flexible network designs that group users by department instead of by
physical location.
 network changes are achieved with ease by just configuring a port into the appropriate
VLAN.

3
Computer Networks

4
Computer Networks

Post Lab Task

Task
Design topology having at least Five Routers. Switches are attached to the
Routers and PC are further connected topo the Switches.
Solution:
Circuit:
I have designed following Circuit on ”Packet Tracer” :

5
Computer Networks

6
Computer Networks

Addressing Table:

Device Interface IP Address Subnet Mask Default


Gateway
PC0 NIC 192.20.1.3 255.255.255.0 192.20.1.1
PC1 NIC 192.20.1.4 255.255.255.0 192.20.1.1
PC2 NIC 192.20.1.5 255.255.255.0 192.20.1.1
PC3 NIC 192.20.1.6 255.255.255.0 192.20.1.1
PC4 NIC 192.20.0.3 255.255.255.0 192.20.0.1
PC5 NIC 192.20.0.4 255.255.255.0 192.20.0.1
PC6 NIC 192.20.0.5 255.255.255.0 192.20.0.1
PC7 NIC 192.20.0.6 255.255.255.0 192.20.0.1

7
Computer Networks

Step#1 (Configure the Switch)

Switch#1

8
Computer Networks

Switch#2

9
Computer Networks

Switch#3

10
Computer Networks

Step#3 (verify Connectivity)

If we try to ping PC’s then it will “Timout” error.i-e Ping PC1 with PC6:

But it will ping within the network i-e Ping PC1 with PC2:

11
Computer Networks

12
Computer Networks

Step#4 (Show IOS Version)

13
Computer Networks

14
Computer Networks

Step#5 (Display VLAN Interface Information)

15
Computer Networks

Step#6 (Create and Name two VLAN)

16
Computer Networks

Switch#1

17
Computer Networks

Switch#2

18
Computer Networks

Switch#3

19
Computer Networks

Task#7 (Display VLAN interface information)

Switch#1

20
Computer Networks

Switch#2

21
Computer Networks

Switch#3

Yes, VLANs are listed.

22
Computer Networks

Task#8 (Assign Ports to VLAN 2)

23
Computer Networks

Switch#1

24
Computer Networks

Switch#3

25
Computer Networks

Task#9 (Display VLAN interface information)

Switch#1

26
Computer Networks

Switch#3

27
Computer Networks

Task#10 (Assign Ports to VLAN 3)

28
Computer Networks

Switch#1

29
Computer Networks

Switch#3

Task#11 (Display VLAN interface information)

30
Computer Networks

Switch#1

31
Computer Networks

Switch#3

32
Computer Networks

Task#11

33
Computer Networks

Conclusion:
In this lab what we discussed and learnt is:
 We learnt about the configuration of switches.
 We learnt about addressing of routers, switches and PC’s
 We learnt about creation of VLAN’s.
 We learnt how to assign different VLAN’s to different ports.

34

You might also like