0% found this document useful (0 votes)
38 views5 pages

Laboratory 3 Layer 2 Switching - v5

This document provides instructions for a laboratory exercise on configuring a network using Cisco Packet Tracer software. The objectives are to design and configure a network with switches and routers. The lab is divided into three parts: 1) creating a simple LAN network with two PCs connected to a switch, 2) adding a router to the LAN network, and 3) examining the switch's MAC address table as devices communicate on the network. The document outlines the steps to set up the network infrastructures and devices in Packet Tracer, configure IP addresses, and observe network behavior like ping responses and how the switch learns MAC addresses. It also provides assessment questions to be answered in a report on the lab exercise.

Uploaded by

Sahan Kaushalya
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)
38 views5 pages

Laboratory 3 Layer 2 Switching - v5

This document provides instructions for a laboratory exercise on configuring a network using Cisco Packet Tracer software. The objectives are to design and configure a network with switches and routers. The lab is divided into three parts: 1) creating a simple LAN network with two PCs connected to a switch, 2) adding a router to the LAN network, and 3) examining the switch's MAC address table as devices communicate on the network. The document outlines the steps to set up the network infrastructures and devices in Packet Tracer, configure IP addresses, and observe network behavior like ping responses and how the switch learns MAC addresses. It also provides assessment questions to be answered in a report on the lab exercise.

Uploaded by

Sahan Kaushalya
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/ 5

EEE302-Data Communications and Networking: Laboratory 3

Layer 2 Switching
Objective:
To design and configure a network using Cisco Packet Tracer software

Software Tool:
Cisco Packet Tracer software

Pre-Preparation:
Answer the questions asked below.
1. What is the difference between switching and routing?
2. What is meant by a MAC address?
3. Explain MAC tables.
4. Explain what the interface of a network switch.

PART 1: LAN Network

Figure 1: Simple LAN Network


1. Open the Cisco Packet Tracer software.
2. Click on the “Network Devices” icon on the bottom tool bar.
3. Click on the “Switches” icon under Network Devices.
4. Select “2960” switch from given switches.
5. Click on the working area to add the switch.

6. Click on its label and rename it as “My Switch”.


7. Again from the “End Devices” select “Generic” personal computer. Add two personal
computers to the working area. Label them as PC 1 and PC 2.
8. Click “Connections” and select “Copper Straight-Through” connection type.
9. Click on PC1 and select “FastEthernet0”. Click on My Switch and select
“FastEthernet0/1” to establish a copper straight-through connection between
FastEthernet0 interface at the PC1 and FastEthernet0/1 at the My Switch.

Prepared by Imran Uvais 1


10. Double click on the PC. Select “Desktop” tab on the opened window. Click “IP
Configuration” Icon and provide IP address, subnet mask, and default gateway as given
below.
Parameter PC1 PC2
IP address 192.168.1.2 192.168.1.3
Subnet Mask 255.255.255.0 255.255.255.0
Default Gateway 192.168.1.1 192.168.1.1

11. Double click on a PC1. Select “Desktop” tab on the opened window. Click on the
“Command Prompt” icon.
12. Type and enter “ipconfig” to see details about interfaces o the selected device.
13. Type “ping <IP address of PC2>” to ping from PC1 to PC2. Observe the details.
14. Click on the Simulation icon at the right bottom corner of the Cisco Packet Tracer software.
15. Click on Show All/None to hide event types. From edit filters select only ICMP.
16. To add a protocol data unit (PDU) to the network click on the “Add Simple PDU icon”
from the right tool bar. Then first click on the PC1 and Then PC2. This will add a PDU to
the network.
17. Then click on the “Auto Capture/Play” icon to visually see the transmission of the PDU.

Prepared by Imran Uvais 2


PART 2: Router Configuration
1. Create a simple LAN network as shown in Fig. 2.
2. Configure PC1 and PC2 as follows.

Parameter PC1 PC2


IP address 192.168.1.2 192.168.1.3
Subnet Mask 255.255.255.0 255.255.255.0
Default Gateway 192.168.1.1 192.168.1.1

3. To configure the router.


a) Double click on the router to open the configuration window.
b) Select the CLI tab.
c) If it asks to enter the initial configuration dialog type “no” and press enter.
d) Press RETURN to get started.
e) If it prompts “Router0>” you are in the “User EXEC Mode”.
f) To enter “Privileged EXEC Mode” type “enable” and press enter. Then it will prompt
“Router0#”.
g) To enter “Global Configuration Mode” type “configure terminal” and press enter. It
will prompt “Router0(config) #”.
h) To change the router name type “hostname <name>” and enter.
i) To configure a particular interface on the router, it should be selected. As an example
type “interface fa0/0” to select FastEthernet0/0 interface. Then it will prompt
“Router0(config-if)#” if properly selected.
j) To assign an IP address and a subnet mask to the selected interface type “ip address
192.168.1.1 255.255.255.0”.
k) Finally type “no shutdown” to turn on all the interfaces.
l) To exit from a particular mode to previous mode type “exit”.

Figure 2: Simple LAN network with a router

Prepared by Imran Uvais 3


PART 3: Examine the Switch MAC Address Table
1. A switch learns MAC addresses and builds the MAC address table, as network devices
initiate communication on the network.
Record network device MAC addresses.
Open a command prompt on PC-1 and PC-2 and type ipconfig /all. What are the Ethernet
adapter physical addresses?

PC-1 MAC Address:


PC-2 MAC Address:
2. Display the switch MAC address table.
Console into switch S0 and view the MAC address table, both before and after running
network communication tests with ping.

a. Establish a console connection to S0 and enter privileged EXEC mode.

In privileged EXEC mode, type the following two commands and enter them
respectively.

S0# clear mac-address-table dynamic

S0# show mac-address-table

Even though there has been no network communication initiated across the network
(i.e., no use of ping), it is possible that the switch has learned MAC addresses from its
connection to the PC and the other switch. Are there any MAC addresses recorded in
the MAC address table (provide the screenshot)?

3. Initiate the ping command from PC1 to PC 2 and simulate step by step (like PC1 to
switch0, switch 0 to PC2, PC2 to switch 0 and switch 0 to PC1. What happens at the
switch when unknown unicast frame comes to the switch? What is the behavior of the
router with connection to this phenomena? Describe the behavior of the switch at each
step for one round trip of ICMP packet transmission with screenshots of switch mac
address table.

Prepared by Imran Uvais 4


ASSESSMENTS:
1. Provide a report on this laboratory exercise. The following items have to be included in the
report.
a. A structured content.
b. Illustrate the network diagrams under each part along with the relevant network
addresses.
c. Identify the broadcast IP address for the network segment in Fig. 2 network.
d. Mention the no. of collision and broadcast domains in each network under each part.
e. Answer all the questions in this lab sheet. Provide this as a section of the report.
f. Place the answers for the following questions along with the answers mentioned in (e.).
i. What kind of Ethernet connection type should be assigned between
(a) Two switches?
(b) Switches to Routers?
(c) Switches to PCs?
ii. What is the role of ICMP protocol? What is the role of ‘ping’ command?
iii. What is the role of ARP protocol?
g. Provide appendix section that includes running configuration of the each switch and/or
each router for each part. (Command: show running-configuration).
Notes:

1. The report structure must be in the following order: Introduction, Procedure, Discussion
(Results i.e. screenshots of the outputs for the steps), Conclusion, Reference and
appendix for software codes.
2. Do not copy procedure directly from the lab sheet. You need to paraphrase, otherwise
greater portion of marks will be reduced.
3. Do not copy from others’ report. If you find for plagiarism, you will be granted with 0
mark.
4. Submit fully configured packet tracer file along with the report.
5. Submission deadline is set on the LMS.

Prepared by Imran Uvais 5

You might also like