- 论坛徽章:
- 0
|
打算在window XP下添加到非直连网段的路由, 报错如下:
route add 10.120.31.0 mask 255.255.255.0 150.236.238.xxx metric 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.
本地网段为: 150.236.208.x /24
从出错信息来看,由于150.236.238.x 与不是本地网段, 所以无法添加。
同样在windows vista下面添加类似的路由, 就可以成功。
测试了一下, 如果在XP环境下改写为:
route add 10.120.31.0 mask 255.255.255.0 150.236.208.1xx metric 1
可以成功。
综上所述, 怀疑是XP在添加路由时候必须要将next hop写为本地网段上的地址???
请大侠们帮忙解惑!
[ 本帖最后由 流沙211 于 2009-12-22 11:40 编辑 ] |
|