atcomsystems.ca/forum
Posted By: metelcom multi network use - 08/01/07 02:41 PM
I use my laptop on several different networks and its a pain to keep going into properties and changing ip address. Is there any way of setting up multipal accounts or a generic address to use
Posted By: Anonymous Re: multi network use - 08/01/07 03:16 PM
Is DHCP not enabled on these networks?

If you MUST use a static ip at each location, the easiest way I can think of is to make a batch file for each location, with some netsh commands.

Example:

This assumes your wireless network card is named "Wireless Network Connection" if you are using you LAN card it would most likely be "Local Area Connection"

To set a static IP for my home:

netsh interface ip set address name="Wireless Network Connection" static 192.168.51.101 255.255.255.0 192.168.51.1 1

Now lets say I walk into my office, I can run:

netsh interface ip set address name="Wireless Network Connection" static 192.168.50.101 255.255.255.0 192.168.51.100 1

Now lets say you need to act as a DHCP client:

netsh interface ip set address "Wireless Network Connection" dhcp


Now you go to another clients location, in which you need DNS & IP settings entered you could make a batch file like:


netsh interface ip set address name="Wireless Network Connection" static 10.29.210.140 255.255.255.0 10.29.210.21 1

netsh interface ip set dns "Wireless Network Connection" static 10.29.210.100 1


Pretty simple. If you need help with making a batch file, let me know. This still takes some time to set the IP, but it's much nicer to just double click on an icon then click through 5 screens.
Posted By: metelcom Re: multi network use - 08/02/07 06:45 AM
Wow :thumb:
© Sundance Business VOIP Telephone Help