Managing LAN IP Addresses

foobie2000 asked 2 years ago

Hello,

This is a very good online resource for all things IP! I have a question about changing IP Addresses for a computer's local IP Address. I've tried to use google for an answer, but I don't think I have the right keywords or something...
Please let me explain:
I am a technician that works on different networks and am looking for a way to manage the IP addresses that I must set my laptop to (windows xp sp3). More often than not I must use a static IP address to connect to the equipment I intend to manage. Right now I go into the Local Area Connection properties and scroll down to the TCP/IP settings, and there I manually enter in an ip address and subnet.
Now for the question: is there a piece of software that I can install on my xp machine that will both (a) manage the IP address and subnet that I must set on my laptop depending on the site I'm visiting; and (b) change the IP address for my network adaptor when selecting it?

Many thanks in advance,
Andrew

1 Answers
wimiadmin Staff answered 2 years ago

Hi Andrew...thanks for joining the forum. I started a new thread for this topic.

The answer is yes.

You can create a batch file using dos that will assign the IPs accordingly. When at location A, double click the location A batch file, let it run and once done, you'll be all set. When at location B, double click location B batch file, let it run and once done, you'll be ready at location B.

The batch file will need to include the command netsh

An example would be:
netsh interface ip add address "Local Area Connection" 10.0.0.2 255.0.0.0
where "Local Area Connection" is the name of the NIC in Windows

To add a default gateway: netsh interface ip add address "Local Area Connection" gateway=10.0.0.3 gwmetric=2

To add a DNS server address: netsh interface ip add dns "Local Area Connection" 10.0.0.1

Entering any of these commands will turn off DHCP if it's enabled.

There are other options - you can type netsh ? at the command prompt.

You can also Google netsh and find tons of resources.

Know the answer? Login or sign up for an account to answer this question.
Sign Up