Re: windows XP for LAN connections



In article <1149492110.095636.282390@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"ANAV" <nverty@xxxxxxxxx> wrote:
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
.



Relevant Pages

  • Re: creating a workgroup to share a folder
    ... Primary DNS Server = 192.168.0.1 ... CALADAN and the SiS connection on aarakis to obtain an IP and DNS address ... automatically - that's the way ICS is supposed to work. ... > Ethernet adapter Local Area Connection 2: ...
    (microsoft.public.win2000.networking)
  • Re: How to sync time w/o proper permisisons
    ... As for the DNS settings the DNS server IP is that of the SBS 192.168.254.6. ... Ethernet adapter Local Area Connection: ...
    (microsoft.public.windows.server.sbs)
  • Re: Machines never look to secondary DNS
    ... DNS server is listening on all addresses, the gateway is good and can ... Ethernet adapter Local Area Connection: ... Connection-specific DNS Suffix. ...
    (microsoft.public.win2000.dns)
  • Re: DC doesnt know its own domain (cont)
    ... >> Windows 2000 IP Configuration ... > Ethernet adapter Local Area Connection: ... > PRO/100 Network Connection ... What is the DNS server at 192.168.9.2? ...
    (microsoft.public.win2000.dns)
  • Re: Cannot get IP address from Router DHCP
    ... >> - I can ping both the preferred and alternate DNS servers from the ... >> Ethernet adapter Local Area Connection: ... DHCP server is on the router, ... I am puzzled at the fact that I can ping the router and the DNS server ...
    (microsoft.public.win2000.networking)