Windows Tip: Clustered DHCP Servers

May 17, 2007, 10:19 AM —  ITworld.com — 



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.


Breaking news: In addition to having been lead author for the Windows Vista Resource Kit (a must-have for administrators who will be deploying Vista in their organizations) I also recently finished writing Microsoft's first book about their upcoming Windows Server Code-Name "Longhorn" platform. This book will be published soon by Microsoft Press and you can pre-order it now. The reason I'm plugging my new book here (in addition to hoping sales will fund my retirement home in Florida - lol) is because clustering is going to be a whole lot easier to implement in Windows Server Code-Name "Longhorn" than it is today in Windows Server 2003. So if you've been holding off clustering your DHCP server because you're afraid you'll have to wade through a 50-page whitepaper just to get the clustering part working, wait till my book comes out and you'll see how simple it will be to set up clustered DHCP (or clustered anything else) in Windows Server Code-Name "Longhorn". Plus you'll learn about Windows Server Core, Terminal Services Gateway, Network Access Protection, and a ton of other cool things by reading my book, so pre-order it today!


I'm shameless, aren't I? Well, authors gotta eat.

 

ITworld.com

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Free books

Essential JavaFX
Get started building rich Web apps quickly with an introduction to the power of JavaFX key features -- scene node graphs, nodes as components, the coordinate system, layout options, colors and gradients, custom classes with inheritance, animation, binding, and event handlers.Enter now!

The Nomadic Developer
Consulting can be hugely rewarding, but it's easy to fail if you are unprepared. To succeed, you need a mentor who knows the lay of the land. Aaron Erickson is your mentor, and this is your guidebook. Enter now!

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace