The route addition failed: Either the interface index is wrong or the gateway do es not lie on the s

The clinical environment is as follows:
VPN server network segment :192.168.1.0/24
Client internal network segment :192.168.2.0/24
VPN server IP 10.0.10.0
VPN client IP 10.0.10.1
Xp system connection VPN add route times error
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.
Add the command: Route Add 192.168.1.0 Mask 255.255.255.0 10.0.10.0
The client does not have this problem with Windows 7
 
Search the Internet for a long time to get the most meaningful words are :XP system is not supported and so on
Think xp is really out of date
 
Accidentally checking the routing table of the client system found that XP is different from Win7 (VPN link)
Xp: 192.168.1.0 255.255.255.0 10.0.1.1 10.0.1.1 1
Windows 7 is: 192.168.1.0 255.255.255.0 10.0.1.0 10.0.1.1 11
I don’t know why, but it will solve my temporary problem
Change the command to Route Add 192.168.1.1 Mask 255.255.255.0 10.0.10.0
Windows 7 was ok in my test though not perfect
Of course, a more rigorous word is to judge the system before choosing different commands
I hope I can help those in need
 

Read More: