我想弄清楚如何添加一个networking路由,我不断收到“路由添加失败:参数不正确。” 我甚至尝试从路线命令帮助的例子,我得到同样的错误。 这是我目前的路线:
=========================================================================== 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
我只是现在尝试示例命令,甚至不起作用:
路由ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2路由添加失败:参数不正确。
原来,我需要在正确的子网中添加一个IP到适配器。 我添加了157.1.2.3到适配器,然后路由添加工作。