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

Prac 7

This document describes a networking lab experiment to configure VLANs. The steps are: 1. Create a topology with two VLANs (Student and Faculty) using Packet Tracer, each with 3 PCs connected to a switch. A server is also connected to provide DHCP services. 2. Configure the server to provide IP addresses via DHCP. 3. Assign the PCs to the VLANs and have them obtain IP addresses via DHCP. 4. Configure the switch with VLANs using CLI commands to create the VLANs, assign interfaces, and verify the configuration. 5. Test connectivity between devices in the same VLAN, and lack of connectivity between devices in different VLANs, demonstrating the VLAN

Uploaded by

rbharati078
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 views7 pages

Prac 7

This document describes a networking lab experiment to configure VLANs. The steps are: 1. Create a topology with two VLANs (Student and Faculty) using Packet Tracer, each with 3 PCs connected to a switch. A server is also connected to provide DHCP services. 2. Configure the server to provide IP addresses via DHCP. 3. Assign the PCs to the VLANs and have them obtain IP addresses via DHCP. 4. Configure the switch with VLANs using CLI commands to create the VLANs, assign interfaces, and verify the configuration. 5. Test connectivity between devices in the same VLAN, and lack of connectivity between devices in different VLANs, demonstrating the VLAN

Uploaded by

rbharati078
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/ 7

Enrollment No: 202103103510310

Practical - 7
Aim
To perform a practical to create a topology and configuration VLAN.

Software Used
1. Cisco Packet Tracer 8.2.1
2. Windows 10 Operating System

Description
Step 1: Create a topology using two different VLANs Student and Faculty, as shown in
figure 1.

- Add 3 PCs to each VLAN. Put a Switch between both VLANs and connect all PC
to switch using the Copper Straight Through(CST) cable on FastbitEthernet ports.
Connect a server with switch to use dhcp services for assigning ip addresses
dynamically.

- VLAN :- Virtual Local Area Network

- Give name to all devices.

Figure 1: Created Topology

UTU/CGPIT/IT/SEM-5/Computer Networks 34
Enrollment No: 202103103510310

Step 2: Click on server and go to Desktop option for give IP Address and Subnet
Mask statically to it.

Figure 2(a): giving ip address to server

- Click on Server and go to Services mode to configure server.

- Select DHCP option from the list of services which is on the left side of the panel.

- Enter subnet mask and start IP address.

- Select on the Save button to save all information and in the end, click on On button

from upper right corner of panel to turn on dhcp services.

Figure 2(b) : Setting up dhcp services to server

UTU/CGPIT/IT/SEM-5/Computer Networks 35
Enrollment No: 202103103510310

Step 3: Now, Click on each PC and go to IP configuration. Select dhcp option to get
addresses dynamically.

Figure 3: Getting Addresses dynamically for PC1

Step 4: A virtual local area network (VLAN) is a virtualized connection that connects
multiple devices and network nodes from different LANs into one logical
network.

Now, configure the VLAN configuration on switch using the following CLI
commands:

- First of all, enable a switch with the help of en command to start a


configuration.

Commands:

- en: to enable all of the router's configuration commands

- show vlan: to display information and status of VLANs

Figure 4(a) : showing vlans


UTU/CGPIT/IT/SEM-5/Computer Networks 36
Enrollment No: 202103103510310

- config t: to log into configuration mode

- vlan (vlan_id): to places into the VLAN configuration sub-mode. If doesn’t

exist, creates new vlan and enters its configuration submode.

- name (vlan_name): to give name to VLAN

- exit: to exits the VLAN mode

Figure 4(b) : Creating two new vlans

Now, run show vlan command to show created vlans. They don’t have interfaces
assigned.

Figure 4(c) : showing vlans

UTU/CGPIT/IT/SEM-5/Computer Networks 37
Enrollment No: 202103103510310

- config t : to enter into configuration mode

- int fastEthernet (interface): to display information and status of VLANs

- switchport mode access : to assign interfaces into access mode

- switchport access (vlan_id): to specifies the VLAN to which the interface is


configured

- exit : to exit the interface configuration context

Figure 4(d): Assigning interfaces to vlans

- Again run exit command to exits from every configuration context and run show
vlan command, there are 3-3 interfaces for both vlan 2 and vlan 3.

UTU/CGPIT/IT/SEM-5/Computer Networks 38
Enrollment No: 202103103510310

Figure 4(e): Interface of vlan

Step 5: Send PDU to end devices into the same vlan . It is successfully sent between
same vlan devices.

- End device in one vlan will not be able to communicate with other vlan’s end
device, even though they are connected to the same switch.

- If we send PDU between different vlan end devices, they will be failed to
communicate with eachother.

Figure 5: Sending PDU in same vlan

Figure 5(a): Sending PDU in different vlan

UTU/CGPIT/IT/SEM-5/Computer Networks 39
Enrollment No: 202103103510310

Results and Conclusion


- During this practical, we configure vlan network.

- We create two different vlans which is connected with same switch.

- we configure 3 interfaces to each vlan to create topology.

- In the end, we check communication between same vlan end devices and
different vlan end devices by sending a PDU.

By performing this practical, we learned that end device in one vlan will not be able
to communicate with other vlan’s end device, even though they are connected to the
same switch but two devices from same vlan can communicate successfully.

UTU/CGPIT/IT/SEM-5/Computer Networks 40

You might also like