Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script TCP/IP properties 1

Status
Not open for further replies.

tseh

Programmer
Jan 13, 2000
64
CA
I move between two networks periodically. Instead of changing between static and dhcp manually, is there a way I can set it up for both networks or script it?
 
If you want to access two networks from the same workstation, then you could use two nics in your pc, add static routes. You will need a hub or two data runs.
 
I am using a laptop between the two networks. Another way?
 
Maybe a hardware profile, where profile 1 is for network 1 and profile 2 network 2? Not sure if that would work or not... Matt Wray
CCNA, MCP
mwray77518@yahoo.com
 
GlobeSoft offers a app I think will fit your needs.


Let me know if it works!

My girlfriend uses her laptop @ school which is a DHCP environment and has to switch settings to a static whenever she plugs into my home LAN. I'm on the verge of adding a small dhcp server just for her <arghhhh> I haven't tested the globesoft program yet but they claim it allows you to choose ur connection type <dynamic or static> @ startup.

Does anyone know if it's possible to set up metrics to accomplish this? For Instance: look for DHCP as default and use a static IP as backup if no dhcp server found. If the comp can't find a DHCP server, it will automatically use the static. Possible?
 
Good answer Mattwray. This could work, although hardware profiles are designed to load specific drivers per profile.
It is worth a try. I still think two nics is the only way. I would like to know if the profile works.

To create a hardware profile
In Control Panel, double-click System, and then click the Hardware tab. Click Hardware Profiles button.
Click the name of the hardware profile on which you want to base the new hardware profile, and then click Copy.
Type a name for the hardware profile you are creating.
Change the hardware which is enabled or disabled in this profile by using Device Manager, as described in the following procedure.

To enable or disable hardware in a hardware profile
In Device Manager, expand the hardware type, and then double-click the hardware.
In the Device Usage box, clear or select Disable in this hardware profile.
Click Yes if you are prompted to restart your computer.

To delete or rename a hardware profile
In Control Panel, double-click System, and then click the Hardware tab. Click Hardware Profiles button.
Click the name of the hardware profile that you want to change.
If you want to remove this profile, click Delete.


 
Hi guys. I tried a hardware profile and created 2 profiles. One for home and one for work (on my laptop). The hardware profile didn't work for me today. After creating the new profile, I went in and setup the TCP/IP settings, DNS, etc... and the new settings also changed my settings on my other profile.

I know 2 nics is the way to go but my laptop doesn't have anymore slots available. Any other suggestions? I've tried to ask the VB guys (on tek-tips) if there was a way and they pointed me here. I tried your method and still no solution. Any help would be great! Thanks!

Referring VB thread I asked a couple of days ago is here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top