i have seen a co-worker set a command like
route add 192.168.4.20 10.167.0.198
in his computer to access services provided by a server on my network without changing his IP address or passing trough a router (they just plug his network on my switch and wrote this command on his machine and started to work), now i am trying to do the same for a test but it doesn't work.
here my setup:
- Server X2 (3rd part, possibly a linux machine, I access it through his custom software) on 10.167.0.198\24
- PC (win 7 pro) to 192.167.0.28\24
I wrote this in the prompt
route add 192.167.0.29 10.167.0.198
and my routing table have this line
Network Address - Mask - Gateway - Interface - Metric
192.167.0.29 - 255.255.255.255 - 10.167.0.198 - 192.168.0.28 - 11
i've tried deleting the previous line and swapping addresses but none of this config seem to work
what am i missing (apart a proper networking expertise)?
could windows 7 be stopping this because he thinks he is in a public network?
are there other setting to allow this?
UPDATE
the thing i'm tryng to do is similar to this https://serverfault.com/questions/115654/windows-static-routes-w-o-specifying-gateway-next-hop
on the first part he setup a local Route,but I'm having trouble doing this i tried to add
route add 192.167.0.28 10.167.0.198
still no succes
192.167.0.29
through a router10.167.0.198
on interface192.168.0.28
. Which means you won't be able to reach the router without further configuration as it is in a different network segment. If you look at the help for route you will find a good description of gateway. Without changing other parameters just adding a route will be insufficient to connect different networks.