• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 993
  • Last Modified:

How to force a workstation to acquire a different IP address

Using Windows Server 2003 and XP Professional workstations, how do you force a workstation to acquire a new and different IP address from the one it already has?  With DHCP, IP addresses already in use tend to renew on the same machine over and over again.  If I want to assign a specific workstation a different address I'm releasing the existing IP, then deleting the lease on the server under DHCP, then manually entering a new address on the workstation and rebooting.  That seems like too much work.  Is there an easier way?  
0
james_axton
Asked:
james_axton
  • 3
  • 3
  • 3
  • +4
2 Solutions
 
exx1976Commented:
No, what you are doing is the correct way to do this.

Unless, of course, you assign a static IP to the workstation..
0
 
htowntechyCommented:
I assume that you have tried ipconfig /release
then ipconfig /renew  on the workstation?

If so, the Windows DHCP server should give the lease the workstation the next IP address that is not being used (microsoft servers default to low to high ips for lease renews) as long as the lease period has not expired.  You may want to lower your lease time if you do not want Windows DHCP to give the same NIC the same IP address.
0
 
james_axtonAuthor Commented:
I temporarily assign the workstation a Static IP so that it registers with DHCP.  After that I put it back on automatic.  That's really the right way to do it?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
htowntechyCommented:
CORRECTION

If so, the Windows DHCP server should give the lease the workstation the next IP address that is not being used (microsoft servers default to low to high ips for lease renews) as long as the lease period HAS EXPIRED.  You may want to lower your lease time if you do not want Windows DHCP to give the same NIC the same IP address.
0
 
flebbiCommented:
Have you tried releasing it through the command prompt.
Start - Run - CMD OK
ipconfig /release then
ipconfig /renew
0
 
exx1976Commented:
htowntechy - DHCP will hand out the same IP again because that workstation is already in the DHCP database.  The /release switch only releases the IP on the workstation, it doesn't release it from the DHCP server.  The server will still show the lease.


OP - no, I think you misunderstood.  The way you are currently doing it is the correct way.  The only OTHER way to get a different IP on there, that I know of, would be to assign one statically.  And leave it.
0
 
exx1976Commented:
htown - agreed, the lease period must expire for Windows to give out a new lease.
0
 
Brian PiercePhotographerCommented:
WHY?
What are you trying to achive, Windows DHCP will always attempt to assign the same IP address unless there is no alternative.
What is the point in trying to make it use another
0
 
DonNetwork AdministratorCommented:

You can configure the client's DHCP lease to expire automatically when the client computer is shut down for Windows 2000-based DNS clients or for later versions of DNS clients. To do this, follow these steps:
 
1. Click Start, point to Administrative Tools, and then click DHCP.
2. Expand the scope for which you want to change the DHCP expiration lease, right-click Scope Options, and then click Configure Options.
3. Click the Advanced tab.
4. Click the list that is next to Vendor Class, and then click Microsoft Windows 2000 Options.
5. Click to select the 002 Microsoft Release DHCP Lease On Shutdown Option check box, and then click OK.
 
 
http://support.microsoft.com/kb/932464

0
 
EpicErrorCommented:
Are you wanting to create a static ip for the workstation?
Hence wanting to force a different ip?

If so open the dhcp snap in, expand the server, choose reservations.  You will need the MAC Address and the ip you want to assign.  

Once created you can either reboot, or use ipconfig /release, ipconfig /renew and it will obtain the new address.
0
 
james_axtonAuthor Commented:
dstewartjr, does that work for non-2000 clients as well (XP, Vista)?
0
 
DonNetwork AdministratorCommented:
Works for " Windows 2000-based DNS clients or for later versions "

0
 
DonNetwork AdministratorCommented:
We had a problem where if a user needed to take a laptop to a different location, they couldnt get a new ip address in the different Ip range without appyling this option(They had to shutdown of course).
0
 
james_axtonAuthor Commented:
I didn't catch that before, sorry.  Thanks dste for the help and the follow-up!  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 3
  • 3
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now