Network map

How can I ping the default gateway from PC2? I have tried IP <address> [/<mask>] [<gateway>] command for R1, but is says "not in subnet".

And when I tried the same command for R3, it works but I still can't ping R1 and I don't know why.

  • R1 R2 and R3 can ping each other perfectly .does this means that the default route for each router is being set already?
    – james T
    May 27, 2015 at 14:15
  • Welcome to NE, we hope you will both contribute to and learn from this community. You could improve your question by editing it to add more details. You may find our Question Checklist helpful when editing your question. For example: configuration from at least your routers, routing tables from same, etc.
    – YLearn
    May 27, 2015 at 17:46
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Aug 11, 2017 at 17:04

2 Answers 2

  • PC2 needs a route for (or default route) that points at R3
  • R3 needs a route for (or default route) that points at R2
  • R2 needs a route for PC2 (or default route) that points at R3
  • R1 needs a route for PC2 (or default route) that points at R2

Check the routing tables on these devices to confirm these routes exist.

  • thanks so much sir ill try apply this one my work and see if it work..
    – james T
    May 27, 2015 at 14:11
  • this is the routing table for R2 i notice that the gateway is ot set..do i have to set it? Gateway of last resort is not set is variably subnetted, 5 subnets, 3 masks R [120/1] via, 00:00:13, FastEthernet0/1 C is directly connected, FastEthernet0/0 C is directly connected, FastEthernet0/1 R [120/1] via, 00:00:13, FastEthernet0/1 R [120/1] via, 00:00:13, FastEthernet0/1
    – james T
    May 27, 2015 at 14:20
  • You don't need a default gateway no. But R2 does need a route to PC2 via R3. This appears to be either your .10.0/24 or your .11.0/24? It is unclear from the diagram the subnets for PC1/2/3. In any case, your next step after verify the routes is to trace a ping and see where it is getting dropped (usually done with simultaneous tcpdumps on each device in the chain)
    – jhenn
    May 27, 2015 at 14:50
  • ohh ok ok thanks..am working on ip route now.. thanks so much for helping me sir.
    – james T
    May 27, 2015 at 14:57
  • do i need to close the ip route command with a no shoutdown or a no auto-summary command or i just exit after doing the ip route?
    – james T
    May 27, 2015 at 15:04

Configure a host route on your PC telling it that the PC's default gateway is R3.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.