Add an "on-link" routing entry

Solution 1:

You need to put 0.0.0.0 in the gateway entry to create an "on-link" route.

For example, enter the following command in cmd.exe or bash:

route add 10.10.10.100 mask 255.255.255.0 0.0.0.0

Solution 2:

You can add an interface using the command

route add 10.10.10.100 mask 255.255.255.0 0.0.0.0 IF <26>