add route under windows

xavier list.tinc at natch.dyndns.org
Tue Jun 22 22:11:35 CEST 2004


Hello !

I'm setting up workstations to acces a lan behind a  tinc host (server)


in parenthesis, their vpn ip address 

workstations on the internet running tinc 1.2.3.4 (10.0.0.2) -> 
internet -> 
tinc host 4.3.2.1 (10.0.0.1) -> 
lan 192.168.1.0/24


in linux, no problem : 

root at natch> cat tinc-up  
#!/bin/sh
ifconfig $INTERFACE 10.0.0.2 netmask 255.255.255.0
route add -net 192.168.1.0 netmask 255.255.255.0 dev $INTERFACE


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...

after the network is up, i can launch the tinc-up.bat script without 
problem...


what is wrong on my setup ?

thanks

ps : may be an example like this one is missing on the "example" page...





-- 
xavier


More information about the tinc mailing list