| ]

Working with DHCP Options

DHCP options are configuration parameters that the DHCP server dynamically assigns to the DHCP clients, along with the IP address. The DHCP options increase the networking functionality of the DHCP clients by providing additional configuration data, such as Time Offset, Router, and Time Server, for the DHCP clients. The DHCP options are classified as server options and scope options.

The server options are applied at the server level and the scope options are applied at the scope level. The server options affect all the DHCP clients of a DHCP server in a network. The scope options affect all the DHCP clients present in a scope.

The server options take precedence over the scope options. In addition, the range of the server options is greater than the range of the scope options. This is because the server options affect all the DHCP clients associated with a DHCP server. The scope options only affect the DHCP clients that are present in the scope on which the scope options are applied.

Configuring DHCP Server Options

You can use the DHCP server to change the properties of the DHCP server options. To configure DHCP server options:

  1. Open the DHCP console window.

  2. Expand the server01 node.

  3. Select the Server Options node from the console tree of server01. Select Action -> Configuration Options, as shown in Figure 14-11-27:

    Click to collapse
    Figure 14-11-27: Selecting the Configuration Options Option

    The Server Options dialog box appears when the Configuration Options option is selected.

  1. Select the option you want to configure from the Available Options list in the Server Options dialog box. Enter the information for the selected option in the Data Entry box to configure it, as shown in Figure 14-11-28:

    Click to collapse
    Figure 14-11-28: Configuring Server Options

  1. Click OK to apply the changes.

Configuring DHCP Scope Options

In Windows Server 2003, you can change the DHCP scope options to affect all the DHCP clients that are part of a scope. To configure the DHCP scope options:

  1. Open the DHCP console window and expand the server node from the console tree.

  2. Select the Scope Options node from the console tree of server01. Select Action -> Configuration Options, as shown in Figure 14-11-29:

    Click to collapse
    Figure 14-11-29: Configuring Scope Options

    The Scope Options dialog box appears when the Configuration Options option from the Action menu is selected.

  1. Select the option you want to configure from the Available Options list. In the Data Entry box, enter the information required to configure this option, as shown in Figure 14-11-30:

    Click to collapse
    Figure 14-11-30: Configuring Scope-Level Options

  1. Click OK to apply the changes.


Integrating DHCP with DNS Server

A DNS server maps the TCP/IP address assigned by the DHCP server to a DHCP client with its Fully Qualified Domain Name (FQDN). A FQDN ends with a period, which provides a reference to the root node in the hierarchal domain name tree. The mapping of an IP address to a domain name requires that a change in either the address or the name of a DHCP client should be followed by an update in the DNS server also. When the DHCP server changes the IP address of a DHCP client, the DHCP server does not automatically update the DNS server. To enable a DHCP server, running on Windows Server 2003, to update the DNS server, the DCHP clients and the DHCP server need to register with the DNS server. The DHCP server updates the DNS pointer (PTR) and the address (A) resource records for the DHCP clients on the DNS server. You need to provide the credential information, such as the user name and password of the DHCP clients, to the DHCP server. The DHCP server uses the credential information to dynamically update the DNS server.

Configuring DNS Dynamic Update Credentials

You can change the credential information that the DHCP server supplies when you register the names of a DHCP client using DNS dynamic updates. To configure the DNS dynamic update credentials:

  1. Open the DHCP console window.

  2. Select the DHCP server node from the console tree.

  3. Select Action -> Properties to configure the properties of the DHCP server. The Server Properties dialog box appears.

  4. Select the Advanced tab from the Server Properties dialog box, as shown in Figure 14-11-31:

    Click to collapse
    Figure 14-11-31: The Advanced Tab

  1. Click the Credentials button to update the credential details. The DNS dynamic update credentials dialog box appears, as shown in Figure 14-11-32:

    Click to collapse
    Figure 14-11-32: The DNS Dynamic Update Credentials Dialog Box

  1. Enter the user name, domain name, and the password that the DHCP server uses when registering the DHCP client with the DNS server.

  2. Click OK.

Enabling DNS Dynamic Update

You need to configure DHCP to dynamically update the DNS server after configuring the DNS dynamic update credentials. To configure DHCP to dynamically update the DNS server:

  1. Open the DHCP console window and select the server01 node from the console tree.

  2. Select Action -> Properties to configure the properties of the server. The Server Properties dialog box appears.

  3. Select the DNS tab of the Server Properties dialog box, as shown in Figure 14-11-33:

    Click to collapse
    Figure 14-11-33: The DNS Tab

  1. Select from the following options to enable the DHCP server to update the DNS server dynamically:

    • Enable DNS dynamic updates according to the settings below

    • Discard A and PTR records when the lease is deleted

  1. Click OK.


Introducing the DHCP Database

The DHCP server uses its database to store information about the DHCP clients. The database is dynamically updated when a new DHCP client is assigned an IP address, or when a DHCP client releases the assigned IP address. The DHCP database also contains the DHCP configuration data associated with each client, such as scopes, reservations, and options. Windows Server 2003 stores the DHCP database in the %systemroot%\System32\DHCP folder. The DHCP database is automatically backed up after every hour in the %systemroot%\System32\DHCP\Backup\New folder.

Backing Up the DHCP Database

You can manually back up the DHCP database to save the recent changes or the current state of the DHCP database. To back up the DCHP database:

  1. Open the DHCP console window.

  2. Select the server node from the console tree.

  3. Select Action -> Backup to back up the DHCP database. The Browse For Folder dialog box appears.

  4. Select the location where you want to save the backup file of the DHCP database. Figure 14-11-34 shows the Browse For Folder dialog box:

    This figure shows the location of the backup folder.
    Figure 14-11-34: The Browse For Folder Dialog Box

  1. Click OK to start the backup.


Note

The default location where the database backup file is stored is system_root\System32\Dhcp\Backup. The automatic backup overwrites the manual backup if the manual backup is stored in the system_root\System32\Dhcp\Backup folder.

Restoring a DHCP Database

Restoring is the process of using the backup file of the database. You use the restoring process when the backup file of a DHCP database needs to be moved from one server to another. To restore a DHCP database:

  1. Open the DHCP console window and select the server01 node from the console tree to configure its properties.

  2. Select Action -> Restore to restore the DHCP database. The Browse For Folder dialog box appears.

  3. Select the folder that contains the backup of a DHCP database.

  4. Click OK to restore the database.

Moving the DHCP Database to Another Server

In Windows Server 2003, you can move a DHCP database from one DHCP server to another. You use the backup and restore processes to move a DHCP database from one DHCP server to another. To move a DHCP Database from one DHCP server to another:

  1. Back up the DHCP database of the source DHCP server.

  2. Right-click the server01 node to open a shortcut menu.

  3. Select the Stop option from the shortcut menu to stop the DHCP server service. This prevents the source DHCP server from assigning new IP address leases to the DHCP clients.

  4. Copy the folder that contains the backup of the source DHCP database to the destination DHCP server computer.

  5. Restore the DHCP database at the destination DHCP server using the restore process.