How to ping a PC on a different subnet using Cisco Packet Tracer 💻

CelestialDevStory
3 min readDec 3, 2023

--

Hope this will be useful if you’re willing to work with Computer Networking or if you’re already a Cisco Packet Tracer user… 😎
On here I’m going to briefly explain about how to ping a PC on a different subnet but in the same network.

You can refer the images that I’ve posted along this to easily understand what’s going on… Let’s move into the explanation.. 👀

First you have to open a new worksheet in Cisco Packet Tracer. And place 4 PCs as showed below. Two of them (PC0 & PC1) should be connected to a switch (SW0) and other two (PC2 & PC3) should be connected to another switch (SW1). Place a router between the switches. Connect them using appropriate links. 💻

PC — SW → straight-through
SW — Router → straight-through

Then you should give IP addresses and subnet masks to the PCs. PC0 & PC1 should be in the same subnet. PC2 & PC3 should also be in the same subnet, but consider that they’re in different subnets and that two subnets are in the same network as follows;

Subnet1 → PC0 , PC1
Subnet2 → PC2 , PC3
Network1 → PC0 , PC1 , PC2 , PC3
Network1 → Subnet1 , Subnet2

Here will be an example about how to assign IP addresses and subnet masks.

PC0 → 10.1.1.1 / 255.255.0.0
PC1 → 10.1.1.2 / 255.255.0.0
PC2 → 10.2.1.1 /255.255.0.0
PC3 → 10.2.1.2 /255.255.0.0

Then open the CLI of the router and assign an new IP address which is in the same subnet as PC0 & PC1 to the 0/0/0 interface.
Do the same thing related to 0/0/1 interface of the router.

All the commands to do that is given below.

After that the IP address which is assigned to the 0/0/0 ; should be assigned as the default gateway of PC0.
And the IP address which is assigned to the 0/0/1 ; should be assigned as the default gateway of PC2.

Then you can open the Command Promt of PC0 and ping PC2.
Command : ping 10.2.1.1

If you could see 4 replies from PC2 ; that’s it 😇

Hope you have an idea about how to do it through this.

Drop a like & comment below if you come this far through my blog post.😎
See you again with a new blog post. 👻 ✌

--

--

CelestialDevStory

🌈Follow me if you're willing to explore the coding universe🌏with a software engineer👨‍💻excited to break complex coding barrier, turning it into a story💫🌘