Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Storing setups for multiple windows networks

Thread Tools
 
Search this Thread
 
Old 17 January 2004, 06:21 PM
  #1  
djuk
Scooby Regular
Thread Starter
 
djuk's Avatar
 
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes on 0 Posts
Post

I seem to remember someone was talking about an application to keep the settings to sign on to multiple windows networks / workgroups so that when moving between locations i dont have to keep changing network settings.

anyone remember?

David
Old 19 January 2004, 02:26 PM
  #2  
djuk
Scooby Regular
Thread Starter
 
djuk's Avatar
 
Join Date: Jun 2002
Location: Berkshire
Posts: 1,280
Likes: 0
Received 0 Likes on 0 Posts
Post

bttt
Old 19 January 2004, 02:28 PM
  #3  
IanW
Scooby Regular
 
IanW's Avatar
 
Join Date: Jul 2001
Posts: 21,865
Likes: 0
Received 0 Likes on 0 Posts
Post

My IBM Laptop has some software called 'Access Connections' which does this, never tried it on a non-IBM machine though.
Old 21 January 2004, 03:22 PM
  #4  
dupo
Scooby Newbie
 
dupo's Avatar
 
Join Date: Jan 2004
Posts: 9
Likes: 0
Received 0 Likes on 0 Posts
Post

If you are using W2K or XP you can use a simple command-shell script and the Netsh (i.e., NetShell) command.

Netsh provides a command-line interface that lets you administer and configure network services, including the ability to change the TCP/IP network configuration settings. The script in Listing 1, shows how to switch a PC to use a dynamic address assigned by a DHCP server.

The script turns off the echo, then the first Netsh command sets the context to interface. The context controls which facet of the network configuration the Netsh command will manipulate. Netsh supports the following contexts: ras, routing, and interface. Using the interface context sets the command to work with the system's networking properties. The ip label specifies that the Netsh command will work with the TCP/IP configuration.

Several subcommands are available within the interface context. In Listing 1, the Set subcommand changes configuration information, and the address label specifies that the Set subcommand will set the system's IP address. The "Local Area Connection" string identifies the connection that these settings will apply to. The name Local Area Connection is the default on most systems, but if your system is different you'll need to change this string to match the connection name that's in use. The dhcp label indicates that a DHCP server will assign the address.

The second Netsh command sets the DNS name of the connection named "Local Area Connection" to be supplied by the DHCP server. When the network uses dynamic addresses assigned through DHCP, DHCP typically assigns the DNS address as well.

When you want to switch your system back to a fixed IP address, you can run the script that Listing 2, shows. In Listing 2, the first Netsh command sets the IP address of the connection named "Local Area Connection" to the static IP address of 192.168.1.10. The second parameter of the Netsh command specifies the subnet mask. This example uses 255.255.255.0 as the subnet mask associated with the static IP address. The third parameter is the default gateway (if any) on the local IP subnet. Listing 2 gives the gateway a sample address of 192.168.1.1. An optional fourth parameter of the Netsh command is the metric, which defines the maximum number of hops to the default gateway.
The second Netsh command in Listing 2 changes the system's DNS configuration to use a static DNS server at the IP address of 192.168.1.2.

You can learn more about the Netsh command from the Microsoft article :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netshell/netshell/netshell_start_page.asp

LISTING 1: Code to Switch to a Dynamic Address
:: Switch2DHCP.cmd
@echo off
@echo Changing to Dynamic IP address

:: Set to dhcp.
netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp

@echo System Switched to DHCP



Listing 2: Code to Switch to a Fixed IP Address
:: Switch2IP.cmd
@echo off
@echo Changing to Static IP address 192.168.1.10

:: Set the IP address.
netsh interface ip set address "Local Area Connection"
static 192.168.1.10 255.255.255.0 192.168.1.1 1
netsh interface ip set dns "Local Area Connection"
static 192.168.1.2

@echo System Switched to static IP 192.168.1.10

Dupo
Old 21 January 2004, 10:29 PM
  #5  
rogp
Scooby Regular
 
rogp's Avatar
 
Join Date: Mar 2003
Posts: 455
Likes: 0
Received 0 Likes on 0 Posts
Post

Or you could you use www.netswitcher.com

There's a free trial on the PC Pro cover disc this month.

Roger



[Edited by rogp - 1/21/2004 10:33:03 PM]
Old 22 January 2004, 06:12 PM
  #6  
Foot_Tapper
Scooby Regular
 
Foot_Tapper's Avatar
 
Join Date: Aug 2002
Posts: 1,977
Likes: 0
Received 0 Likes on 0 Posts
Post

I was thinkin of the same one as rogp
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
greg320
Non Car Related Items For sale
6
11 October 2015 11:44 AM
FuZzBoM
Wheels, Tyres & Brakes
16
04 October 2015 09:49 PM
alcazar
Non Scooby Related
7
02 October 2015 06:08 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Storing setups for multiple windows networks



All times are GMT +1. The time now is 05:52 PM.