Routing – How the two computers are able to ping themselves which are connected to single router but both are in different Network

lanpingrouterrouting

enter image description here

I have configured network as shown in figure. as we know that we can't ping computer which is in the other Network without routing protocol. then how I suppose to ping this computer as shown in figure without applying routing protocol. both computers in figure are in different Network.
i can able to successfully ping PC2 with PC3 which are in the different Network & without applying routing protocol. I want to know how this is possible?

Best Answer

I have configured network as shown in figure. as we know that we can't ping computer which is in the other Network without routing protocol.

That is incorrect. Routing protocols are one of three ways routers populate their routing tables:

  1. Directly connected networks
  2. Statically configured routes
  3. Dynamic routing protocols

Routing protocols are used to exchange routes between routers, but they do not route the packets.

then how I suppose to ping this computer as shown in figure without applying routing protocol.

That's what routers do. Your router inherently knows about both networks because they are directly connected, so it will populate its routing table with both networks, and it will default to routing packets between the networks.