Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


July 02, 2001

DHCP in Windows 2000


RSS
Subscribe to Windows IT Pro | See More TCP/IP Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

On existing networks, we often take network services such as DHCP, WINS, and DNS for granted. If the services are set up in a way that takes the physical network configuration into account, then network services don’t require much administrative effort. Nevertheless, the role that these services play in ensuring smooth network operation and communication is crucial. In my last column, I examined WINS and discussed the reliability and performance enhancements that Microsoft has made to the service in Windows 2000. This week, let's turn to DHCP in Win2K.

Understanding DHCP
DHCP automates the assignment of TCP/IP configuration information, so you don't have to manually assign that information to each machine on your network. The DHCP server manages a range of IP addresses, called a scope, that are valid for a particular network segment. When a DHCP client machine boots up on the network for the first time, it broadcasts a request for an IP address. In response, the DHCP server broadcasts an IP address from its scope. This response is called an IP address lease because it's good for a specific period that you specify. IP address leasing lets you manage the pool of available IP addresses effectively, preventing machines that connect to a network segment temporarily from reserving IP addresses for extended periods. In addition to client IP addresses, the DHCP server can also give out additional IP configuration information—such as IP addresses for default gateways, WINS, and DNS servers—that you have configured as Scope Options, as Figure 1 shows.

You can configure any Win2K, Windows NT 4.0, or Windows 9x machine to be a DHCP client by selecting Obtain an IP address automatically on the Internet Protocol (TCP/IP) Properties dialog box, as Figure 2 shows. In fact, if you choose Typical Network Configuration during the Win2K installation process, Win2K configures the machine as a DHCP client. However, a difference between Win2K and NT 4.0 DHCP clients is that Win2K uses autonet. With autonet, if a Win2K machine can't contact a DHCP server, it assigns itself an IP address from the 169.254.0.0 class B address space with a subnet mask of 255.255.0.0. This assignment can confuse troubleshooting, because NT 4.0 clients show an IP address of 0.0.0.0 when they don't receive an actual address from a DHCP server.

Designing Reliable DHCP Implementations
As I mentioned, the DHCP server and DHCP clients communicate via broadcast. By default, broadcasts don't pass through routers, and you must design your DHCP implementation with that in mind. As a result, you have three configuration options that will ensure that all your DHCP clients can reach the DHCP server. You can set up a DHCP server on each physical LAN segment; you can enable your routers to pass the DHCP traffic, which lets clients contact DHCP servers on other segments; or you can configure a DHCP Relay Agent on LAN segments that don’t have a DHCP server. DHCP Relay Agents, machines that you configure with the IP address of a DHCP server on another LAN segment, listen for client DHCP broadcast requests and relay those lease requests to a DHCP server across a router. The DHCP server then sends a response to the Relay Agent, which broadcasts the response on the LAN segment for the client. In Win2K, you configure DHCP Relay Agent functionality through the Microsoft Management Console (MMC) RRAS console.

Any of these three configuration options can make DHCP services available to all clients on your network—when everything is up and running properly. TCP/IP is the required network protocol in Win2K domains, and although DHCP simplifies client IP configuration, it's important that you don’t implement a design that results in a situation in which you have one point of failure on your network. For example, if you set up a DHCP server on every LAN segment, all your clients will be able to receive IP address configuration information. However, if anything happens to the DHCP server on one of the segments and the server remains offline for an extended period, the downtime will affect all communication on that segment. As a solution, you can configure your DHCP servers with multiple scopes: one for their local LAN segment and another that serves as a backup scope for another segment. You can then use DHCP Relay Agents on each LAN segment to point to the DHCP servers on the other LAN segments that have the backup scopes for their segment. You can configure the Relay Agents to wait several seconds before forwarding client requests to the remote DHCP server, as Figure 3 shows, so that the Relay Agents forward only requests that the local DHCP server doesn’t respond to.

The basic functionality of DHCP hasn’t changed drastically in Win2K, but Microsoft has made several enhancements—just as it did with WINS. In my next column, I'll discuss these enhancements and explain how to configure them.

End of Article



Reader Comments
I was wondering what is better solutions.
1. Setting up DHCP on a windows 2k or 2033 server
2. Setting up DHCP on the internet router/firewall

Leo van Nieuwenborg April 30, 2004


Thank you this article had one of the clearest explanations I've read about DHCP.

lc May 04, 2004


Leo - I guess that depends on you needs. A typical router/firewall isn't much of a DHCP Deamon, typically you can't reserve leases.

And what's more important if you reboot your router it don't save the leases. If you only have a small network to manage (1 subnet) it doesn't matter that much, otherwise a Win2k og win2k3 is a much better choice.

Or even if you only have a small network, but have the server anyway, why not use it? I know I would.

Snowball42 August 31, 2004 (Article Rating: )


Want to implement Thin client solution to our network, using WYSE 1000. Current Win2K server we will use has a static IP and part of a network. Can I simply turn this server into a DHCP server without impacting it's current network settings (as it is used for other management functions)?

Thanks,
Paul

Anonymous User February 08, 2005 (Article Rating: )


I want that my win 2000 professional act as a DHCP server. How will we do it?

viikky January 02, 2007 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

More fun TechEd 2005 Resources

Kevin points out some more TechEd resources ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

IT Connections
Dive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities.

Attention User Group Leaders...
Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes and add Windows IT Pro & SQL Server Mag articles alongside your own message!.

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Get SQL Server 2008 at WinConnections
Don’t miss Microsoft Exchange and Windows Connections conferences, the premier events for Microsoft IT Professionals in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.



Interested in Email Encryption?
Read about the advantages of identity-based encryption in this free report.

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing