Windows Tip: Clustered DHCP Servers
Send your Windows question to Mitch today! | See other Windows tips
DHCP servers are at the heart of network client availability, and I've seen administrators bend over backwards trying to build some sort of high-availability solution that can kick in when their main DHCP server fails. And believe me, seeing your average administrator try to bend over backwards isn't a pretty sight.
One company I heard about recently apparently does the following: They have two DHCP servers configured with identical scopes, but one of the servers (we'll call it the fallback) has its scopes deactivated. The administrator created a netsh script that is scheduled to run periodically on the main server and which first backs up this server's DHCP configuration and then restores the configuration onto the fallback server.
So is this a good idea? Probably not. For one thing, if the main server suddenly fails the secondary server probably won't respond to DHCP clients trying to renew their address leases. Why not? Because DHCP lease renewal messages initially use unicast and are thus sent directly to the IP address of the DHCP server that leased the client its address. (When a lease reaches 87.5 percent of its lifetime however, the client will try broadcasting to any available DHCP server in order to try and get its lease renewed.) What this means is that the fallback DHCP server will only work if the admin changes its IP address to match the failed server, but this requires manual intervention of course and that means this scenario won't work automatically. And on top of that, the lease info in the DHCP database of the fallback server will only be as accurate as the last backup of the main server, and this could cause problems with lease renewals.
A much better solution to DHCP server availability is to use clustering. Set up a simple two-node active/passive cluster for your DHCP server, and when the active node goes down for some reason, the passive one takes over almost immediately and has up-to-date lease information for all clients on your network. Or you can combine a clustered approach with 80/20 scope splitting to ensure both high availability and fault tolerance. For more information on implementing DHCP clusters using Windows Server 2003, search Microsoft TechNet for "DHCP cluster" and you'll get several useful articles.
Sign up for ITworld's Daily newsletter
Follow ITworld on Twitter @IT_world
Esther Schindler
If the comments are ugly, the code is ugly
claird
SVG a graphics format for 21st century
pasmith
Take Chrome OS for a test spin
Sandra Henry-Stocker
Solaris Tip: Have Your Files Changed Since Installation?
jfruh
Android fragments vs. the iPhone monolith
mikelgan
What Gizmodo missed about the Pro WX Wireless USB disk drive
Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325
Join the conversation here
Quick, practical advice for IT pros. Made fresh daily.
Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.













