Categories
Welcome Center
Education & Development
Cyber Security
Virtualization
General
Certification Preparation
Project Management
Posts
Groups
Training Resources
Infosec
IT & Security Bootcamps
Practice Exams
Security Awareness Training
About Us
Home
General
Off-Topic
How do I ping PC1 to PC3?
jhaythirtiin
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.
Find more posts tagged with
Comments
davelee212
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
OctalDump
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.
jhaythirtiin
Yey! It's working now. Thanks! That wasn't taught in the class but thanks guys!
Danielh22185
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
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of