Professional Documents
Culture Documents
EXPERIMENT NO-05:
____________________________________________________________
Objectives:
To familiarize students with the implementation and configuration of VLANs using trunk
link between nework switches.
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.
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#
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
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>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
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#
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
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