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

临床环境如下:

VPN服务器内网网段:192.168.1.0/24

客户端内网网段:192.168.2.0/24

vpn服务器IP 10.0.10.0

vpn客户端IP 10.0.10.1

xp系统 连接VPN 添加路由时报错

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.

添加命令为:  route add 192.168.1.0 mask 255.255.255.0 10.0.10.0

客户端使用win7系统无此问题

 

上网找了半天得到的最有意义的话是:XP系统不行 不支持等等

果断放弃 想想xp确实已经过时了

 

无意中查看客户端系统路由表发现: xp与win7的不一样(vpn链路)

xp的是:     192.168.1.0    255.255.255.0         10.0.1.1         10.0.1.1     1

win7是:     192.168.1.0    255.255.255.0         10.0.1.0         10.0.1.1     11

没搞明白原因 不过 可以解决我暂时的问题了

把命令改为 route add 192.168.1.1 mask 255.255.255.0 10.0.10.0 

测试了一下 win7也没问题 虽然不太完美

当然严谨一些的话 就是先判断系统再选择不同命令

记录点滴 希望可以帮到需要的人

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值