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: Duplicate wifi connection but with different gateway

16 Oct 2011   #21
Lava King

Windows 7 Home Premium x64

Have you considered IP Switching software like this? Free IP Switcher - Free software downloads and software reviews - CNET

It's similar to the Toshiba "ConfigFree" application. I use it on a work laptop that must be connected to various networks and stand alone machines. It's a bit slow but much easier than manually editing the various parameters.

My System SpecsSystem Spec
16 Oct 2011   #22

Windows 7 Ultimate x64

Why you want to do it, I don't care but hopefully this batch file will help. Just copy to notepad save as anything you like with the extension .bat.

Make sure the Interface, IP, subnet and gateways match what you need. The interface name should be whats displayed in "Network Connections - Change adaptor settings" or you could run "netsh interface show interface" from a cmd prompt.

Remove pause from the end once it's working, pause is just there so you can read any errors given.

---- Start batch ----

@echo off
set INTERFACE="Wireless Network Connection"
set IP=

echo Choose Gateway
echo 1.
echo 2.

set /p GW=Choice?

if %GW%==1 goto GW1
if %GW%==2 goto GW2

echo Invalid choice '%GW%'. Enter 1 or 2.
goto START

set GW=
netsh interface ip set address name=%INTERFACE% static %IP% %SUBNET% %GW%
goto END

set GW=
netsh interface ip set address name=%INTERFACE% static %IP% %SUBNET% %GW%

---- End batch ----

If you prefer 2 batch files instead of the choice use the first 4 lines followed by the netsh line with the appropriate gateway.

This presumes your using IPv4 with a static IP, if not let us know and I should be able to modify for IPv6, not sure about DHCP but I could have a look. If your disabled DHCP service you will also need to re-enable it to use this script.
My System SpecsSystem Spec
22 Oct 2011   #23

Windows 7 Ultimate 32bit

have you tried using your firewall to stop/enable your windows apps from using the internet?
just make sure vmware or the virtuilizing app always has internet access
My System SpecsSystem Spec


 Duplicate wifi connection but with different gateway

Thread Tools

Similar help and support threads
Thread Forum
No connection/default gateway I'm running Windows 7- 64bit, comcast internet, netgear router. Ethernet connection. So recently my pc started getting super slow, and my a/v was showing all these threats were being blocked....
Network & Sharing
Default gateway not available - have new router and new wifi adapter
My internet keeps dropping out and when troubleshoot says 'default gateway not available' and fixes it. it drops out anywhere from every 1 minute to a few hours. must disable wifi adapter and then enable and all is fine. I was told to set a static ip which i did and had no effect. I thought...
Network & Sharing
Cannot Connect to Gateway? (WIFI) Win 7-64bit
Hey guys, been having trouble with my desktop for awhile after my family and I moved. I was running off an ethernet connection at the time but now I'm using a linksys adapter through our wifi network, however anytime I boot up the computer I get the yellow no internet access symbol. After using...
Network & Sharing
Duplicate SSID, Sporadic connection
Not sure how to describe this best.....I purchased a new laptop and router about a year ago. Six months ago we had a nearby lightning strike which runined the router. I replaced it with the exact same model. The laptop was unplugged at the time of the strike. Ever since I replaced the router,...
Network & Sharing
Default gateway not available, network connected BOTH wifi and LAN
Seems to be popping up alot, so maybe some one has an idea. I recently woke up to find that my Acer Aspire 5250 notebook with an Atheros network card, which had the previous evening had wifi connection, no longer could get online. Further investigation showed that the notebook was/is connecting...
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 05:12.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App