Solved

Remote DHCP release and renew

Posted on 2012-03-13
4
7,886 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrating DCs and DHCP to new DCs 4 67
DHCP Reservations 17 58
SCO 5.0.7 on HP Proliant DL380 G5 will not shutdown properly. 6 90
DHCP for a new, 2nd subnet 12 65
Ever wondered why you had to use DHCP options (dhcp opt 60, 66 or 67) in order to use PXE? Well, you don't!
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!

738 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