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 Download.com

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
Duzzy

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=192.168.0.2
set SUBNET=255.255.255.0

:START
echo Choose Gateway
echo.
echo 1. 192.168.0.1
echo 2. 192.168.0.10
echo.

set /p GW=Choice?

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

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

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

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

:END
pause
---- 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
cchhuummllyy

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
.

Reply

 Duplicate wifi connection but with different gateway




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
Connection Dropping - Default Gateway not available
Hello, for quite some time now I have been experiencing constant drops in my wireless connection, as constant as every 1 minute. It is not often I stay connected for more then 15 minutes at a time. When I run troubleshoot the end report says varying messages, but mainly "Default Gateway not...
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
Wireless Connection - WIFI connection not showing up
I have a iMac and I have installed Windows7 using Bootcamp v4.0. When I use the computer on MacOS X I am able to connect to the Wireless Connection named (ORACLE@PG), also when I restart the computer the same connection shows on the boot-loader screen. But when I am on the Windows 7, I am unable...
Network & Sharing
Default Gateway Not Available - Connection keeps dropping
Hello everyone, I'm hoping that you can help me. I've lurked this forum for a long time. This is a wired connection to the router/modem and I have also tried it on a different router. I'll give a short version, then the lengthy background and what I have tried. Short version: Any download of...
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 09:03.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App