Windows LAN Settings Switcher

Mainstay

Well-Known Member
Reaction score
747
Does anyone know of a good (and working) LAN Settings Switcher for Windows (7, 64b)?

I keep finding little utilities on SourceForge but they never work for me.

What I am looking to do is have a short list of preset networks that are quickly set in Network Settings with a click of a button.

Like:

PRESET 1:
IP: 192.168.1.20
SUB: 255.255.255.0
GW: 192.168.1.1

PRESET 2:
IP: 192.168.0.20
SUB: 255.255.255.0
GW: 192.168.0.1

PRESET 3:
IP: 192.168.10.20
SUB: 255.255.255.0
GW: 192.168.10.1

etc.

Just something so I can quickly set my laptop to different LAN's as I move between networks.
 
If you add to and modify the following BAT script it should do the job for you.
I use it to set 19.168.0.100 but a similar script can be used to set others.

===============

echo setip 192.168.0.100
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

pause
 
Thank you for this.

I wrote a batch script a while back that had a series of options like pinging google, resetting IP etc. (it was completely meant to help me be lazy)... but I never thought to use it to set interface settings.

Put a CHOICE at the top and away we go... good idea!

Thanks =)
 
I tried netsetman a while back, worked fine for a couple of hours and then my network broke. I had to actually run full repairs on the network config to fix it. Reviews are generally good for it but that always put me off.
 
Code:
@ECHO off
cls
:start
ECHO.
ECHO 1. Change Connection1 Static IP
ECHO 2. Change Connection2 Static IP
ECHO 3. Change Connection3 Static IP
ECHO 4. Obtain an IP address automatically
ECHO 5. Exit
set choice=
set /p choice=Type the number to print text.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto con1
if '%choice%'=='2' goto con2
if '%choice%'=='3' goto con3
if '%choice%'=='4' goto autosearch
if '%choice%'=='5' goto end
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:con1
ECHO Connecting Connection 1
netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1
goto end

:con2
ECHO Connecting Connection 2
netsh interface ip set address "Local Area Connection1" static 192.168.0.10 255.255.255.0 192.168.0.1 1
goto end

:con3
ECHO Connecting Connection 3
netsh interface ip set address "Local Area Connection2" static 192.168.0.10 255.255.255.0 192.168.0.1 1
goto end

:autosearch
ECHO obtaining auto IP
ipconfig /renew "Local Area Connection"
goto end

:bye
ECHO BYE
goto end

:end
 
Back
Top