Managing the DHCP Server

Management Tasks for the DHCP Server

The common management tasks that you need to perform for your DHCP servers are listed below:

Controlling DHCP Administration

With Windows Server2003, there are three built-in local groups which have rights to manage your DHCP servers:

How to change the status of the DHCP service

The DHCP console is the management console for administering the DHCP service. The DHCP console is automatically installed when you install the DHCP service on a Windows 2000 or Windows Server 2003 computer. The left pane or console tree in the DHCP console lists the available DHCP servers. The Action menu includes a number of options which are useful when managing your DHCP servers.

How to manage the DHCP service

  1. Click Start, All Programs,Administrative Tools and then click DHCP.
  2. The DHCP console opens.
  3. Select the DHCP server that youwant to manage in the console tree.
  4. From the Action menu, click AllTasks, and choose between the following options:
    • Start, to start the DHCP service
    • Stop, to stop the DHCP service
    • Pause, to pause the DHCP service
    • Resume, to continue the DHCP service after it was paused.
    • Restart, to stop and then automatically restart the DHCP service

How to change the change the status of the DHCP service from the command-line

Use the following commands to manage the DHCP service from the command-line:

How to create a superscope administration entity

  1. Open the DHCP console
  2. Right-click the DHCP server in theconsole tree, and select New Superscope from the shortcut menu.
  3. The New Superscope Wizard starts.
  4. On the initial page of the NewSuperscope Wizard, click Next.
  5. On the Superscope Name page,provide a name for the new superscope. Click Next.
  6. On the Select Scopes page, selectone or numerous scopes that you want to be part of the new superscope.Click Next.
  7. On the Completing the NewSuperscope Wizard page, click Finish to create the new superscope.
  8. Verify that the newly created DHCPsuperscope is displayed in the DHCP console.
  9. You now have to activate the newsuperscope.
  10. Right-click the superscope in theconsole tree, and select Activate from the shortcut menu to activate it.

How to view and analyze DHCP statistical information

To view statistical information on your DHCP servers:

  1. Open the DHCP console.
  2. In the console tree, right-clickthe DHCP server, and then click Display Statistics from the shortcut menu.
  3. The Statistics dialog box opens,displaying the information on:
    • The scopes configured for the DHCP server
    • Information on the DHCP lease process messages
    • IP address usage and availability

The server statistic headers which are displayed in the Statistics dialog box are listed below:

You can also view statistical information on the DHCP server in the DHCP server logs.

How to view statistical information on a specific scope

  1. Open the DHCP console.
  2. In the console tree, right-clickthe scope that you want to view statistical information on, and select ScopeStatistics from the shortcut menu.
  3. Information is displayed on thefollowing:
    • The total number of IP addresses in the particular scope.
    • The number of IP addresses in the scope that are being used.
    • The number of IP addresses in the scope that are available.

How to refresh DHCP statistical information

  1. Open the DHCP console.
  2. In the console tree, right-clickthe DHCP server for which you want to refresh statistical information, andthen select Properties from the shortcut menu.
  3. On the General tab, select theAutomatically Update Statistics Every: checkbox.
  4. Use the Hours and Minutes boxes tospecify when the statistical information should be refreshed.
  5. Click OK.

Backing up the DHCP Server Database

Backing up the DHCP database on the DHCP server is important because it enables you to recover a lost or corrupted DHCP database. With Windows Server 2003, the following methods are supported for backing up the DHCP server database:

When the DHCP database is backed up, the contents of the entire database is backed up: This includes the following key information:

When manually backing up the DHCP database:

How to manually back up the DHCP database

  1. Open the DHCP console.
  2. Right-click the DHCP server thatcontains the database that you want to back up, and select Backup from theshortcut menu.
  3. When the Browse For Folder dialogbox opens, select the folder to which the DHCP database should be backedup.
  4. Click OK.

How to restore the DHCP database :

  1. Open the DHCP console.
  2. Right-click the DHCP server forwhich you want to restore the DHCP database, and select Restore from theshortcut menu.
  3. When the Browse For Folder dialogbox opens, select the folder that contains the back up of the databasethat you want to restore.
  4. Click OK.
  5. Click Yes when prompted to verifythat the DHCP database must be restored immediately, and that the DHCPservice can be stopped and restarted.

How to repair and compact the DHCP database

Windows Server 2003 includes the jetpack command-line utility which can be used to:

It is recommended to perform an offline compaction of the DHCP database when the database size is over 30 MB.

The syntax for jetpack.exe is:

To repair the DHCP database using Jetpack.exe,

  1. Click Start, Run, and enter cmd in the Run box.
  2. Locate the DHCP databasedirectory.
  3. Enter net stop dhcp.
  4. Enter jetpack dhcp.mdb<temp>
    • <temp>; name and location of the temporary file that is to be used to repair the DHCP database.
  5. Enter net start dhcp.

How to move a DHCP database to a different DHCP server

  1. Open the DHCP console.
  2. Right-click the DHCP server whosedatabase you want to move to a different server, and select Backup fromthe shortcut menu.
  3. When the Browse For Folder dialogbox opens, select the folder to which the DHCP database should be backedup.
  4. Click OK.
  5. To prevent the DHCP server fromallocating new IP addresses to clients once the DHCP server database isbacked up, you have to stop the DHCP server.
  6. Open the Services console.
  7. Double-click the DHCP server.
  8. When the DHCP Server Propertiesdialog box opens, select Disable from the Startup Type drop down list.
  9. Proceed to copy the folder whichcontains the backup to the destination DHCP server.
  10. You now have to restore the DHCPbackup at the destination DHCP server.
  11. Open the DHCP console.
  12. Right-click the destination DHCPserver for which you want to restore the DHCP database, and select Restorefrom the shortcut menu.
  13. When the Browse For Folder dialogbox opens, select the folder that contains the back up of the databasethat you want to restore.
  14. Click OK.
  15. Click Yes when prompted to restorethe database, and to stop and restart the DHCP service.


Top 5 Free Networking Tools

Bookmark Managing the DHCP Server

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.