Perhaps this is a novice question, but:

I am dealing with two LANs: LAN 1 is a wired Ethernet connection to a small test network that is not connected to the internet (this is forbidden), used for monitoring a handful of connected devices. LAN 2 is also wired Ethernet through my dock, through which I have an internet connection. Each connection has its own network adapter.

Right now I use batch files to disable one adapter and enable the other adapter and then assign an IP when I want to switch networks. This is clunky, because if I'm connected to the test network and I need to quickly google something, I have to switch adapters, which takes ~1 minute or so round trip, and this downtime is really starting to add up.

Is there a way I can stay connected to both LANs without having to disable and reenable network adapters?


Route print output

Interface List
  4...b4 b6 86 13 a3 2d ......Intel(R) Ethernet Connection (2) I219-LM
 21...b4 b6 86 11 08 b6 ......Broadcom NetXtreme Gigabit Ethernet
  8...02 00 4c 4f 4f 50 ......Npcap Loopback Adapter
  1...........................Software Loopback Interface 1
  5...00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter

IPv4 Route Table
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
     25         On-link    331         On-link    331         On-link    331         On-link    281         On-link    281         On-link    281         On-link    281         On-link    281         On-link    281         On-link    331         On-link    281         On-link    281         On-link    331         On-link    281         On-link    281
Persistent Routes:

IPv6 Route Table
Active Routes:
 If Metric Network Destination      Gateway
  1    331 ::1/128                  On-link
  8    281 fe80::/64                On-link
 21    281 fe80::/64                On-link
 21    281 fe80::acc6:fefc:a192:7ccc/128
  8    281 fe80::dc9f:2ff3:4c6f:c16a/128
  1    331 ff00::/8                 On-link
  8    281 ff00::/8                 On-link
 21    281 ff00::/8                 On-link
Persistent Routes:
  • 1
    Similar question here but answer is the same, you must bridge the 2 adapters>>>>superuser.com/questions/520484/… – Moab Apr 22 '20 at 19:37
  • @Moab, Thanks. If I don't want to bridge these networks together because I don't want the test network attached to the internet in any way, I'm out of luck? – Bort Apr 22 '20 at 19:41
  • Servers use multiple network adapters all the time and they are segregated but don't know how they are set up, but is possible im sure. Hopefully someone more knowledgeable will speak yp. – Moab Apr 22 '20 at 19:52

Windows will use two networks. You need to ensure:

  • Each network uses a distinct set of IP addresses.
  • Ensure that there is no default route to the test network by using the route delete command on its route.
  • Refer to computers by their IP addresses (beware of this Windows gotcha).
  • Do I need to be attached to a specific network adapter only when I delete this route? If I am connected to the test network, the route command says that the route does not exist; if I delete the route when connected to the internet-connected LAN, I lose connection to the internet. – Bort Apr 23 '20 at 12:43
  • Please connect to both networks and add to your post the output of route print, so I can understand more. – harrymc Apr 23 '20 at 13:06
  • Added route print output. – Bort Apr 23 '20 at 14:03
  • Seems fine. I guess 192.168.73.x is the main network and 169.254.193.x is the test network. What is the problem of using both via IP addresses? – harrymc Apr 23 '20 at 14:15
  • No, the test network is 10.0.x.x, but whenever I am connected to the internet through apparently 192.168.73.x, the network setting screen puts a red X over the test network adapter. I cannot get them to be on/show up at the same time. – Bort Apr 23 '20 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.