Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Handling two Network Gateways in Win7x64

15 Mar 2015   #1
AzJazz

Win7x64 Pro
 
 
Handling two Network Gateways in Win7x64

Hi - I am trying to find out how to configure Win7x64 to handle two network gateways efficiently and permanently.

My configuration is this:

I am running a Virtual Machine that creates a new public gateway on my network that routes all traffic to my VPN provider. The VM sets the public gateway IP address to 192.168.1.200.

So, if I have a device or other PC that I want to route through my VPN tunnel, I have that device's primary gateway pointing to the VM public gateway IP address (192.168.1.200).

The problems come into play when booting up my PC, or the VM machine is powered down.

When the VM is shut down or inaccessible, I would like all my network traffic to go quickly and efficiently through my normal gateway (192.168.1.1).

Unfortunately, I can't seem to get this to work reliably. By adding the 192.168.1.1 "normal" gateway address to my IPv4 configuration, the majority of my traffic fails to connect to websites when the VPN VM is down.

In addition, when I reboot my PC, regardless of my IPv4 saved settings, the "normal" gateway becomes the primary gateway when the PC comes up, and I need to reconfigure my network settings manually after each reboot.

Can anybody help? I would think there should be a solution to this.

Thanks!

AJ


My System SpecsSystem Spec
.
16 Mar 2015   #2
doctore

Windows 7 Pro
 
 

Which visualization software are you using?
My System SpecsSystem Spec
17 Mar 2015   #3
AzJazz

Win7x64 Pro
 
 

Quote   Quote: Originally Posted by doctore View Post
Which visualization software are you using?
Hi, doctore - I'm running a VMWare VM.

Is that what you want to know? Or, did you want to know about the VM that creates the OpenVPN gateway?
My System SpecsSystem Spec
.

17 Mar 2015   #4
doctore

Windows 7 Pro
 
 

Quote   Quote: Originally Posted by AzJazz View Post

Hi, doctore - I'm running a VMWare VM.

Is that what you want to know?
Yup. Is the guest OS a server?

A solution that comes to mind would be to run two networks - one with the virtual OS, let's say 192.168.2.0 and your normal one 192.168.1.0 and set the virtual network as preferred. Leave all client IP assignment automatic and run a DHCP role on the virtual server.
My System SpecsSystem Spec
21 Mar 2015   #5
AzJazz

Win7x64 Pro
 
 

Quote   Quote: Originally Posted by doctore View Post
Quote   Quote: Originally Posted by AzJazz View Post

Hi, doctore - I'm running a VMWare VM.

Is that what you want to know?
Yup. Is the guest OS a server?

A solution that comes to mind would be to run two networks - one with the virtual OS, let's say 192.168.2.0 and your normal one 192.168.1.0 and set the virtual network as preferred. Leave all client IP assignment automatic and run a DHCP role on the virtual server.
Hi, doctore - Thanks for getting back on this. I've been away for a bit.

Are you asking if the Guest O/S supports a DHCP server? Yes, that is an option I can enable.

So, if VPN VM goes down, the DHCP server will go down at the same time, and my PC will immediately get a new IP address from my router's DHCP server and send all traffic through the router?

Is that what you are suggesting?

Thanks,

AzJazz
My System SpecsSystem Spec
21 Mar 2015   #6
doctore

Windows 7 Pro
 
 

That's the gist of it, yes.
My System SpecsSystem Spec
22 Mar 2015   #7
AzJazz

Win7x64 Pro
 
 

OK, thanks! That sounds like it might work, but there was I problem I ran into previously that may affect this.

Is there a way I can make sure that the VPN gateway is always the main one I would use once I start the VPN up? It seems like Win7 likes to reassign network connection priorities after I reboot, and I expect the normal connection would always have a higher priority after rebooting, and I would need to manually modify things to get the VPN VM selected again.

Or, does your solution fix this problem already?
My System SpecsSystem Spec
Reply

 Handling two Network Gateways in Win7x64




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 Handing multiple gateways for Internet connection
Hi, I have two different Internet Service Provider (ISP). The first ISP router is 192.168.0.1 The second ISP router is 192.168.0.2 I want to know if I set 192.168.0.2 as a secondary default gateway in windows 7 pro. with metric 10. ( Tcp IP properties / advance TAB / bottom add another...
Network & Sharing
How to configure multiple gateways
I have 2 routers, 192.168.0.1 and 192.168.0.10. Computers are assigned IP address through DHCP with 192.168.0.1 as the default gateway. 192.168.0.10 is a test router to test different rules than what are set on the 192.168.0.1 router. For me to test, I usually just set the default gateway as...
Network & Sharing
Unable to save Default Gateways in Network Settings!
Hi, I want to save the Default Gateways in Advance TCP/IP Settings for my network adapter. I used the following sequence to set the values: 1. Open Adapter Settings (LAN Properties). 2. Select IPv4 and click on Properties. 3. Click Advance. 4. In the Popup select to add Default Gateways for...
Network & Sharing
Network Speed Problems (Win7x64)
Been trying to track down some networking problems for a while now, and I'm starting to wonder if they are windows related. I have a gigabit network running through a cisco 3750. I have a windows 7x64 box that I can't get seem to get sustained throughput. I'm attempting transfers from this...
Network & Sharing
Win7x64 pro - Network slow or hangs
Hello. I have been running the various testversions of Win7, finally the RC-build, on a number of PCs. The first installations were all 32 bit. All of them working fine on the different machines. Then I bought Win 7 pro 64 bit, installing it on a newly formatted partition, on my home computer -...
Network & Sharing
wifi handling
Dear friends, I'm quite new using W7 so please be patient :D My question is: there are two different wireless network I have to use: one to home with WEP and DHCP, the second to office with WPA2 and fixed address; there is also a third one which is a LAN with fixed address too, but this...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:59.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App