Build a 4-PC LAN, assign static IPs, and test connectivity
๐ Introduction to Networks๐ ๏ธ Packet Tracer๐ค Reza Farashahi
In this practical you will create a basic Local Area Network with 4 PCs connected through a switch. You will assign static IP addresses to each PC, verify the configuration with ipconfig, and test connectivity using ping.
๐ Requirements
Packet Tracer software
4 PCs
1 Switch (2960)
Copper Straight-Through cables
๐ฆ Task 1 — Create the Network Topology
Open Packet Tracer and create a new file.
From the device panel add:
End Devices → 4 × PC
Network Devices → 1 × 2960 Switch
Arrange the switch centrally with the PCs around it (star layout).
Select Copper Straight-Through from Connections and cable each PC to the switch:
Tip: Place the switch in the centre with PCs around it to keep the diagram clean.
๐ข Task 2 — Assign IP Addresses
Use the 192.168.100.0/24 network with the following scheme:
Device
IP Address
Subnet Mask
PC1
192.168.100.10
255.255.255.0 (/24)
PC2
192.168.100.20
255.255.255.0 (/24)
PC3
192.168.100.30
255.255.255.0 (/24)
PC4
192.168.100.40
255.255.255.0 (/24)
Configure each PC
Repeat for every PC (using its address from the table above):
Click on the PC.
Go to the Desktop tab → IP Configuration.
Enter the IPv4 Address and Subnet Mask.
Leave Default Gateway blank (no router in this topology).
Close the window.
Tip: You can also set the IP via Config tab → FastEthernet0. Both methods work the same way.
๐ Task 3 — Verify IP Configuration
On each PC, open the Command Prompt (Desktop tab) and run:
Type ipconfig and press Enter.
Confirm the IP address and subnet mask match the table above.
Tip: Use ipconfig /all for more detail, including the MAC address of the interface.
๐ก Task 4 — Test Connectivity
Now test that every PC can reach the others using ping.
Ping tests
PC1 → PC2: on PC1 run ping 192.168.100.20
PC2 → PC3: on PC2 run ping 192.168.100.30
PC3 → PC4: on PC3 run ping 192.168.100.40
PC4 → PC1: on PC4 run ping 192.168.100.10
You should see successful replies for each test.
Troubleshooting: If a ping fails, double-check the IP settings on both PCs and make sure the cable connection to the switch shows green lights.
๐ฌ Task 5 — Simulation Mode (Optional)
Use Simulation mode to visualise how data travels through the network.
Click the Simulation button (bottom-right corner).
Click Add Simple PDU.
Click on a source PC (e.g. PC1), then click on the destination (e.g. PC4).
Press Auto Capture / Play to watch the packet traverse the switch.
Observe: The first time the switch receives a frame it floods all ports (unknown MAC). After learning the MAC addresses it forwards only to the correct port.
๐ข Task 6 — Binary โ Decimal Conversion Practice
IP addresses are made up of 4 octets, each stored as an 8-bit binary number. Practise converting between decimal and binary for the values used in this practical.
Decimal โ Binary: Divide the number by 2 repeatedly. The remainders, read bottom to top, give the binary result. Binary โ Decimal: Multiply each bit by its place value (2โท=128, 2โถ=64, 2โต=32, 2โด=16, 2ยณ=8, 2ยฒ=4, 2ยน=2, 2โฐ=1) and add them up.
Part A โ Decimal โ Binary
Convert each decimal number to an 8-bit binary number (e.g. 11000000).
Decimal
Your Answer (binary)
192
168
100
10
255
Part B โ Binary โ Decimal
Convert each 8-bit binary number to its decimal value.
Binary
Your Answer (decimal)
10101000
00001010
11111111
01100100
11000000
๐ Summary
In this practical you have:
Created a basic LAN topology — 4 PCs connected to a switch
Configured static IP addresses on each PC
Verified configurations with ipconfig
Tested connectivity with ping
Optionally observed data flow in Simulation mode
Tip: Save your Packet Tracer file — future practicals will build on this network.