Configuring DHCP Servers


When you install a new DHCP server, configuration options are optimized for the network environment automatically. You don't normally need to change these settings unless you have performance problems that you need to resolve or you have options that you'd like to add or remove. With DHCP server, you change configuration options through the Properties dialog box shown in Figure 18-3. In the DHCP console, you access this dialog box by right-clicking the server in the console tree and then selecting Properties. To configure DHCP servers using Computer Management, expand DHCP, right-click the server, and then select Properties.

Figure 18-3. You can control statistics, auditing, DNS integration, and other options through the DHCP server Properties dialog box.

graphics/f18ap03.jpg

Binding a DHCP Server with Multiple Network Interface Cards to a Specific IP Address

A server with multiple NICs has multiple local area network connections and can provide DHCP services on any of these network connections. Unfortunately, you might not want DHCP to be served over all available connections. For example, if the server has both a 10 megabit per second (Mbps) connection and a 100 Mbps connection, you might want all DHCP traffic to go over the 100 Mbps connection.

To bind DHCP to a specific network connection, follow these steps:

  1. Start the DHCP console. Click Start, choose Programs or All Programs as appropriate, choose Administrative Tools, and then click DHCP.

  2. In the DHCP console, right-click the server you want to work with, and then select Properties.

  3. In the Advanced tab of the Properties dialog box, click Bindings.

  4. The Bindings dialog box displays a list of available network connections for the DHCP server. If you want the DHCP Server service to use a connection to service clients , select the check box for the connection. If you don't want the service to use a connection, clear the related check box.

  5. Click OK when you're finished.

Updating DHCP Statistics

The DHCP console provides statistics concerning IP address availability and usage. By default, these statistics are updated only when you start the DHCP console or when you select the server and then click the Refresh button on the toolbar. If you monitor DHCP routinely, you might want these statistics to update automatically. To do that, follow these steps:

  1. In the DHCP console, right-click the server you want to work with and then select Properties.

  2. In the General tab, select Automatically Update Statistics Every and then enter an update interval in hours and minutes. Click OK.

DHCP Auditing and Troubleshooting

Windows Server 2003 is configured to audit DHCP processes by default. Auditing tracks DHCP processes and requests in log files.

Understanding DHCP Auditing

You can use audit logs to help you troubleshoot problems with a DHCP server. The default location for DHCP logs is %SystemRoot%\system32\DHCP. In this directory you'll find a different log file for each day of the week. The log file for Monday is named DhcpSrvLog-Mon.log. The log file for Tuesday is named DhcpSrvLog-Tue.log, and so on.

When you start the DHCP server or a new day arrives, a header message is written to the log file. This header provides a summary of DHCP events and their meanings. Stopping and starting the DHCP Server service doesn't necessarily clear out a log file. Log data is cleared only when a log hasn't been written to in the last 24 hours. You don't have to monitor space usage by DHCP Server. DHCP Server is configured to monitor itself and restricts disk space usage by default.

Enabling or Disabling DHCP Auditing

You can enable or disable DHCP auditing by completing the following steps:

  1. In the DHCP console, right-click the server you want to work with and then select Properties.

  2. In the General tab, select or clear Enable DHCP Audit Logging. Click OK.

Changing the Location of DHCP Auditing Logs

By default, DHCP logs are stored in %SystemRoot%\system32\DHCP. You can change the location of DHCP logs by completing the following steps:

  1. In the DHCP console, right-click the server you want to work with, and then select Properties.

  2. Select the Advanced tab. The Audit Log File Path field shows the current folder location for log files. Enter a new folder location or click Browse to find a new location.

  3. Click OK. Windows Server 2003 will need to restart the DHCP Server service. When prompted to confirm that this is OK, click Yes. The service will be stopped and then started.

Changing the Log Usage

DHCP Server has a self-monitoring system that checks disk space usage. By default, the maximum size of all DHCP server logs is 70 MB, with each individual log being limited to one-seventh of this space. If the server reaches the 70 MB limit or an individual log grows beyond the allocated space, logging of DHCP activity stops until log files are cleared out or space is otherwise made available. Normally, this happens when a new day is reached and the server clears out the previous week's log file.

Registry keys that control the log usage and other DHCP settings are located in the folder HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\ Parameters.

The following keys control the logging:

  • DhcpLogFilesMaxSize

    Sets the maximum file size for all logs. The default is 70 MB.

  • DhcpLogDiskSpaceCheckInterval

    Determines how often DHCP checks disk space usage. The default interval is 50 minutes.

  • DhcpLogMinSpaceOnDisk

    Sets the free space threshold for writing to the log. If the disk has less free space than the value specified, logging is temporarily disabled. The default value is 20 MB.

Only DhcpLogFilesMaxSize is created automatically. So if you want to control logging, you'll need to create additional keys as necessary and set appropriate values for your network.

Integrating DHCP and DNS

DNS is used to resolve computer names in Active Directory domains and on the Internet. Thanks to the DNS dynamic update protocol, you don't need to register DHCP clients in DNS manually. The protocol allows either the client or the DHCP server to register the necessary forward lookup and reverse lookup records in DNS, as necessary. When configured using the default setup for DHCP, Windows Server 2003 DHCP clients automatically update their own DNS records after receiving an IP address lease, and DHCP server updates records for pre “Windows Server 2003 clients after issuing a lease.

Tip

Microsoft Windows NT 4.0 DNS servers don't support the dynamic update protocol, and records aren't updated automatically. One workaround is to enable WINS lookup for DHCP clients that use NetBIOS. This allows the client to find other computers through WINS. A better long- term solution is to upgrade older DNS servers to Windows Server 2003.


You can view and change the DNS integration settings by completing the following steps:

  1. In the DHCP console, right-click the server you want to work with, and then select Properties.

  2. Select the DNS tab. Figure 18-4 shows the default DNS integration settings for DHCP. Because these settings are configured by default, you don't need to modify the configuration in most cases.

    Figure 18-4. The DNS tab shows the default settings for DNS integration with DHCP.

    graphics/f18ap04.jpg

Avoiding IP Address Conflicts

IP address conflicts are a common cause of problems with DHCP. No two computers on the network can have the same unicast IP address. If a computer is assigned the same unicast IP address as another, one or both of the computers might become disconnected from the network. To better detect and avoid potential conflicts, you might want to enable IP address conflict detection by completing the following steps:

  1. In the DHCP console, right-click the server you want to work with, and then select Properties.

  2. In the Advanced tab, set Conflict Detection Attempts to a value other than zero. The value you enter determines the number of times DHCP server checks an IP address before leasing it to a client. DHCP server checks IP addresses by sending a ping request over the network.

Real World

A unicast IP address is a standard IP address for class A, B, and C networks. When a DHCP client requests a lease, a DHCP server checks its pool of available addresses and assigns the client a lease on an available IP address. By default, the server checks only the list of current leases to determine if an address is available. It doesn't actually query the network to see if an address is in use. Unfortunately, in a busy network environment, an administrator might have assigned this IP address to another computer or an offline computer might have been brought online with a lease that it believes hasn't expired, even though the DHCP server believes the lease has expired . Either way, you have an address conflict that will cause problems on the network. To reduce these types of conflicts, set the conflict detection to a value greater than zero.

Saving and Restoring the DHCP Configuration

Once you configure all the necessary DHCP settings, you might want to save the DHCP configuration so that you can restore it on the DHCP server. To save the configuration, enter the following command at the command prompt:

 netsh dump dchp >dhcpconfig.dmp 

In this example, dhcpconfig.dmp is the name of the configuration script you want to create. Once you create this script, you can restore the configuration by entering the following command at the command prompt:

 netsh exec dhcpconfig.dmp 

Tip

You can also use this technique to set up another DHCP server with the same configuration. Simply copy the configuration script to a folder on the destination computer and then execute it.




Microsoft Windows Server 2003 Administrator[ap]s Pocket Consultant
Microsoft Windows Server 2003 Administrator[ap]s Pocket Consultant
ISBN: 735622450
EAN: N/A
Year: 2003
Pages: 141

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net