Specify route to an interface in Windows cmd

Solution 1:

To specify the interface in windows route command, you are supposed to use 'IF'... Uppercase letters, not lowercase.

Also, where you are specifying you want to add a route to a single IP 192.168.0.6, you need to use a subnet mask of 255.255.255.255.

The subnet mask of 255.255.255.255 specifies a single host. A subnet mask of 255.255.255.0 specifies 192.168.0.X where X=1-254

So, your command should be:

route add 192.168.0.6 mask 255.255.255.255 192.168.0.10 IF 13

Looking again at your question, the best solution for you may be to use your LAN side like a normal 192.168.0.X network... But for the recorder server, I would recommend specifying a different network: Recorder server IP of 192.168.10.233, and then your second network interface should be 192.168.10.2. This will eliminate the need to manually configure routes, and may simplify everything for you.

Solution 2:

This should work: 

route add 192.168.0.6 mask 255.255.255.0 192.168.0.254

If you want persistence:

route -p add 192.168.0.6 mask 255.255.255.0 192.168.0.254

Not sure what the "if" was for, but try this for cost:

route add 192.168.0.6 mask 255.255.255.0 192.168.0.254 metric 13