Subscribe to Windows IT Pro
July 02, 2001 12:00 AM

DHCP in Windows 2000

Windows IT Pro
InstantDoc ID #21659
Rating: (3)

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.

Related Content:

ARTICLE TOOLS

Comments
  • viikky
    5 years ago
    Jan 02, 2007

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

  • Anonymous User
    7 years ago
    Feb 08, 2005

    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

  • Frederik
    8 years ago
    Aug 31, 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.

  • L
    8 years ago
    May 04, 2004

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

  • Leo van Nieuwenborg
    8 years ago
    Apr 30, 2004

    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

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.