You are on page 1of 16

NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)

DEPARTMENT OF ELECTRICAL ENGINEERING

EE-4104 Data Communication and Networks Lab


Batch: 2019-2023 Semester: VI Session: Spring-2022

EXPERIMENT NO-05:

____________________________________________________________

Student Name: Yasir Hussain

Registration No: F19603013

Date of Experiment: 03-06-22

Psychomotor Domain Rubric Based Assessment


Levels of Achievement
Unacceptable  Just acceptable  Basic  Good  Excellent  Marks
(0-1)  (2) (3) (4) (5)
1. Ability to conduct an experiment
II. Implementation.

Lab Report Rubric Based Assessment in Affective Domain


Levels of Achievement
Unacceptable  Just acceptable  Basic  Good  Excellent  Marks
(0-1)  (2) (3) (4) (5)
I. Organization/ Structure
II. Data Presentation.

Submitted To: Lab Eng Yasir Naseer


NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

LAB # 05: Implementation of VLANs in a trunk switch-based network on packet tracer.

Objectives:
To familiarize students with the implementation and configuration of VLANs using trunk
link between nework switches.

Introduction to trunk VLAN:

A VLAN trunk is an OSI Layer 2 link between two switches that carries traffic for all
VLANs (unless the allowed VLAN list is restricted manually or dynamically). To enable
trunk links, configure the ports on either end of the physical link with parallel sets of
commands.

To configure a switch port on one end of a trunk link, use the switchport mode
trunk command. With this command, the interface changes to permanent trunking mode. The
port enters into a Dynamic Trunking Protocol (DTP) negotiation to convert the link into a
trunk link even if the interface connecting to it does not agree to the change. In this
course, the switchport mode trunk command is the only method implemented for trunk
configuration.
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

Lab Activity:
Building of VLAN using network switch and end devices.

SWITCH 1 Configuration:
1. Create VLANs on switch 1:

Use the VLAN command in global configuration mode (CLI) of switch to add VLANs to switch.

The commands are follows as:

Switch>en
Switch#conf t
// Enter configuration commands, one per line. End with CNTL/Z.
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

Switch(config)#vlan 10
Switch(config-vlan)#name EE
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name CS
Switch(config-vlan)#exit
Switch(config)#exit
Switch#

2. Verify that VLANs have been created on switch.


Switch#show vlan

VLAN Name Status Ports

1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4


Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
10 EE active
20 CS active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

3. Assign switch ports to VLANs:

Switch#en
Switch#conf t
// Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config)#int fa0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit

4. Verify that switch ports have been assigned to VLANs


Switch#show vlan

VLAN Name Status Ports

1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7


Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig1/1, Gig1/2
10 EE active Fa0/1, Fa0/2
20 CS active Fa0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

Switch ports have been assigned to VLANs:


NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

SWITCH 2 Configuration:
1. Create VLANs on switch 2:

Use the vlan vlan-id command in global configuration mode (CLI) of switch to add VLANs to

switch. The commands are follows as:

Switch>en
Switch#conf t
//Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name EE
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name CS
Switch(config-vlan)#^Z
Switch#
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

2. Verify that VLANs have been created on switch.


Switch#show vlan

VLAN Name Status Ports

1 default active Fa0/1, Fa0/2, Fa0/3,


Fa0/4 Fa0/5, Fa0/6, Fa0/7,
Fa0/8 Fa0/9, Fa0/10, Fa0/11,
Fa0/12 Fa0/13, Fa0/14, Fa0/15,
Fa0/16 Fa0/17, Fa0/18, Fa0/19,
Fa0/20 Fa0/21, Fa0/22, Fa0/23,
Fa0/24 Gig1/1, Gig1/2
10 EE active
20 CS active
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

3. Assign switch ports to VLANs:

Switch>en
Switch#conf t
//Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-vlan)#switchport access vlan 10
Switch(config-vlan)#int fa0/2
Switch(config-vlan)#switchport access vlan 20
Switch(config-vlan)#^Z
Switch#

4. Verify that switch ports have been assigned to VLANs


Switch#show vlan

VLAN Name Status Ports

1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6


Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24, Gig1/1, Gig1/2
10 EE active Fa0/1
20 CS active Fa0/2
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

1004 fddinet-default act/unsup


1005 trnet-default act/unsup

Switch ports have been assigned to VLANs:

Switch 1 Trunk Configuration:


Switch#en
Switch#conf t
//Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#^Z
Switch#
//%SYS-5-CONFIG_I: Configured from console by console

Switch#
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING
Switch 1 Trunk Configuration:
Switch#en
Switch#conf t
//Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to


up
^Z
Switch#

Command Prompt:

 EE
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING
 CS:
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

lab Task:
STEPS:
 Building of VLAN using network switch and end devices.

Switch 04:
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING
 Switch ports have been assigned to VLANs:

 Switch 05:
 Switch ports have been assigned to VLANs:
NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING

 Using Command Prompt:

 Request time out:


NATIONAL UNIVERSITY OF TECHNOLOGY (NUTECH)
DEPARTMENT OF ELECTRICAL ENGINEERING
Conclusion:
In this lab we have performed VLAN Network by using two switch connected together with end
devices by Trunk command then after this we have checked the communication between same
group was done however the communication between the PC’S of other group was not done.
When we us ping command to send data it will show simply request time out.

You might also like