CIS2153.gif (14009 bytes)

Resource Page   CIS 2153 Syllabus    Chapter Lesson Notes: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11

Chapter 4 Lesson Notes

Installing, Configuring, and Troubleshooting DHCP

Overview of DHCP (Dynamic Host Configuration Protocol)

    1. DHCP Leases
      1. Clients lease IP addresses from a DHCP server.
      2. The client goes through four steps to obtain an IP address. To remember the four steps, think of Aunt DORA:
        1. Discover
        2. Offer
        3. Request
        4. Acknowledgement
    2. The DHCP Lease Process
      1. DHCPDiscover: At initialization, the DHCP client broadcasts a DHCPDiscover message to the local segment, and all DHCP servers on the segment respond. The client provides its hostname, DHCP option codes, a message ID, and the hardware type of the client’s NIC (network Interface card).
      2. Offer: The DHCPOffer message is sent by the DHCP server, offering the client an IP address from its pool of addresses.
      3. Request: The client issues a DHCPRequest to one DHCP server, and other offers are rejected.
      4. ACK/NACK: The address is marked as leased by the DHCP server and can not be used by another client during the active lease period.
    3. Lease Renewal
      1. The default lease period is eight days, which can be changed.
      2. The DHCP client must renew its lease. The DHCPOffer message includes not only the lease period, but also a Renewal Time Interval (T1) and the Rebinding Time Value (T2).

                D.   Renewal and Rebinding Intervals

      1. The Renewal Time Interval (T1) represents 50% of the lease period.
      2. To renew its address, the DHCP client will broadcast a DHCPRequest message containing its IP address.
      3. If the same DHCP server which issued the IP is not available, the client will continue to use its lease for the remainder of the period.
      4. The rebinding time is 87.5% of the lease period. If the lease period is six days, then the rebinding interval is 126 hours. At this time the DHCP client will attempt to rebind its IP address if it was unable to renew the lease at the Renewal Time (T1).
      5. If the DHCP server which issued the original IP address does not respond to the request, the client will begin the DHCPDiscover process, attempting to renew its IP address with any DHCP server. If it cannot find a DHCP server to renew the IP address, TCP/IP services are shut down on the client.
      6. Perform the steps in Exercise 4-2 on page 216: Installing the DHCP Server Service.
  1. DHCP Server Configuration
    1. DHCP Scopes
      1. A scope is a collection, or pool, of IP addresses. There can be only one scope for each subnet, but a single DHCP server can manage several scopes.
      2. The DHCP server and DHCP client do not have to be on the same subnet.
      3. To access the DHCP server, a remote host (on a subnet other than the DHCP server) can use RFC-compliant routers or DHCP relay agents.
      4. Each scope must contain at least the scope name, beginning and ending IP addresses, lease duration, and subnet mask.
    2. DHCP Options
      1. Server options apply to all scopes configured on a single DHCP server.
        1. Server options on the Windows NT 4.0 DHCP server were known as global options.
        2. Examine Figure 4-1 on page 220 to see the WINS configuration option on the DHCP server using the subnets given in the example on page 220.
      2. Scope Options
        1. Scope options allow you to specify DHCP options that apply to a single scope.
        2. Use Figure 4-2 on page 221 to see the Scope Options configuration box.
      3. Client Options
        1. You must create a reserved client to use client options. A reserved client is a DHCP client that always receives the same IP address.
        2. Reserved clients allow you to assign functionally static IP addresses to computers that require these, such as WINS and DNS servers.
        3. Use Figures 4-3 through 4-5 on pages 222-224 to see dialog boxes for creating a client reservation.
      4. DHCP Options Order Precedence
        1. The DHCP Options order of precedence (from highest to lowest):
          1. Locally configured options (for manual configurations)
          2. Vendor/user class options
          3. Client options
          4. Scope options
          5. Server options
      5. Vendor-Specific Options
        1. Vendor-Specific Options allow hardware and software vendors to add their own options to the DHCP server.
        2. Microsoft vendor-specific options include the following:
          1. Disable NetBIOS over TCP/IP (NetBT)
          2. Release DHCP lease on shutdown
          3. Default router metric base
          4. Proxy Autodiscovery
          5. Figure 4-6 on page 226 shows vendor class options
      6. User Class Options

DHCP clients identify their class membership to a DHCP server through user classes. This process is the same as requesting vendor class options (see Figure 4-7 on page 227).

      1. Follow the steps on page 228 to create a new user class.
    1. BOOTP Tables

BOOTP (Bootstrap Protocol) is the predecessor of DHCP, which was developed to improve on the host configuration services offered by BOOTP and to handle some of the problems encountered in using it.

      1. Similarities between DHCP and BOOTP
        1. The messages used for request and reply are basically the same, using one 576-byte UDP datagram for each.
        2. They use the same ports for communication between server and client.
      2. Differences between DHCP and BOOTP
        1. BOOTP normally allocates one IP address per client and reserves it permanently, while DHCP leases addresses for a period of time dynamically, assigning the client’s address from a pool.
        2. Unlike BOOTP, DHCP was originally designed to configure addressing information for computers with bootable hard drives.
        3. To renew the configuration with the server, the BOOTP client must restart. DHCP clients can automatically renew their leases with their servers at preset intervals.
    1. Superscopes
      1. A Superscope is a Windows 2000 feature that allows you to use more than one scope for a subnet. This is useful for fault tolerance.
      2. Through the use of superscopes the administrator gains the flexibility to support DHCP clients in multinet configurations. Multinets are network configurations in which multiple logical networks occupy the same physical segment.
      3. Perform Exercise 4-3 on page 236: Creating a New Scope.
      4. Perform Exercise 4-4 on page 238: Configuring Options.

 

III. DHCP Relay Agents in a Routed Environment

A. Using BOOTP Forwarding or DHCP Relay Agents

      1. Tip: use fewer DHCP servers and place these machines in central locations.
      2. Routers can be configured to pass DHCP/BOOTP messages selectively. This is called a BOOTP Relay.
      3. DHCP relay agents can also be used in environments where non-BOOTP compliant routers exist.
      4. Use the steps on page 241 to follow the exchange when an RFC-compliant router acts as a relay agent via BOOTP Relay.
    1. Configuring the DHCP Relay Agent
      1. The RRAS (Routing and Remote Access Service) must be installed prior to configuring the DHCP relay agent.
      2. Perform the steps given in Exercise 4-5 on page 245: Configuring a DHCP Relay Agent.

 

IV. Integrating DHCP with DDNS

  1. The Windows 2000 DHCP server can deliver host name and IP addressing information to a Windows 2000 Dynamic DNS (DDNS) server, unlike Windows NT 4.0.
  2. Once the DHCP server assigns the DHCP client an IP address, the Windows 2000 DHCP server and Windows 2000 Dynamic DNS server can interact in any of these ways:
      1. The DNS server will be updated so a Host (A) record and a PTR (Pointer) record can be created.
      2. Regardless of the client request, the DHCP server will update both the Host (A) and the Pointer (PTR) records.
      3. The DHCP server will never register information about the DHCP client, although the client itself may directly update its information with the DDNS server. (See Figure 4-16 on page 247.)
      4. Change the default settings to prevent the client from registering directly with the DDNS server. (See Figure 4-17 on page 248.)
  3. Integrating Downlevel DHCP Clients and Dynamic DNS
      1. Downlevel clients cannot communicate directly with a DDNS server. The Windows 2000 DHCP server acts as a "proxy" that forwards both Host (A) and Pointer (PTR) information to the DDNS server.
      2. An update to a client’s entry in the DDNS server can be forced by issuing the ipconfig /registerdns command.
      3. Perform Exercise 4-6 on page 249: Enabling a DHCP Server to Update Downlevel DHCP Client Information.
  1. Integrating DHCP with RRAS
    1. RRAS (Routing and Remote Access Service), when initiated, allocates a group of IP addresses from the DHCP server. It uses this pool of IP addresses to allocate to the RRAS clients that connect.
    2. RRAS clients and the DHCP server do not directly interact. RRAS clients receive their DHCP option information (WINS, DNS, Gateway, etc.) from the RRAS server, each port of which can be specifically configured with this information.
    3. Any option information sent from a DHCP server to the RRAS server is ignored when the RRAS server obtains its group of IP addresses.
    4. There is no effective lease period for the RRAS client, so once the connection is terminated, the lease immediately expires.
    5. Perform Exercise 4-7 on page 251: Configuring RRAS to use DHCP to Assign IP Addresses.
  2. Integrating DHCP with Active Directory

"Authorizing" is the process of approving DHCP servers that have not been approved by the network administrator.

    1. Authorizing DHCP Servers
      1. Rogue DHCP Server Detection
        1. A DHCP server broadcasts a DHCPInform message to the local segment.
        2. The DHCPInform message sends queries to other DHCP servers.
        3. The DHCP server responds by sending a DHCPAck that includes Directory Services Enterprise Root information.
        4. A query is placed to the Active Directory, which maintains a list of authorized DHCP servers. If the machine’s IP address is on the list, it will successfully initialize DHCP Server Services.
        1. Perform Exercise 4-8 on page 254: Authorizing a DHCP server in the Active Directory.
  1. DHCP and APIPA
    1. APIPA (Automatic Private IP Addressing) allows Windows 2000 computers which are DHCP clients to assign their own IP addresses.
    2. APIPA is useful in the following two situations:.
      1. The first is described in Steps 1 to 4 on page 255, and occurs when the machine has not previously bound an IP address.
      2. The second situation occurs when a DHCP client with an active lease starts up and cannot contact a DHCP server. (See the second set of four steps at the bottom of page 255.)
    3. Perform Exercise 4-9 on page 256: Disabling Automatic Private IP Addressing.
  2. Monitoring and Troubleshooting DHCP
      1. Using Event Viewer
      2. Using System Monitor
      3. Using Logs
      4. Perform Exercise 4-10 on page 259: Enabling DHCP Server Logging
1