Hi,
I'm trying to configure a VPN and am having trouble with the route command...I had it working fine, but then there was an ip clash and things started going wrong. I've resolved the ip clash and now just have a problem with the routing table.
the problem is that whenever I add a new route, vista is ignoring the VPN tap interface and defaulting to the network card
Code:
C:\Windows\system32>route print
===========================================================================
Interface List
20 ...00 ff b6 fe ac e6 ...... TAP-Win32 Adapter V9
15 ...00 1d 7d 75 e4 33 ...... Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabi
t Ethernet NIC (NDIS 6.0)
14 ...00 20 ed 36 ca 4b ...... Bluetooth Device (Personal Area Network) #2
1 ........................... Software Loopback Interface 1
18 ...00 00 00 00 00 00 00 e0 isatap.{C51EF404-B4FF-466F-A66F-AFAAF654F3C9}
10 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
23 ...00 00 00 00 00 00 00 e0 isatap.{A2893D39-4AFE-481E-830F-F3F78A82DF3A}
29 ...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.6 276
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
169.254.0.0 255.255.0.0 On-link 192.168.0.6 30
169.254.255.255 255.255.255.255 On-link 192.168.0.6 276
172.16.0.0 255.255.0.0 172.16.0.2 192.168.0.6 21
172.16.255.255 255.255.255.255 172.16.0.2 192.168.0.6 21
...............
the last two lines are a problem - although it specifies the correct gateway it is using my LAN interface. - it should be using the TAP interface.
I've tried removing the lines and re-adding with the command
route add 172.16.0.0 mask 255.255.0.0 172.16.0.2 metric 1 if 20
and
route add 172.16.0.0 mask 255.255.0.0 172.16.0.2 metric 1
but both ignore the interface I need
Does anyone know why/how to fix it?
Thanks