Duplicate wifi connection but with different gateway

My Computer My Computer

At a glance

Windows 7 Home Premium x64Intel Core i7 5960X @3.0 GHz4 x 4 GB G.Skill Ripjaws4 DDR4-2400PNY GTX 780
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium x64
CPU
Intel Core i7 5960X @3.0 GHz
Motherboard
Gigabyte GA-X99-SOC Force
Memory
4 x 4 GB G.Skill Ripjaws4 DDR4-2400
Graphics Card(s)
PNY GTX 780
Sound Card
Realtek on-board ALC1150
Monitor(s) Displays
HP Z30i + Asus PA246Q + Dell U2412M
Screen Resolution
2560x1600 + 1920x1200 + 1920x1200
Hard Drives
Samsung 830 256GB
PSU
Antec EarthWatts 650W
Case
Cooler Master HAF 932
Cooling
Corsair Hydro Series H105
Keyboard
Razer BlackWidow Tournament Edition Stealth
Mouse
Razer Naga
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.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Pentium Dual Core E5200 2.5GHz (3.77GHz...Corsair 4GB DDR2 (4x1GB CM2X1024-6400C4)Palit GeForce GTS 250 (1024MB)
Computer Manufacturer/Model Number
Self built
OS
Windows 7 Ultimate x64
CPU
Intel Pentium Dual Core E5200 2.5GHz (3.77GHz OC)
Motherboard
Asus P5Q-E
Memory
Corsair 4GB DDR2 (4x1GB CM2X1024-6400C4)
Graphics Card(s)
Palit GeForce GTS 250 (1024MB)
Sound Card
On Board (ADI AD2000B 8ch HD)
Monitor(s) Displays
Samsung 32in LCD TV
Screen Resolution
1360x768
Hard Drives
2 x 1TB Samsung 103SJ (Raid0)
2 x External 500GB Samsung 502IJ (NexStar 3 HD Enclosures)
PSU
550W Antec Neo HE 550
Case
Antec P180
Cooling
Xigmatex Red Scorpion CPU Cooler. 3x120mm Fans
Keyboard
Logitech MX5000 Laser (Combo)
Mouse
Logitech MX5000 Laser (Combo)
Internet Speed
ADSL2+ (avg 10 Mbps Down, 0.80 Mbps up)
Other Info
Gigabyte GN-WP01GS 54g Wireless Lan Card
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 Computer My Computer

At a glance

Windows 7 Ultimate 32bit
OS
Windows 7 Ultimate 32bit
Back
Top