route(windows)

1、route delete 0.0.0.0 mask 0.0.0.0 10.33.31.254----------删除默认到内网网关的默认路由;
2、route add -p 10.33.0.0 mask 255.255.0.0. 10.33.31.254 ------添加永久的内网数据包路由;

 

错误:

1.The route addition failed: Either the interface index is wrong or the gateway does not lie on the same network as the interface. Check the IP Address Table for the machine.

    添加的网关不在当前网卡所在局域网。

 

posted @ 2013-07-30 23:56  dzqabc  阅读(708)  评论(0编辑  收藏  举报