I have a computer with 2 network interfaces. One interface is connected to LAN network with IP 192.168.0.254, and the other is connected to a recorder server (192.168.0.233). 192.168.0.10 is the gateway for the LAN. When I try to ping to 192.168.0.6, Windows first tries a route to the interface without network (192.168.0.233); I want to add a route to 192.168.0.6/255.255.255.0 specifing I want to use the interface 192.168.0.254 when I try to ping 192.168.0.6. I have tried:
route add 192.168.0.6 mask 255.255.255.0 192.168.0.10 if 13
Here is a print of my interfaces:
When I add the static route to the table, it doesn't show the specified interface, only associate it to the gateway.
Is it correct?