Different ip and different lans on one PC

Printed from http://www.compatdb.org/support/topics/110719_different_ip_and_different_lans_on_one_pc.html

Different ip and different lans on one PC - 09/18/02 03:16 PM

Which 3rd party software can I under windows 2000 to change the static ip of a system on the fly easily.

I have two ip addresses I need to use, but its slightly tedious to enter different gateways, sub net masks everytime I need to switch network.

If its possibly under windows that would also be great to know

thanks in advance

Re: Different ip and different lans on one PC - 09/18/02 04:05 PM

Can you not fit a second network card? Sounds like the easiest solution in the long run.

Re: Different ip and different lans on one PC - 09/18/02 07:08 PM

the tcpip settings are stored in the registry under this key

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{47B32ABE-8D29-4C0D-919B-8FF291D4005C}\Parameters\Tcpip]
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):31,00,39,00,32,00,2e,00,31,00,36,00,38,00,2e,00,30,00,2e,00,\
32,00,00,00,00,00
"SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,00,35,\
00,35,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):31,00,39,00,32,00,2e,00,31,00,36,00,38,00,2e,00,30,00,\
2e,00,31,00,00,00,00,00

the random alphanumeric string inbetween services and paramaters will be different on your computer but you should be able to export this key for each config that you want and store them in .reg files
then you just merge the .reg file for whatever network you're on

hope this helps

ps this is only in theory
be carful in the reg as it is an easy way to fuck up your system

Re: Different ip and different lans on one PC - 09/18/02 11:12 PM

An excellent idea, Four and Twenty, I'm interested to know two things:

1. Has anyone done this sucessfully?
2. I would assume that you'd have to reboot after merging the registry settings, correct?

Re: Different ip and different lans on one PC - 09/19/02 12:07 AM

Quote:
An excellent idea, Four and Twenty, I'm interested to know two things:

1. Has anyone done this sucessfully?
2. I would assume that you'd have to reboot after merging the registry settings, correct?


just an idea
but winnt has allways been able to change ip on the fly so i don't think that you would have to reboot