Windows Server 2016 不可预测的静态路由

Windows Server 2016 不可预测的静态路由

我正在 Windows Server 2016 机器上配置路由。

我已经在 DrayTek 路由器上设置了 Lan 到 Lan VPN,如下所示:

Local network: 10.23.42.96/29

Remote networks: 10.41.73.0/24, 10.41.86.128/28

已联机并正常运行。机器上的网络接口有两个 IP:

IPv4 address. . . . . . . . : 10.23.42.98
Subnet mask . . . . . . . . : 255.255.255.248
IPv4 address . . . . . . .  : 10.123.11.200
Subnet mask . . . . . . . . : 255.255.255.0
Default gateway . . . . . . : 10.123.11.254

我的目标是将其设置10.23.42.97为所有通往我之前列出的两个远程网络的流量的网关。我使用这些命令添加了三个静态路由:

route -p ADD 10.41.86.128 MASK 255.255.255.240 10.23.42.97 IF 17
route -p ADD 10.41.73.0 MASK 255.255.255.0 10.23.42.97 IF 17
route -p ADD 10.23.42.96  MASK 255.255.255.248 10.23.42.97 IF 17

这是命令的输出route -p print

PS C:\Users\Administrator> route -p print
===========================================================================
Interface list
  2...98 f2 b3 39 d1 de ......Broadcom NetXtreme Gigabit Ethernet #3
 15...98 f2 b3 39 d1 dd ......Broadcom NetXtreme Gigabit Ethernet
 16...98 f2 b3 39 d1 df ......Broadcom NetXtreme Gigabit Ethernet #2
 17...98 f2 b3 39 d1 dc ......Microsoft Network Adapter Multiplexor Driver
  1...........................Software Loopback Interface 1
 11...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 10...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================

IPv4 route table
===========================================================================
Active routes:
     Network address          Mask          Gateway     Interface   Metric
          0.0.0.0          0.0.0.0    10.123.11.254      10.23.42.98    281
      10.23.42.96  255.255.255.248      10.23.42.97      10.23.42.98     26
      10.23.42.98  255.255.255.255         On-link       10.23.42.98    281
       10.41.73.0    255.255.255.0      10.23.42.97      10.23.42.98     26
     10.41.86.128  255.255.255.240      10.23.42.97      10.23.42.98     26
      10.123.11.0    255.255.255.0         On-link       10.23.42.98    281
    10.123.11.200  255.255.255.255         On-link       10.23.42.98    281
    10.123.11.255  255.255.255.255         On-link       10.23.42.98    281
     10.123.251.0    255.255.255.0         On-link    10.123.251.250    281
   10.123.251.250  255.255.255.255         On-link    10.123.251.250    281
   10.123.251.255  255.255.255.255         On-link    10.123.251.250    281
        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
      169.254.0.0      255.255.0.0         On-link    169.254.161.92    281
   169.254.161.92  255.255.255.255         On-link    169.254.161.92    281
  169.254.255.255  255.255.255.255         On-link    169.254.161.92    281
        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    10.123.251.250    281
        224.0.0.0        240.0.0.0         On-link    169.254.161.92    281
        224.0.0.0        240.0.0.0         On-link       10.23.42.98    281
  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    10.123.251.250    281
  255.255.255.255  255.255.255.255         On-link    169.254.161.92    281
  255.255.255.255  255.255.255.255         On-link       10.23.42.98    281
===========================================================================
Permanent routes:
   Network address            Mask          gateway  Metric
          0.0.0.0          0.0.0.0    10.123.11.254  Default
     10.41.86.128  255.255.255.240      10.23.42.97       1
       10.41.73.0    255.255.255.0      10.23.42.97       1
      10.23.42.96  255.255.255.248      10.23.42.97       1
===========================================================================

route print命令:

PS C:\Users\Administrator> route print
===========================================================================
Interface list
  2...98 f2 b3 39 d1 de ......Broadcom NetXtreme Gigabit Ethernet #3
 15...98 f2 b3 39 d1 dd ......Broadcom NetXtreme Gigabit Ethernet
 16...98 f2 b3 39 d1 df ......Broadcom NetXtreme Gigabit Ethernet #2
 17...98 f2 b3 39 d1 dc ......Microsoft Network Adapter Multiplexor Driver
  1...........................Software Loopback Interface 1
 11...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 10...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================

IPv4 route table
===========================================================================
Active routes:
     Network address            Mask          Gateway     Interface   Metric 
          0.0.0.0          0.0.0.0    10.123.11.254      10.23.42.98    281
      10.23.42.96  255.255.255.248      10.23.42.97      10.23.42.98     26
      10.23.42.98  255.255.255.255         On-link       10.23.42.98    281
       10.41.73.0    255.255.255.0      10.23.42.97      10.23.42.98     26
     10.41.86.128  255.255.255.240      10.23.42.97      10.23.42.98     26
      10.123.11.0    255.255.255.0         On-link       10.23.42.98    281
    10.123.11.200  255.255.255.255         On-link       10.23.42.98    281
    10.123.11.255  255.255.255.255         On-link       10.23.42.98    281
     10.123.251.0    255.255.255.0         On-link    10.123.251.250    281
   10.123.251.250  255.255.255.255         On-link    10.123.251.250    281
   10.123.251.255  255.255.255.255         On-link    10.123.251.250    281
        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
      169.254.0.0      255.255.0.0         On-link    169.254.161.92    281
   169.254.161.92  255.255.255.255         On-link    169.254.161.92    281
  169.254.255.255  255.255.255.255         On-link    169.254.161.92    281
        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    10.123.251.250    281
        224.0.0.0        240.0.0.0         On-link    169.254.161.92    281
        224.0.0.0        240.0.0.0         On-link       10.23.42.98    281
  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    10.123.251.250    281
  255.255.255.255  255.255.255.255         On-link    169.254.161.92    281
  255.255.255.255  255.255.255.255         On-link       10.23.42.98    281
===========================================================================
permanent routes:
   Network address            Mask     Gateway        Metric
           0.0.0.0          0.0.0.0    10.123.11.254  Default
     10.41.86.128  255.255.255.240      10.23.42.97       1
       10.41.73.0    255.255.255.0      10.23.42.97       1
      10.23.42.96  255.255.255.248      10.23.42.97       1
===========================================================================

主要问题是连接似乎非常不稳定且不可预测。例如,如果我运行,tracert 10.23.42.96该命令会显示第一个跳数和目标网关(10.23.42.97)。如果我运行tracert 10.41.73.1 有时它通过正确的网关,并且有时它只是超时了。如果我连续运行两次该命令,很可能会看到两个不同的结果。

我是不是漏掉了什么?我已经在 Linux 上设置了这样的系统,它运行起来没有任何问题。我对网络还很陌生,尤其是在 Windows 下。你能告诉我我做错了什么吗?非常感谢。

编辑

删除了 的部分输出并添加了和route print的完整输出。route -p printroute print

相关内容