本人刚刚接触批处理碰到一个头疼的问题
我在写静态路由表时候使用错误网关会出现下面这句(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 -p add 192.168.1.2 mask 255.255.255.0 192.168.1.1 metric 1
机器IP是192.168.0.2 网关是192.168.0.1 子网掩码255.255.255.0
我要解决的问题不是如何设置网关、IP或者不让那具英文出现;而是将那句英文改为检查网关四个字。
[ Last edited by cxinet on 2007-1-31 at 06:47 AM ]
我在写静态路由表时候使用错误网关会出现下面这句(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 -p add 192.168.1.2 mask 255.255.255.0 192.168.1.1 metric 1
机器IP是192.168.0.2 网关是192.168.0.1 子网掩码255.255.255.0
我要解决的问题不是如何设置网关、IP或者不让那具英文出现;而是将那句英文改为检查网关四个字。
[ Last edited by cxinet on 2007-1-31 at 06:47 AM ]
