关于route路由命令的使用异常有关问题

关于route路由命令的使用错误问题
我的机器只有一块网卡,操作系统为xp,现在我想同时上两个网段!  
  目前的两个网段有  
  ip mask gateway  
  上网的网段  
  192.168.1.12 255.255.255.0 192.168.1.1  
  办公的网段  
  172.18.2.62 255.255.255.254 172.18.2.126  
   
============================================
  我在网络连接里设置了上网的网段的ip,然后用cmd工具设置路由  
  route add 172.18.2.0 255.255.255.254 192.168.1.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.  
  这是什么原因,有谁能解答,并解决我的两网段同事使用问题,高分答谢  

以是是引用他人的相同问题


------解决方案--------------------
即使改了255.255.254.0应该也是同样错误

“172.18.2.0 255.255.255.254 192.168.1.1”这里面两个都是网关地址

试试这样:
172.18.2.0 255.255.255.254 192.168.1.12
192.168.1.1 255.255.255.0 172.18.2.62
------解决方案--------------------
上外网的设置默认网关,内网的不用设置网关,手工指定,例如内网为172和173,那么你就设置
route add 172.18.2.0 255.255.254.0 172.18.2.126
route add 173.18.2.0 255.255.254.0 172.18.2.126