Say we have 3 Windows 7 machines, A, B, C, all on the same subnet.
A - 192.168.1.2
B - 192.168.1.3 - nobody has this ip, doesn't exist on the subnet
C - 192.168.1.4
Running tracert 192.168.1.4 on A shows that it goes directly to C.
Let's say I want to route traffic from A to C via B (the non-existent ip, to force any existing TCP connections from A to C to drop). On XP all I have to do is add a route on A like this:
route add 192.168.1.4 192.168.1.3
Once I do this, after a while my already established connection will eventually break. As expected pinging 192.168.1.4 doesn't work anymore.
This does not work on Windows 7, after adding that route, I am still able to reach 192.168.1.4 via ping and tracert shows that it goes directly from 192.168.1.2 to 192.168.1.4.
Is there a way to do this in Windows 7, like it used to work on XP?