Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Network & Sharing

Vista - Automatically change IP Address

Reply
 
Old 06-16-2009   #1 (permalink)


Vista Business SP1
 
 

Automatically change IP Address

Hi all,

I worked for different companies and when I connect to their local network, each time I need to change my IP address to the local one, because they don't have DHCP.

I was thinking of an easiest way to switch from one IP to another without to manually input the IP, gateway, DHCP server, DNS server each time...

Do you think, there's a way or software I can do this please?

My System SpecsSystem Spec
Old 06-16-2009   #2 (permalink)


Vista Business SP1
 
 

Re: Automatically change IP Address

I FOUND THE ANSWER.

I can do this using command prompt. Each time I need to change my IP, I run the batch file...

Changing IP
Code:
@echo off

netsh int ip set address "Local Area Connection" static 192.168.1.17 255.255.255.0 192.168.1.1 1 

netsh int ip set dns "Local Area Connection" static 192.168.1.1 primary 

exit
For activating DHCP
Code:
@ECHO OFF
netsh int ip set address "local area connection" dhcp 

netsh int ip set dns "local area connection" dhcp 

EXIT
My System SpecsSystem Spec
Old 06-16-2009   #3 (permalink)


Vista Home Premium 32bit
 
 

Re: Automatically change IP Address

you could also a create a couple of loopback interfaces and just input the ip address for the different subnets you work at then you automatcaly have L3 connectivity
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Won't automatically get IP address when booting up Network & Sharing
automatically completing e-mail address Vista mail
unwanted addresses automatically added to address book Vista mail
Automatically complete email address Vista mail
Can't reset to obtain an IP address automatically !!!! Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46