How Computers Communicate in a Network lab

Last Updated : 2 Aug, 2025

In this lab we understand that how computers communicate on the same network using IP addressing and MAC addressing via a switch using Cisco Packet Tracer.

Devices Required:

  • 2 PCs
  • 1 Switch (2960)
  • 2 Copper Straight-Through Cables

Step-by-Step to Build the Lab

Step 1: Launch Cisco Packet Tracer.

1

Step 2: Drag and drop:

  • PC0 and PC1 from End Devices
  • Switch0 from Switches (2960)
1

Step 3: Connect the Devices

  • Use the Copper Straight-Through Cable from Connections.
  • Connect PC0 → FastEthernet0/1 on Switch0 and PC1 → FastEthernet0/2 on Switch0
1

Step 4: Assign IP Addresses

  • Click on PC0 → Desktop → IP Configuration and set IP Address: 192.168.1.1 and Subnet Mask: 255.255.255.0
1
  • Click on PC1 → Desktop → IP Configuration and set IP Address: 192.168.1.2 and Subnet Mask: 255.255.255.0
1

Step 4: Verify Communication

  • Go to PC0 → Desktop → Command Prompt and type the below command
ping 192.168.1.2
  • You should see replies like:
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
1


Here is the Simulation Mode

Comment