enter image description here

Hello i have this 2 routers how i can make them ping each other and alos the devices connected to them

  • 4
    This configuration doesn't make any sense if those IP addresses are configured on the link between the routers. The routers should have a shared network on the point to point link.
    – Teun Vink
    Jun 1, 2021 at 16:49
  • As Teun has mentioned the general practice would be to use a /30 for the interconnection with both routers existing on the same /30 subnet. This scenario is not viable as is, both routers need to share a subnet in order for ping or any type of layer 3 communication to take place. Years ago when I was newer Teun downvoted many of my questions or comments, that being said he knows his stuff ;).
    – Ty Smith
    Jun 2, 2021 at 1:58

3 Answers 3


Routers need to have interfaces on a common subnet in your example. If the addresses you show are for the common link, they are not in the same subnet.

You can either:

  1. Change router1's interface to, or
  2. Change router2's interface to

I solved it i putted a serial connection between the 2 routers with 2 diffrent subnets and addes it to the ospf and the ping wotk in all places


Routers need to share an IP subnet with each other in order to communicate. If you use a link-only subnet you can use a /31 subnet mask, e.g. and A /30 subnet wastes 50% of its address range.

Since there seems to a another subnet behind Router1 that Router2 can't see, make sure you add an appropriate static route to R2, or set up a routing protocol.

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.