windows XP for LAN connections

A

ANAV

Hi.
How do I set up my Laptop running windows XP professional for two
different LAN connections (one at work and the other at home) using two
different IP addresses, default gateways, and DNS servers? Also,
similar to MAC OSX can I switch between these connections without
having to re-type the IP address, DNS server etc?

Any help would be great.

Cheers

ANAV
 
S

Steve Winograd [MVP]

Hi.
How do I set up my Laptop running windows XP professional for two
different LAN connections (one at work and the other at home) using two
different IP addresses, default gateways, and DNS servers? Also,
similar to MAC OSX can I switch between these connections without
having to re-type the IP address, DNS server etc?

Any help would be great.

Cheers

ANAV

Possible Solution 1
-------------------------
Create a batch file, with the appropriate "netsh" commands to specify
the configuration, for each location. Put a shortcut to each batch
file on the desktop for easy access.

To specify the IP address subnet mask, and default gateway:

netsh interface ip set address <connection> static <ip> <mask>
<gateway> <gateway metric>

To specify the DNS server:

netsh interface ip set dns <connection> static <ip>

Let's say that you want this local area connection configuration:

IP Address: 192.168.0.101
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS Server: 10.0.0.1
Gateway Metric: 10

These commands will do it.

netsh interface ip set address "Local Area Connection" static
192.168.0.101 255.255.255.0 192.168.0.1 10

netsh interface ip set dns "Local Area Connection" static 10.0.0.1

For more information, type this line at a command prompt:

netsh

Then type "?" or "help" for a list of commands. For information on a
command, type the command name followed by "?" or "help". For example:

diag ?
routing help

Possible Solution 2
-------------------------
Install one of these programs, which let you store multiple network
configurations and switch between them easily:

NetSwitcher
http://www.netswitcher.com

MultiNetwork Manager
http://www.globesoft.com/mnm_home.html

Mobile Net Switch
http://www.mobilenetswitch.com
--
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
 

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