Here's the problem: I have a new laptop pc with xp pro and need to connect to two different networks. One is Novell and the other is Windows Server 03. I have a docking station at each location. One is located at our missions office and the other is in a whole other office. They each have their own static IP address. How can I configure my system at startup or afterwards (with a batch file or some type of client) to choose one or the other without having to go in and change my tcp/ip config every time? There has to be some kind of a solution. I am a missionary and can't afford anything expensive so can someone please help me out here?
This conversation is currently closed to new comments.
First we need to learn a bit more about your networks. 1. When you refer to static IP addrs, are those what is referred to as public IP addrs or private? 2. What is the perimeter device (make and model) that is at both locations? 3. How secure does the remote connection have to be? 4. What are you planning to access on the remote computer?
There are several options available to you. 1. Setting up static routes in the default gateway i.e., perimeter device. 2. If applicable you could alter the host file on the computer to point to the appropriate address.
I have one laptop pc that I connect via a docking station at one office that runs Novell. I need to set up in Network Connections an TCP/IP address to access files and the internet on that network. Then the next day I need to go to another office, where I have another docking station, that runs Windows Server 2003 and setup in Network Connections a different IP address to access files and the internet on this network. Currently I have to go in and change the settings in Network Connections TCP/IP config every time to be able to access each local. I do not connect remotely but on site. There has to be an easier way. Is it possible to set up maybe hardware profiles?
Copy the following into a batch file. You will of cousre need to modify a few things to match your network. Note the 1 must be after the gateway just wanted to point that out as it is easy to miss. If you ever add a third or fourth location it would be easy to add additional sections of the file.
cls
@echo off
echo Which network would you like to connect to? (network1/network2) set /p location=
if '%location%' == 'network1' goto net1 if '%location%' == 'network2' goto net2 cls
echo Please enter either network1 or network2 set /p location=
:net1 echo Please wait this may take up to a minute to complete. netsh interface ip set address "Local Area Connection" static <ip address> <subnet> <gateway> 1 echo Thank you. You network interface has been configured echo. pause exit
:net2 echo Please wait this may take up to a minute to complete. netsh interface ip set address "Local Area Connection" static <ip address> <subnet> <gateway> 1 echo Thank you. You network interface has been configured echo. pause exit
Thanks Jimmy-Jam, I do have a couple of questions in regards to the batch file. Please bear with me as it has been a while since I ran dos commands and am rusty on syntax.
in the batch file you have network1 or network2. Can I name those so that if my colleague uses my system it would easy for him to identify the location? Like Office or Home?
Do I need to include in the syntax the <> symbols?
One other question? How would I set up, using this batch to set my TCP/IP settings to Dynamic?
Yes you can replace network1 and network2 with more friendly names. Also the user input is case sensitive so when I wrote this batch I also included and additional line to account for this possiblility. For example also add if '%location%' == 'Network1' goto net1 in case you fear the user may capitalize the first letter.
You do not need to add the <> symbols just the actual address. To set the interface to Dynamic use netsh interface ip set address "Local Area Connection" dhcp
Thanks so much for your help. Please forgive me as I have been a little forgetful of late and forgot to ask about the DNS entries. Do they need to be included in this batch? Lord's blessings.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Networking
and need to connect to two different networks. One is
Novell and the other is Windows Server 03. I have a
docking station at each location. One is located at our
missions office and the other is in a whole other office.
They each have their own static IP address. How can I
configure my system at startup or afterwards (with a
batch file or some type of client) to choose one or the
other without having to go in and change my tcp/ip
config every time? There has to be some kind of a
solution. I am a missionary and can't afford anything
expensive so can someone please help me out here?