路线添加错误-参数不正确

路线添加错误-参数不正确

我正在尝试弄清楚如何添加网络路由,但一直收到“路由添加失败:参数不正确”的错误。我甚至尝试了路由命令帮助中的示例,但仍然收到相同的错误。以下是我当前的路由:

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 13 a9 28 48 ce ...... Intel(R) PRO/100 VE Network Connection - Packet Scheduler Miniport
0x3 ...00 18 de 09 da ee ...... Intel(R) PRO/Wireless 3945ABG Network Connection - Packet Scheduler Miniport
0x4 ...00 13 a9 13 16 41 ...... Intel(R) PRO/1000 PL Network Connection - Packet Scheduler Miniport
0x10006 ...00 16 fe 95 84 2d ...... Bluetooth Personal Area Network from TOSHIBA - Packet Scheduler Miniport
0x40007 ...00 05 9a 3c 78 00 ...... Cisco Systems VPN Adapter - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
      0.0.0.0          0.0.0.0      192.168.1.1    192.168.1.50       25
     10.0.0.0        255.0.0.0      192.168.5.1    192.168.5.56       1
 74.93.48.189  255.255.255.255      192.168.1.1    192.168.1.50       1
    127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
  169.254.0.0      255.255.0.0     192.168.1.50    192.168.1.50       20
  192.168.1.0    255.255.255.0     192.168.1.50    192.168.1.50       25
 192.168.1.50  255.255.255.255        127.0.0.1       127.0.0.1       25
192.168.1.255  255.255.255.255     192.168.1.50    192.168.1.50       25
  192.168.5.0    255.255.255.0     192.168.5.56    192.168.5.56       25
 192.168.5.56  255.255.255.255        127.0.0.1       127.0.0.1       25
192.168.5.255  255.255.255.255     192.168.5.56    192.168.5.56       25
    224.0.0.0        240.0.0.0     192.168.1.50    192.168.1.50       25
    224.0.0.0        240.0.0.0     192.168.5.56    192.168.5.56       25
255.255.255.255  255.255.255.255     192.168.1.50               4       1
255.255.255.255  255.255.255.255     192.168.1.50    192.168.1.50       1
255.255.255.255  255.255.255.255     192.168.1.50               2       1
255.255.255.255  255.255.255.255     192.168.1.50           10006       1
255.255.255.255  255.255.255.255     192.168.5.56    192.168.5.56       1
Default Gateway:       192.168.1.1
===========================================================================
Persistent Routes:
  None

我现在正在尝试示例命令,但它甚至不起作用:

route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2 路由添加失败:参数不正确。

答案1

事实证明,我需要先将正确子网中的 IP 添加到适配器。我将 157.1.2.3 添加到适配器,然后路由添加就成功了。

相关内容