0% found this document useful (0 votes)
8 views

Lab 2

sdsadas

Uploaded by

22110044
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Lab 2

sdsadas

Uploaded by

22110044
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Name:Nguyễn Nguyên Toàn Khoa

StudentID:22110044
Subject: Networking Essentials
Lab 02: How switch works and watching CAM table with Packet Tracer
3. Network diagram.

4. Tasks
4.2. Watch the flooding behavior
When a broadcast frame is received, the switch will flood out all remaining ports with broadcast
frames. You can watch this by pinging PC2 from PC1.
• Switch to simulation mode
• Click “Play”,
• Open the PC1 command prompt, enter ping 192.168.10.2 then press Enter:

How does the switch behave when the first frame is received? Explain this behavior.
Answer: When PC0 sends an ICMP broadcast frame to PC2's IP address, the switch receives the
frame through the port connected to PC1. At this point, the switch doesn't know PC2's MAC
address, so it sends this broadcast frame out to all ports (except the one it receives) to ensure that
it reaches all devices in the network. This is called flooding. Both PC2 and PC1 will receive this
broadcast frame.
4.3. Watch the CAM table
Task: Explain the CAM table. What is the meaning of value at column “Mac Address”? How
many items are there? How to make CAM table store MAC of all PCs?
Explain the CAM table:
 The Content Addressable Memory (CAM) table is a table that a switch uses to store
information about the MAC addresses of network devices that have sent data to the
switch. Each entry in the CAM table contains a MAC address and information about the
network port to which that address was sent. When the switch receives a data frame, it
checks the destination MAC address of that frame and searches the CAM table to
determine which network port needs to send the frame to
o EX:
 Port 1: PC1 (MAC Address: AA:BB:CC:DD:EE:01)
 Port 2: PC2 (MAC Address: AA:BB:CC:DD:EE:02)
 Port 3: PC3 (MAC Address: AA:BB:CC:DD:EE:03)
 When PC1 wants to send a data packet to PC2, it sends the data packet to
the switch. The switch checks the destination MAC address
(AA:BB:CC:DD:EE:02) in the data packet and looks it up in the CAM
table. If the CAM table has an entry for this MAC address, the switch
knows it must send the data packet to port 2. Therefore, it forwards the
data packet to port 2 to reach computer B.
What is the meaning of value at column “Mac Address”?
 The "MAC address" column in the CAM table contains the MAC addresses of devices
that have communicated with the switch. Each device on a network has a unique MAC
address, which serves as an identifier for that device's network card.
How many items are there?
 In case I'm reviewing, there are two devices that have communicated with the switch, the
CAM panel will probably show two items – each corresponding to a MAC address of a
device.
 This is image

How to make CAM table store MAC of all PCs?


 In order for the CAM table to store the MAC addresses of all computers, all PCs on the
network need to communicate with the switch. This can be through accessing the
network, sending or receiving data from different network services, or performing other
network operations.Generally, all PCs must have the action of sending files or
communicating with the switch, in order for the switch to learn the MAC address and
store it to the mac-address-table, for example, in this case if you want to get the MAC
address of PC1, make sure PC1 sends at least one data packet to the switch. This can be
done by pinging from PC1 to a network address or any other network action.
 Here I just do it:
First ping to PC2 from PC1:

Second ping to PC3 from PC1:

Result:
4.4. Change network configuration and watch the new CAM table
Task: Reset the simulation,
Modify the above network diagram as shown:

• Ping all PCs from PC1,


• Watch the CAM table in switch.
Try to guest the result before using the command show mac address-table. Is your guess correct?
 When ping from PC1, when ping to PC3, as I predicted, there will be 2 MAC addresses.
Here is the image
When ping from PC1 to PC2, the switch's MAC table will receive 3 MAC addresses of 1, 2,
and 3. As predicted I am right
 When ping from PC 1 to PC 4, the switch's MAC table will receive 4 MAC addresses of
1, 2, 3, and 4. This is the picture and my prediction is correct.

After PC1 pings all PCs, the switch will learn about the MAC addresses of the other PCs
involved in the communication. So, we expect to see entries for all PCs in the CAM table
after the ping command is executed.

And here is the result so my guess is correct.

You might also like