Sunday, November 16, 2008

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:

* Delegate DHCPadministration to individuals
* View and analyze DHCPstatistical information
* Change the status ofthe DHCP service
* Configure superscopeadministration entities.
* Back up the DHCPserver database.
* Restore the DHCPserver database.
* Repair a corruptedDHCP server database.
* Move a DHCP databaseto a different DHCP server

Controlling DHCP Administration

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

* Enterprise Admins group: The characteristics of the Enterprise Admins group are:
o Group members have forest wide administrative rights
o Group members have full control over the DHCP servers.
o This is the only group that can authorize DHCP servers in Active Directory.
o You should as far as possible restrict membership to the Enterprise Admins group.
* DHCP Administrators group: Thecharacteristics of the DHCP Administrators group are:
o This group is created on each DHCP server.
o Group members can perform all DHCP specific management tasks, including:
+ Create, activate, and delete scopes.
+ Create reservations.
+ Backup and restore the DHCP server database
+ Configure DHCP options
o Group members do not however have the same rights as local Administrators. DHCP Administrators group members have rights which are specific to managing DHCP servers only.
* DHCP Users group: Thecharacteristics of the DHCP Users group are:
o This group is created on each DHCP server.
o Group members can only view configuration information and statistical information on the DHCP server.
o Group members can check whether client connectivity issues exist because of the DHCP service, or because of the depletion of IP addresses.
o Group members can check which scopes have been activated.

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:

* Net Start Dhcpserver
* Net Stop Dhcpserver
* Net Pause Dhcpserver
* Net ContinueDhcpserver

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:

* Start Time; time whenthe DHCP service started
* Up Time; indicatesthe time from the last time when the DHCP service was started.
* Discovers; indicatesthe number of DHCPDISCOVER messages that was received.
* Offers; indicates thenumber of DHCPOFFER messages that was sent.
* Requests; indicatesthe number of DHCPREQUEST messages that was received.
* Acks; indicates thenumber of DHCPACK messages that was sent.
* Nacks; indicates thenumber of DHCPNACK messages that was sent.
* Declines; indicatesthe number of DHCPDECLINE messages that was received.
* Releases; indicatesthe number of DHCPDISCOVER messages that was received.
* Total Scopes;indicates the number of DHCP scopes which are configured for thisparticular DHCP server.
* Total Addresses; indicatesthe number of IP addresses that are available in the scopes that are configuredfor the DHCP server.
* In Use; indicates thenumber of IP addresses that are being used.
* Available; indicatesnumber of IP addresses that are available.

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:

* Manually back up theDHCP database by using the DHCP console
* Schedule an automaticback up of the DHCP database.

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

* Scope information,multicast scope information, and superscope information.
* DHCP leases
* DHCP reservations.
* DHCP options,including,
o Server options
o Scope options
o Class options
o Reservation options

When manually backing up the DHCP database:

* The DHCP service onlyneeds to be stopped if you are planning to move the database to a differentDHCP server.
* The location for thebackup folder has to be a local directory.

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:

* Repair aninconsistent or corrupt DHCP database
* Compact the DHCPdatabase (offline)

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:

* jetpack database_nametemporary_database_name

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
* ; 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.

No comments: