I have one server using 192.168.1.2/24 and the other server using 192.168.2.2/24. They are connected on my router with separate adapters.

I tried ping test from my router, it worked.

However, when I tried to ping from 192.168.1.2 to 192.168.2.2, the command said: connect: Network is unreachable.

What should I do?

  • 1
    Can you edit your question and post the output of traceroute 192.168.2.2 from 192.168.1.2 , ip address and ip route of both servers? – Mr Shunz Oct 18 at 12:04
  • Can both of the servers ping the router? – user535733 Oct 18 at 12:06
  • Yes I can ping both of router – 강찬희 Oct 20 at 4:02

Servers are in different subnets:

  • Server 1: 192.168.1.2/24 belongs to subnet 192.168.1.0
  • Server 2: 192.168.2.2/24 belongs to subnet 192.168.2.0

You have to set your router to allow both subnets can reach each other. Also, I suppose you have to set the routes in your serves because the message connect: Network is unreachable suggest me that there is no route configured.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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