当 WiFi 开启时,通过具有静态 IP 的 LAN 网络进行 RDP

当 WiFi 开启时,通过具有静态 IP 的 LAN 网络进行 RDP

我希望能够通过 LAN 连接到封闭网络,但同时也要打开 WiFi 以访问互联网。要连接到封闭网络,我需要在以太网卡上设置静态 IP,要通过 WiFi 访问互联网,我需要将其保留为自动 IP。如果我关闭 WiFi 连接,我可以在封闭网络上 ping 和 RDP 计算机,但当 WiFi 打开时,我无法这样做,但我有互联网连接。我已经在装有 Windows 10 的笔记本电脑和装有 Windows 7(均为专业版)的笔记本电脑上测试过这一点,它们都无法做到这一点。有什么办法可以让它工作吗?

这是关闭 WiFi 时的路由表:

C:\Users\{username}>route print
===========================================================================
Interface List
 13...62 f6 77 b9 d3 ef ......Microsoft Wi-Fi Direct Virtual Adapter
 17...60 f6 77 b9 d3 f0 ......Microsoft Wi-Fi Direct Virtual Adapter #2
 12...a4 4c c8 6e 6b 23 ......Intel(R) Ethernet Connection (5) I219-LM
  4...60 f6 77 b9 d3 ef ......Intel(R) Dual Band Wireless-AC 8265
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      11.22.33.1      11.22.33.100    291
        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
       11.22.33.0    255.255.255.0         On-link      11.22.33.100    291
     11.22.33.100  255.255.255.255         On-link      11.22.33.100    291
     11.22.33.255  255.255.255.255         On-link      11.22.33.100    291
        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      11.22.33.100    291
  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      11.22.33.100    291
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0       11.22.33.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
 12    291 fe80::/64                On-link
 12    291 fe80::d42:ffd8:4aec:9a54/128
                                On-link
  1    331 ff00::/8                 On-link
 12    291 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

这是开启 WiFi 的路线表:

C:\Users\{username}>route print
===========================================================================
Interface List
 13...62 f6 77 b9 d3 ef ......Microsoft Wi-Fi Direct Virtual Adapter
 17...60 f6 77 b9 d3 f0 ......Microsoft Wi-Fi Direct Virtual Adapter #2
 12...a4 4c c8 6e 6b 23 ......Intel(R) Ethernet Connection (5) I219-LM
  4...60 f6 77 b9 d3 ef ......Intel(R) Dual Band Wireless-AC 8265
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      44.55.66.1       44.55.66.66     50
          0.0.0.0          0.0.0.0      11.22.33.1      11.22.33.100    291
        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
       11.22.33.0    255.255.255.0         On-link      11.22.33.100    291
     11.22.33.100  255.255.255.255         On-link      11.22.33.100    291
     11.22.33.255  255.255.255.255         On-link      11.22.33.100    291
       44.55.66.0    255.255.255.0         On-link       44.55.66.66    306
      44.55.66.66  255.255.255.255         On-link       44.55.66.66    306
     44.55.66.255  255.255.255.255         On-link       44.55.66.66    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      11.22.33.100    291
        224.0.0.0        240.0.0.0         On-link       44.55.66.66    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      11.22.33.100    291
  255.255.255.255  255.255.255.255         On-link       44.55.66.66    306
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0       11.22.33.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
 12    291 fe80::/64                On-link
  4    306 fe80::/64                On-link
 12    291 fe80::d42:ffd8:4aec:9a54/128
                                    On-link
  4    306 fe80::4971:5ea9:33db:4cc7/128
                                    On-link
  1    331 ff00::/8                 On-link
 12    291 ff00::/8                 On-link
  4    306 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

谢谢你,Liron Hallak

相关内容