cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2789
Views
5
Helpful
6
Replies

Ping Computer on another network

shijad_ahamed
Level 1
Level 1

ping.png

In the above design there are three network 192.168.1.0/24,192.168.2.0/24 and 192.168.3.0/24. I want PC0 be able to ping PC1 and PC2. I have set default getway for PC0 as 192.168.1.1. Now I can only ping PC1 and not PC2. If I change the default getway to 192.168.1.2 I can only ping PC2. How can I ping both the computers from PC0 without changing default getway every-time. Also I don't want to connect Router0 with Router1. Kindly help me with a solution.

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

 

If you don't want to connect the routers to each other then you could add a route to your PC for the destination PC not reachable via the default gateway. 

 

Jon

How can I add a route to PC for the destination PC not reachable via the default gateway? Provided this is a normal PC

I am somewhat confused. The drawing shows router0 and router1 connected to switch ports, and it appears that both routers have IP addresses in network 192.168.1.0? That would seem to indicate that the routers are connected. Yet the post says you do not want to connect the routers? Can you clarify what is going on?

 

HTH

 

Rick

HTH

Rick

on router 0

ip route 192.168.3.0 255.255.255.0 192.168.1.2

 

on router 1

ip route 192.168.2.0 255.255.255.0 192.168.1.1

Andrew Clark
Level 1
Level 1

Simply add the following routes.

 

on router 0

ip route 192.168.3.0 255.255.255.0 192.168.1.2

 

on router 1

ip route 192.168.2.0 255.255.255.0 192.168.1.1

blake.macisaac1
Level 1
Level 1
Static routes man. How would R1 know how to reach PC2. You could also add R1 as your default gateway and then add r2 as r1s default gateway. I don't think the echo reply would make it back tho..lol
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card