Trying to access a network via a static route.
My PC is on Windows 10 and I am connecting to a remote network via VPN.
My local network is 192.168.178.1/24.
My PC's VPN client address is 10.35.0.144.
The VPN gateway is 10.35.0.129.
Via the VPN I have access to a 10.1.0.0/24 network, where a router, IP: 10.1.1.175, enables access to another 10.124.193.0/24 network.
I need to be able to manage devices on this 10.124.193.0/24 network. I added a static route: "route add 10.124.194.0 mask 255.255.255.0 10.1.1.175", which I thought might do the trick.
However, when I do a tracert to 10.124.193.x, I see that traffic is not going through the VPN as expected, but hits my local gateway (192.168.178.1) and stops there. I expected a couple of hops like: 10.35.0.129, then 10.1.1.175, then 10.124.193.x.
The output of the route table below is partly in German, I hope that is ok, and still comprehensible.
C:\WINDOWS\system32>tracert 10.124.193.6
tracing route to 10.124.193.6 over a maximum of 30 Hops
1 2 ms 1 ms 1 ms fritz.box [192.168.178.1]
2 fritz.box [192.168.178.1] reports: destination host unreachable
Best Answer
When you set a route, you need to give it the next hop. In your case, the next hop is
10.35.0.129
, but your configured next hop is not.After that, you are trusting that the next hop has a route to then next hop in the path toward your destination. If not, you need to modify that router to have a route toward your destination. If you don't have access to that router, this question is off-topic since you need to have control over the network about which you are asking questions.