Switching wired network connection profiles?

A

Anton Chernev

Hello everyone!

I'm losing a good 2-3 minutes every time I connect my laptop to a different
wired network (I use it at more than 5 different locations).
I was wondering, if Vista can store and identify different wired networks,
can it switch between these stored profiles, without the need to enter
network addressing information manually every time?

I find several programs on the Internet with this functionality, but they
either manifest lots of bugs or are too expensive for such a simple task.
 
A

Anton Chernev

Nevermind, I found a way to do this using netsh. Here is an example if anyone
is interested:

netsh interface ipv4 set address "Local Area Connection" static
192.168.1.100 255.255.255.0 192.168.1.1
netsh interface ipv4 set dnsserver "Local Area Connection" static
192.168.1.1 primary
netsh interface ipv4 add dnsserver "Local Area Connection" 192.168.1.2

This changes the "Local Area Connection" IPv4 adapter address to
192.168.1.100/24, default gw: 192.168.1.1; adds 192.168.1.1 as primary DNS
(primary keyword is for the DNS suffix) and .2 as secondary.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top