路由无法正常工作,似乎无效

时间:2020-04-08 11:10:36

标签: routing

我正在尝试向PC添加路由以访问触摸屏的VNC服务器(以控制特定计算机)。

触摸屏的IP地址为192.168.1.20,子网掩码为255.255.255.0 机器有2个以太网端口,第一个具有IP地址192.168.3.10,第二个具有IP地址192.168.1.1。两者都有子网掩码255.255.255.0

根据机器制造商的说法,如果我将路由添加到Windows pc上并且他给了我以下链接,则应该可以到达触摸屏: https://www.howtogeek.com/howto/windows/adding-a-tcpip-route-to-the-windows-routing-table/

如果我键入“ route add 192.168.1.1 mask 255.255.255.0 192.168.3.10”,然后按Enter键,我将得到答复“ route add failed参数错误”

如果我输入“” route -p,添加192.168.1.1掩码255.255.255.0 192.168.3.10”,然后按Enter键,我将收到回复“确定!”

如果我随后重新启动PC并尝试跟踪路由,它将使用我的默认网关而不是我添加的路由。

该路由也不在活动路由列表中。我有点迷路了,有人有主意吗?

谢谢!

下面是命令提示符下的文本:

C:\Windows\system32>route add 192.168.1.1 mask 255.255.255.0 192.168.3.10
The route addition failed: De parameter is onjuist.


C:\Windows\system32>route -p add 192.168.1.1 mask 255.255.255.0 192.168.3.10
 OK!

C:\Windows\system32>route print
===========================================================================
Interface List
 15...04 d9 f5 d2 58 49 ......Realtek Gaming GbE Family Controller
  9...00 ff 7a 85 69 ee ......TAP-Windows Adapter V9
  4...40 74 e0 79 5a 2d ......Microsoft Wi-Fi Direct Virtual Adapter
  2...42 74 e0 79 5a 2c ......Microsoft Wi-Fi Direct Virtual Adapter #2
  8...40 74 e0 79 5a 2c ......Intel(R) Wireless-AC 9260 160MHz
  6...40 74 e0 79 5a 30 ......Bluetooth Device (Personal Area Network)
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.3.1    192.168.3.104     50
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
      192.168.3.0    255.255.255.0         On-link     192.168.3.104    306
    192.168.3.104  255.255.255.255         On-link     192.168.3.104    306
    192.168.3.255  255.255.255.255         On-link     192.168.3.104    306
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link     192.168.3.104    306
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link     192.168.3.104    306
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
      192.168.1.1    255.255.255.0     192.168.3.10       1
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
  8    306 fe80::/64                On-link
  8    306 fe80::532:bb65:7a1a:7b56/128
                                    On-link
  1    331 ff00::/8                 On-link
  8    306 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

C:\Windows\system32>tracert 192.168.1.1

Tracing route to 192.168.1.1 over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms  192.168.3.1
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
  6     *        *        *     Request timed out.
  7     *        *        *     Request timed out.
  8     *        *        *     Request timed out.
  9     *        *        *     Request timed out.
 10     *        *        *     Request timed out.
 11     *        *        *     Request timed out.
 12     *        *        *     Request timed out.
 13     *        *        *     Request timed out.
 14     *        *        *     Request timed out.
 15     *        *        *     Request timed out.
 16     *        *        *     Request timed out.
 17     *        *        *     Request timed out.
 18     *        *        *     Request timed out.
 19     *        *        *     Request timed out.
 20     *        *        *     Request timed out.
 21     *        *        *     Request timed out.
 22     *        *        *     Request timed out.
 23     *        *        *     Request timed out.
 24     *        *        *     Request timed out.
 25     *        *        *     Request timed out.
 26     *        *        *     Request timed out.
 27     *        *        *     Request timed out.
 28     *        *        *     Request timed out.
 29     *        *        *     Request timed out.
 30     *        *        *     Request timed out.

Trace complete.

C:\Windows\system32>

0 个答案:

没有答案