Auto Switching IPv4 Settings
Currently I have a laptop running windows 7. I use mainly 2 wireless networks (1 at home and 1 at my office) When I'm at my office, I need to change IPv4 settings (I need to manually enter the IP address and DNS address) so that I could connect to my office network. But while I'm at home, I cannot use those settings and I have to switch it bacl to 'Obtain IP address automatically'. Is there a way that windows changes my IP address automatically when I'm connected to my work network ?
May 16th, 2011 2:18am

Nothing built in to Windows to handle different IP configuration depending on physical site. You could create a script to use netsh and place it on your desktop. Configure TCP/IP Settings from the Command Prompt or via Script http://www.anitkb.com/2010/10/configure-tcpip-settings-from-command.html Visit: anITKB.com, an IT Knowledge Base.
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 8:47pm

Hi, First, I want to share the following with you: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh.mspx?mfr=true You may set a static IP address or set it to ”Obtain an IP address automatically” via netsh command, please refer: Syntax set address [name=]InterfaceName [source=]{dhcp | static [addr=]IPAddress [mask=]SubnetMask [gateway=]{none | DefaultGateway [[gwmetric=]GatewayMetric]}} Syntax set dns [name=]InterfaceName [source=]{dhcp | static [addr=]{DNSAddress | none}} [[ddns=]{disabled | enabled}] [[suffix=]{interface | primary}] For example: netsh interface ip set address name="Local Area Connection" source=static addr=192.168.0.3 mask=255.255.255.0 gateway=192.168.0.1 netsh interface ip set address name="Local Area Connection" source=dhcp You may write a .bat file, run the .bat file when you change the network environment. Hope that helps Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
May 19th, 2011 9:48pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics