add route under windows

Jason jason+tinclist at truedesign.com
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 192.168.1.0 mask 255.255.255.0 10.0.0.1
> 
> 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 192.168.1.0 mask 255.255.255.0 10.0.0.1
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