1

I want to be able to connect to a closed network through LAN but to also have the WiFi open for internet. To connect to the closed network I need to set a static IP on the Ethernet card and to have Internet through WiFi I need to leave it as automatic IP. If I close the WiFi connection I am able to ping and RDP computers on the closed network but when WiFi is on I can't, but I do have internet connectivity. I've tested this on a laptop with Windows 10 and on one with Windows 7 (both Pro versions) and they are both unable to do this. Is there any way to make this work?

This is the route table with WiFi off:

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

This is the route table with WiFi on:

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

Thank you, Liron Hallak

16
  • Show WiFi interface settings (IP-mask-gateway) and the same parameters You set to NIC interface. Show route print output with (no Inet) and without (Inet accessable) of setting NIC parameters. PS. I think the problem source is You try to set default gateway on the NIC interface - it's wrong, You must set route to LAN subnets only. Or maybe subnets of NIC and WiFi intersects - if so, we need much more info about You networks for to help You...
    – Akina
    Commented Jun 7, 2018 at 8:03
  • The problem is that when WiFi and LAN are connected I do have internet but I can't access other computers on the network. The settings I have for the WiFi connection are all automatic, so it depends on the network I'm connecting to. I connected to my phones hotspot and to my office WiFi with no difference in the results. The settings on LAN are without DNS, I set a static IP and gateway. Commented Jun 10, 2018 at 6:35
  • Show any WiFi connection settings and route table when this connection is on (no LAN) and off (LAN accessible). Add it to Q. text.
    – Akina
    Commented Jun 10, 2018 at 17:17
  • I can't post print screens of network settings because this is sensitive material. How do I send route prints without reviling the static ip's? Commented Jun 12, 2018 at 7:04
  • I can't post print screens of network settings because this is sensitive material. 1) Do not post "print screen", post console route print command output (copy-paste); 2) Replace real addresses with some like "11.22.33.44" keep subnetting with accuracy (if exists). Private addresses do not need in replace.
    – Akina
    Commented Jun 13, 2018 at 4:40

0

You must log in to answer this question.