How do I ping PC1 to PC3?

jhaythirtiinjhaythirtiin Registered Users Posts: 2 ■□□□□□□□□□
Hi!

Im just a newbie here and in Packet Tracer.

Here is my question: How do I ping PC1 to PC3?

i have 2 PCs (PC 1 and PC 2) connected to Router1 (2621xm) and Router1 is connected to Router2 (2621xm) via Serial Cable and the PC3 is connected to Router2.

The config for PC1 is
10.10.1.100/8
Gateway is 10.10.1.1

PC2 is
192.168.10.20/24
GW is 192.168.10.1

Router 1 is
Serial0/0 192.168.1.1/24
Fast0/0 192.168.10.1/24
Fast0/1 10.10.1.1/8

Router2 is
Serial0/0 192.168.1.2/24
Fast1/0 172.16.20.1/16

PC3 is
172.16.20.20/16
gw 172.16.20.1/16

i am able to ping Pc1 to pc2 but not to pc3.

it says reply from (ip address): destination host unreachable

can someone help me please?

thank you.

Comments

  • davelee212davelee212 Member Posts: 5 ■□□□□□□□□□
    Have you got routes set on the two routers so they know how to reach the networks that each other have connected?

    So on Router 1 you need the following static route:
    ip route 172.16.0.0 255.255.0.0 192.168.1.2

    And on router 2 you need the following:
    ip route 192.168.10.0/24 192.168.1.1
    ip route 10.0.0.0 255.0.0.0 192.168.1.1

    Hope that helps

    Dave
  • OctalDumpOctalDump Member Posts: 1,722
    As above. The routers will know about the networks that they are directly attached to, hence why router 1 can route between PC1's network and PC2's network. But router 2 only knows about the network of PC3 and the serial link.

    So you either need to set up static routing (ie tell the router, if you want to reach these networks, send the traffic this way), or use a routing protocol (basically so the routers can talk to each other and say "yeah, I have access to these networks and if you want to reach them, just send the traffic my way.")

    The other thing to remember with pings, is that you need to path to the destination (to send the ping request), and also the path back (to receive the reply) - so router 1 needs to know how to get to router 3's networks AND router 3 needs to know how to get to router 1's networks.
    2017 Goals - Something Cisco, Something Linux, Agile PM
  • jhaythirtiinjhaythirtiin Registered Users Posts: 2 ■□□□□□□□□□
    Yey! It's working now. Thanks! That wasn't taught in the class but thanks guys!
  • Danielh22185Danielh22185 Member Posts: 1,195 ■■■■□□□□□□
    Here's a neat video that explains networking basics at an IP/ARP level and why routers are needed between networks, etc. This could help further your understanding on a fun level.

    Enjoy!

    https://www.youtube.com/watch?v=sAKgfi0tZZM&list=FLGjxuEBzQ5OBWJFKCOLsCAg&index=7
    Currently Studying: IE Stuff...kinda...for now...
    My ultimate career goal: To climb to the top of the computer network industry food chain.
    "Winning means you're willing to go longer, work harder, and give more than anyone else." - Vince Lombardi
Sign In or Register to comment.