Multiple IP Setups for laptop

  • Thread starter Thread starter Dean DiSimone
  • Start date Start date
D

Dean DiSimone

Hello,

I am trying to configure my XP laptop to work between both
a home and work network. The home network is the primary
network and necessitates a fixed IP Address, Default
Gateway, Prefered DNS server and Alternate DNS server. My
network at work is DHCP enabled. I would like to
configure the computer to have two profiles so that I do
not have to re-enter all of the home networking numbers
when I am there. Is this sort of functionality available?

D
 
Dean,

A very easy way I have found to do this is to use the
netsh utility. If it is not on your laptop (I don't
remember if it came with my XP or not) then you can
probably find it on a Windows 2000 disk or the internet.

Once you have it, set your Network Settings to be
correct for your home network and then run this command:

netsh dump > c:\home.txt (in whatever directory and with
whatever filename you want)

You will then need to set your settings for your work
access and run the same command, changing the filename.

Next, open both these files in a text editor and delete
everything except the entry:
#========================
# Interface IP Configuration
#========================
pushd interface ip

(All other data inside Interface IP Configuration)

popd
#End of interface IP configuration

Save these files.

Then you will need to create two shortcuts wherever you
want them that look as follows:
%windir%\system32\netsh.exe -f c:\home.txt
and one for the other file name.

(I have assumed that netsh is either in system32 or you
will put it there)

Then whenever you get to the new location, just run the
appropriate shortcut and your settings will flip over and
you will be good to go.

Hope that helps,
Tom
 
"Dean DiSimone" said:
Hello,

I am trying to configure my XP laptop to work between both
a home and work network. The home network is the primary
network and necessitates a fixed IP Address, Default
Gateway, Prefered DNS server and Alternate DNS server. My
network at work is DHCP enabled. I would like to
configure the computer to have two profiles so that I do
not have to re-enter all of the home networking numbers
when I am there. Is this sort of functionality available?

D

XP can do exactly what you want. Configure the network connection's
TCP/IP properties to obtain an IP address automatically. Then click
the Alternate Configuration tab and enter the fixed settings for home.

At work, it will use the DHCP server. At home, where there's no DHCP
server, it will use the fixed settings. Automatically.
--
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
 
Back
Top