XP & 2000 users that use static ip's in one office & dhcp in another office

Home -> Windows -> Network administration

11032 views

From the computer of: Blade (1 recipe)
Created: Mar 25, 2004     Updated: Apr 04, 2004


4 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

We have clients that have laptops with a static IP in one office & use dhcp in the main office. These are some bat files that can be used to switch from static to dhcp & back so they can log on to either part of the domain with as little inconvenience as possible. All the client has to do is double click the appropriate .bat file for thier location. These have saved me a lot of time changing configs when the clients are in the main office.

The dhcp bat is:
netsh interface ip set address "Local Area Connection" dhcp

The Static bat is:
netsh interface ip set address "Local Area Connection" static 127.0.0.1 255.xxx.xxx.xxx 127.xxx.xxx.xxx 1

The first series of numbers is the IP, the second series is the Subnet Mask, the third series is the Gateway, & the last number is the multiplier

And of course you create these in notepad & save as dhcp.bat & static.bat.
or you can name them by location Topeka.bat & Lawrence.bat

There is also a .bat to check the config after you run one of the batch files which is:

Netsh interface ip show config
pause

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




4 Recipe comments: View comments

XP & 2000 users that use static ips in one office & by Anonymous
Re: XP & 2000 users that use static ips in one office & by Anonymous
re: by akelley
Re: XP & 2000 users that use static ips in one office & by Anonymous



Related recipes:

  XP: Set or configure network interface to DHCP wtih netsh from command line
  Renew DHCP client lease in Windows
  Virtual Server 2005: How To Configure the Virtual DHCP Server
  How to Enable Internet Connection Sharing in a Home or Small Office Network
  Opening Blocked Attachments with Outlook 2003
  Internet Connection Sharing
  How to Configure a Static Client for Windows XP Internet Connection Sharing
  Hide a System from the Network Browse List
  Repair Network Connection in Windows XP
  XP: Set or configure static network IP address wtih netsh from command line

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.