Wednesday 5 August 2015

Connect to Multiple Networks simultaneously using Windows 7

 

I struggled to setup multiple networks working simultaneously.. Sharing my findings and steps involved:

1. Set Manual Metric Setting for all Network interfaces. Lower value takes the preference! So, set lowest value for the network which should be opened for most requests like Internet connection.

image

Detailed steps:

1. Open Command Prompt and type: route print - you will see a list of active routes, the last column displaying their "metric". Lower metric routes are preferred over higher ones.
2. Open the Network Adapter Properties (Control Panel > Network and Internet > Network Connections > right-click on adapter and choose Properties)
3. Open the properties of Internet Protocol Version 4 (TCP/IPv4).
4. Click on Advanced.
5. Untick "Automatic Metric" and set the interface metric to a number.
6. Hit OK until you close the Network Adapter properties.
7. Repeat steps 2-6 for your other network adapter(s) choosing different metrics. Remember lower metrics are preferred over higher ones.

2. Only Single Gateway Interface configuration required. i.e. For most preferred Interface, define the Gateway, for rest of the Network Adaptors, use Static IP Configuration without Gateway setting.

image

3. For Accessing Internal Servers, either access them first and then change the Metric setting else specify the Static Route using following commands:

route –p add destination mask subnetmask gateway metric costmetric if interface

For eg.

route -p add 192.213.64.20 mask 255.255.255.0 192.213.40.254 metric 2

4. Now, you can access both networks from single machine !

Reference:

http://windows.microsoft.com/en-in/windows/configuring-multiple-network-gateways#1TC=windows-7

http://www.speedguide.net/faq/how-to-tell-windows-7-to-use-a-different-default-350

No comments:

Post a Comment