add route under windows

Jason jason+tinclist at
Wed Jun 23 04:01:56 CEST 2004

On Tue, 22 Jun 2004, xavier wrote:

> on windows : tinc-up.bat
> (after configuring the interface with correct default gateway)
> route add mask
> The route addition failed: Either the interface index is wrong or the gateway do
> es not lie on the same network as the interface. Check the IP Address Table for
> the machine.
> so, windows cannot set up routes because the network is not yet up...

I dunno why the network isnt up at that point, but.. try just adding this as
a persistent route (run route -p add mask
one time) and then the route will work when it can and be ignored when it
doesn't apply.  And it is stored in the registry and survives a reboot.

More information about the tinc mailing list