I have one machine need can to access two separated network. I need to change the IP address manually and switch the network cable. I know there is some IP Changer software that can manage the IP address configuration. Is there way to change IP address without using UI or third software? E.g. by script or VB?
Use the "netsh" command:
netsh interface ip set address <connection> static <ip> <mask>
<gateway> <gateway metric>
For example, to set a static IP address of 192.168.0.254 on the
connection called "Local Area Connection":
netsh interface ip set address "Local Area Connection" static
192.168.0.100 255.255.255.0 192.168.0.254 10
It might not be necessary to change the IP address, because you can
define two static IP addresses for a connection. Define the first
one, as usual, in the connection's TCP/IP properties. Then, click
Advanced and add the second one.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)
Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.
Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com