Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Routing Traffic w/ Multiple NICs


  • Please log in to reply
16 replies to this topic

#1 fruv

fruv

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 28 March 2017 - 08:19 PM

Here is the scenario, I have two networks at home.  
 
Network "A" I use to for work, Network "B" is my home network.  My work laptop has two network connections and I connect it to network "A" all the time.  I want to be able to back it up but my NAS on network "B".  How can I force all internet traffic to use network "A" and internal traffic to use network "B"?
 
Windows 10 pro edition

Edited by Al1000, 29 March 2017 - 06:57 AM.
moved from Windows 10 Support


BC AdBot (Login to Remove)

 


#2 toofarnorth

toofarnorth

  • Members
  • 393 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:34 AM

Posted 29 March 2017 - 10:37 AM

Hello fruv

 

Are these two networks on different devices (routers)?

tfn

Attached Files



#3 fruv

fruv
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 29 March 2017 - 11:10 AM

Your diagram is correct.



#4 Kilroy

Kilroy

  • BC Advisor
  • 3,461 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:11:34 PM

Posted 29 March 2017 - 11:30 AM

If the network is set up like the diagram, hopefully you have different networks for each router, ie. 192.168.0.x and 192.168.1.x.

 

Does network B even have an Internet connection?  That would be the easy way.  Put all internal devices on network B and only have Internet access available on network A.  All internal requests would go to network B and the only path to the Internet is network A.



#5 toofarnorth

toofarnorth

  • Members
  • 393 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:34 AM

Posted 29 March 2017 - 11:44 AM

You should only have one default gateway set on your nics.
If internet is supposed to work it needs to be on the work network.

Set a static ip on the home network nic and no default gateway.

This should work well

 

 

tfn



#6 fruv

fruv
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 29 March 2017 - 11:45 AM

Thanks for you replies.   Both are separate networks.

 

Network B has internet access but is nat'ed which plays havoc with my work VPN which is why I need to force all external traffic to network A.  Does Windows have a way to say everything that is 192.168.0.x be routed to B, everything 192.168.2.x and external be routed to A?

 

I will try your suggestion toofarnorth and report back.


Edited by fruv, 29 March 2017 - 11:46 AM.


#7 toofarnorth

toofarnorth

  • Members
  • 393 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:34 AM

Posted 29 March 2017 - 11:58 AM

When you have networkcards with ip adresses set the OS will automatically route ip adresses in the nic range to the correct network

So, if your work ip is 172.16.1.100 with a 255.255.255.0 mask every connection to ips in the 172.16.1.1 to 172.16.1.255 range will be sent out on the work nic.

Same with home network. If this is 192.168.1.100 with a 255.255.255.0 mask every connection to the ips in the 192.168.1.1 to 192.168.1.255 range will be sent out on the home nic

If the ip you are connecting to isnt in any of these ranges it will try to send it to the default gateway who should know what to do with it.
Most likely it will be sent to the isps default gateway who will check where it is supposed to go and forward it in that direction and so forth...
 

Edit here:
This is why you only should have one default gateway on your computer. If there are 2, the computer cant send it forwards because it has to choose between them but doesnt understand how to do just that.

 

tfn
 


Edited by toofarnorth, 29 March 2017 - 12:00 PM.


#8 fruv

fruv
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 29 March 2017 - 12:20 PM

When I put no default gateway on NIC B, it says "Unidentified network" and nothing works.

 

Capture_1.png



#9 toofarnorth

toofarnorth

  • Members
  • 393 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:34 AM

Posted 29 March 2017 - 03:06 PM

I see a Cisco AnyConnect network card.

Afaik that is a software vpn solution. Am I correct?

 

tfn



#10 fruv

fruv
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 29 March 2017 - 03:15 PM

Yes, that's software and not a physical NIC.



#11 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:10:34 PM

Posted 29 March 2017 - 11:31 PM

Not seeing two Ethernet cards so it would appear the nic you put no gateway on is your internet connection.

 

Post the results of a ipconfig /all for review



#12 fruv

fruv
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 30 March 2017 - 08:09 AM

Ethernet is the connection that is supposed to be internal ("network B"), wifi is network "A" with internet access.

 

Output below as requested

 

 

 

 
Windows IP Configuration
 
   Host Name . . . . . . . . . . . . : ***********
   Primary Dns Suffix  . . . . . . . : *****.local
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : *****.local
                                       lan
                                       DOMAIN.com
 
Ethernet adapter Ethernet:
 
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Intel® Ethernet Connection I218-LM
   Physical Address. . . . . . . . . : 34-E6-D7-13-8B-37
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::9123:37e5:7567:ace2%24(Preferred) 
   IPv4 Address. . . . . . . . . . . : 192.168.1.27(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 
   DHCPv6 IAID . . . . . . . . . . . : 53798615
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-20-37-8E-7F-34-E6-D7-13-8B-37
   DNS Servers . . . . . . . . . . . : 8.8.8.8
   NetBIOS over Tcpip. . . . . . . . : Enabled
 
Wireless LAN adapter Local Area Connection* 2:
 
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 48-51-B7-1C-33-07
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
 
Wireless LAN adapter Wi-Fi:
 
   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Intel® Dual Band Wireless-AC 7260
   Physical Address. . . . . . . . . : 48-51-B7-1C-33-06
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::d96e:2a3c:ee:ab0c%11(Preferred) 
   IPv4 Address. . . . . . . . . . . : 192.168.86.179(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Monday, March 27, 2017 4:49:10 PM
   Lease Expires . . . . . . . . . . : Friday, March 31, 2017 8:47:12 AM
   Default Gateway . . . . . . . . . : 192.168.86.1
   DHCP Server . . . . . . . . . . . : 192.168.86.1
   DHCPv6 IAID . . . . . . . . . . . : 71848375
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-20-37-8E-7F-34-E6-D7-13-8B-37
   DNS Servers . . . . . . . . . . . : 192.168.86.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
 
Ethernet adapter Local Area Connection* 5:
 
   Connection-specific DNS Suffix  . : DOMAIN.com
   Description . . . . . . . . . . . : Shrew Soft Virtual Adapter
   Physical Address. . . . . . . . . : AA-AA-AA-2C-AE-00
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::ad1a:cead:2890:7811%8(Preferred) 
   IPv4 Address. . . . . . . . . . . : 10.77.102.139(Preferred) 
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 
   DHCPv6 IAID . . . . . . . . . . . : 111848106
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-20-37-8E-7F-34-E6-D7-13-8B-37
   DNS Servers . . . . . . . . . . . : 10.77.80.31
                                       10.77.80.32
   NetBIOS over Tcpip. . . . . . . . : Disabled
 
Tunnel adapter Local Area Connection* 15:
 
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft Teredo Tunneling Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
 
Tunnel adapter isatap.{F35812C2-4CA2-4670-A47A-3D472E42A9AC}:
 
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
 
Tunnel adapter isatap.DOMAIN.com:
 
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : DOMAIN.com
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
 
Tunnel adapter isatap.lan:
 
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes


#13 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:10:34 PM

Posted 30 March 2017 - 02:12 PM

Which is A and which is B?

 

I suspect A is the Ethernet connection connecting to the internet since you modified the dns entry to point to google but didn't on the wifi link.  You would only do that with a internet connection.

 

If this is correct reverse the procedure and make the wifi gateless.


Edited by Wand3r3r, 30 March 2017 - 02:13 PM.


#14 fruv

fruv
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:01:34 AM

Posted 30 March 2017 - 03:20 PM

Wifi is internet connection, ethernet is internal connection.  I removed the DNS entry for the ethernet connection.  Windows still shows that it is an "unidentified network".



#15 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:10:34 PM

Posted 30 March 2017 - 05:25 PM

Ok. then disable the Ethernet and lets see if you get internet with just the single wifi interface to make sure the connection works






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users