无法让 Windows 优先考虑特定网络适配器

无法让 Windows 优先考虑特定网络适配器

我们有一台带有 3 个网络适配器(2 个物理适配器和 1 个虚拟适配器)的 Windows 7 PC:

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.75.20
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.75.1

Unknown adapter Local Area Connection 3:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 10.8.0.3
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection 2:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.1.253
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   IPv4 Address. . . . . . . . . . . : 192.168.150.2
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   IPv4 Address. . . . . . . . . . . : 192.168.255.126
   Subnet Mask . . . . . . . . . . . : 255.255.252.0
   Default Gateway . . . . . . . . . :

当我禁用Local Area Connection 3虚拟适配器时,我能够远程桌面连接到公司网络上 IP 地址为 172.27.117.78 的另一台计算机。但如果Local Area Connection 3启用了适配器,则远程桌面无法连接到 172.27.117.78。显然,Windows 尝试连接到 172.27.117.78,Local Area Connection 3但无法访问该计算机。

因此我尝试让 Windows 优先使用适配器Local Area Connection,并使用答案这里

  • 我设置Local Area Connection属性> TCP / IPv4属性>高级>接口度量= 1
  • 我设置Local Area Connection 2属性> TCP / IPv4属性>高级>接口度量= 2
  • 我设置Local Area Connection 3属性> TCP / IPv4属性>高级>接口度量= 3
  • 我转到控制面板 > 网络和 Internet > 网络连接 > 高级 > 高级设置 > 适配器和绑定,然后移至Local Area Connection列表顶部、Local Area Connection 2其下方、再Local Area Connection 3其下方。

Local Area Connection 3完成所有操作后,如果启用了适配器,远程桌面仍然无法连接到 172.27.117.78 。

另外,我尝试禁用Local Area Connection 2它以将其从方程式中删除。同样的问题,当Local Area Connection 3禁用时,远程桌面连接有效,但当Local Area Connection 3启用时,远程桌面连接失败。

编辑:这是输出route print(“82579LM”接口是Local Area Connection,“TAP-Windows Adapter V9”接口是Local Area Connection3):

C:\WINDOWS\system32>route print
===========================================================================
Interface List
 11...xx xx xx xx xx xx ......Intel(R) 82579LM Gigabit Network Connection
 13...xx xx xx xx xx xx ......Intel(R) Gigabit CT Desktop Adapter
 16...xx xx xx xx xx xx ......TAP-Windows Adapter V9
  1...........................Software Loopback Interface 1
 12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     192.168.75.1    192.168.75.20    257
          0.0.0.0        128.0.0.0         10.8.0.1         10.8.0.3      3
         10.8.0.0      255.255.0.0         On-link          10.8.0.3    259
         10.8.0.3  255.255.255.255         On-link          10.8.0.3    259
     10.8.255.255  255.255.255.255         On-link          10.8.0.3    259
         54.x.x.x  255.255.255.255     192.168.75.1    192.168.75.20      1
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
        128.0.0.0        128.0.0.0         10.8.0.1         10.8.0.3      3
      192.168.1.0    255.255.255.0         On-link     192.168.1.253    258
    192.168.1.253  255.255.255.255         On-link     192.168.1.253    258
    192.168.1.255  255.255.255.255         On-link     192.168.1.253    258
     192.168.75.0    255.255.255.0         On-link     192.168.75.20    257
    192.168.75.20  255.255.255.255         On-link     192.168.75.20    257
   192.168.75.255  255.255.255.255         On-link     192.168.75.20    257
    192.168.150.0    255.255.255.0         On-link     192.168.1.253    258
    192.168.150.2  255.255.255.255         On-link     192.168.1.253    258
  192.168.150.255  255.255.255.255         On-link     192.168.1.253    258
    192.168.252.0    255.255.252.0         On-link     192.168.1.253    258
  192.168.255.126  255.255.255.255         On-link     192.168.1.253    258
  192.168.255.255  255.255.255.255         On-link     192.168.1.253    258
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link     192.168.75.20    257
        224.0.0.0        240.0.0.0         On-link     192.168.1.253    258
        224.0.0.0        240.0.0.0         On-link          10.8.0.3    259
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link     192.168.75.20    257
  255.255.255.255  255.255.255.255         On-link     192.168.1.253    258
  255.255.255.255  255.255.255.255         On-link          10.8.0.3    259
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0     192.168.75.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
  1    306 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

相关内容