Quickly Change Network Configurations
Learn from our various Guides, plus check out our FAQ's and How To's. There is something for everyone. Share what you know and add to the collection.

Moderators: Management, Forum Experts

Quickly Change Network Configurations

Postby NoReflex on Wed Oct 25, 2006 2:06 am

Since switching networks becomes something you do two or three times a day (I know I do) typing every time the same IP addresses, gateways and DNSs becomes boring, so I searched for a quicker, easier solution.
The first thing I found is Mobile Net Switch
http://www.mobilenetswitch.com/
This program does just that, change your network settings with one click. It's free and very easy to use.
Anyway I prefer another method. This one is even simpler and you can do it yourself in just a few seconds. So, all you need to do is create a batch file like this one :
Code: Select all
@echo off
netsh interface ip set address "LAN" static 192.168.5.71 255.255.128.0 192.168.5.254 1 &
netsh interface ip set dns "LAN" static 193.231.233.1 &
netsh interface ip add dns "LAN" 193.231.233.8 &
ipconfig /flushdns

The commands are self-explaining.
netsh - comes from Network Shell
"LAN" - is the name for your Local Area Network (I renamed mine)
The last command flushes the DNS cache.
The "&" symbol at the end of each command makes it possible to run multiple commands from a single batch file.
You can now create one batch file for each network you connect to, make shortcuts to the start menu for faster access, and if you copy the batch files to \windows or \windows\system32 you can even run them from command prompt.
I know this isn't much of a HowTo but I hope it will help you.
For more information on the netsh command go to :
http://www.microsoft.com/resources/docu ... x?mfr=true
All the best!
User avatar
NoReflex
PRO Level 12
PRO Level 12
 
Posts: 561
Joined: Wed Nov 17, 2004 4:41 pm
Location: Romania

Return to Guides and How To

Who is online

Users browsing this forum: No registered users and 0 guests