Let us say, i have two computers (hosts) A and B. Where A has been assigned an IP address of 192.168.1.10/24 and host B has been assigned an IP address of 192.168.2.11/24. And both of them has been connected to each other over a Ethernet cross-over cable.
Now I see that both the computers can't communicate with each other! Ping fails from either sides. I am simulating this using Cisco Packet Tracer.
Could someone explain why there is a problem here? Why can't two hosts communicate here?
To give more clarity to the question i am adding the visualization.
Default gateway address is set to 192.168.1.1 and 192.168.2.1 respectively on host A and host B
PS: After seeing lot of answer my fellow community members' response, i would like to make it clear that - I understand placing a router between the 2 hosts would make it work. However I was looking for a technical reason why the networked system with the above mentioned topology fail to work! I was looking at what are all the protocol that are triggered in this scenario for the communication between the hosts A and B and which protocol would fail and for what reason.