Solved

Remote DHCP release and renew

Posted on 2012-03-13
4
6,899 Views
Last Modified: 2012-03-15
I have over 100 pcs scattered across multiple buildings. I have migrated servers and have changed the DHCP server to a new server and have assigned the DNS server to a new server.

Heres the issue, 192.168.10.8 (DC and DNS server) needs to be demoted. 192.168.10.202 is new DNS server and DHCP server.

All pcs are still holding onto lease with old DNS server lookup so I cant remove 192.168.10.8 from network yet.

Other than cycling past every machine and doing manual release and renew, is there a better way to do this, a remote way?

How can I force all machines on this site to renew its DHCP lease?
0
Comment
Question by:Network_Padawan
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
lruiz52 earned 200 total points
ID: 37718427
download PSexec from the http://technet.microsoft.com/en-us/sysinternals/bb896649.Aspx

Create a txt file with the names of the clients you want to have their IPs renewed. name it clients.txt

PSExec @clients.txt ipconfig /renew
0
 
LVL 3

Expert Comment

by:awender2
ID: 37719268
Why should you release/renew? You can't have two DHCPs in the same subnet, so I assume you've already transferred this task to the second server. If you have two DHCPs, act quickly and shut down one of them :)

Regarding DNS, just change the settings on the DHCP server and define expiration for IP renewals. After expiration all requests go directly to new DNS server and you can demote old one.
0
 
LVL 3

Assisted Solution

by:awender2
awender2 earned 100 total points
ID: 37719275
If you haven't transferred DHCP role yet, just create the second DHCP with all the settings you need, then stop 1st DHCP and start the second.

Existing leases will work - as DNS is not down and IP-s are still valid. New leases will be provided only if a given IP address is not assigned yet. DHCP can recognise whether and IP is in use or not (you need to enable it)
0
 

Author Closing Comment

by:Network_Padawan
ID: 37722666
Thanks guys, lruiz52 provided the answer I was looking for.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why you had to use DHCP options (dhcp opt 60, 66 or 67) in order to use PXE? Well, you don't!
A Cisco router can be configured as a DHCP Server. There are advantages and disadvantages in making your Cisco router work as DHCP Server. Almost all the features for windows DHCP can be configured on Cisco-based DHCP server. Some of the features me…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now