<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer Support &#187; DHCP</title>
	<atom:link href="http://www.xiitec.com/blog/category/system-administration/windows/dhcp-windows-system-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running DHCP Server on a Domain Controller</title>
		<link>http://www.xiitec.com/blog/2008/02/22/running-dhcp-server-on-a-domain-controller/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/running-dhcp-server-on-a-domain-controller/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:45:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DHCP server]]></category>
		<category><![CDATA[domain controller]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=175</guid>
		<description><![CDATA[By default, the DHCP Server runs under the credentials of the computer account that is hosting it. If it happens to be running on a domain controller, it runs under the domain controller&#8217;s computer account. A domain controller has full permissions over any Active Directory-integrated zones it replicates. The result of the DHCP Server running [...]]]></description>
			<content:encoded><![CDATA[<p>By default, the DHCP Server runs under the credentials of the computer account that is hosting it. If it happens to be running on a domain controller, it runs under the domain controller&#8217;s computer account. A domain controller has full permissions over any Active Directory-integrated zones it replicates. The result of the DHCP Server running on a domain controller means that if the DHCP Server has been configured to dynamically register DNS records on behalf of clients, it can potentially update any record stored in an Active Directory-integrated zone. Ultimately, that leaves the zones vulnerable to name hijacking, whereby a client can cause records to be overwritten that shouldn&#8217;t be. This can cause all sorts of havoc if an attacker starts replacing important records in your zones.</p>
<p><span id="more-175"></span></p>
<p>Microsoft recommends that you avoid this completely by not running the DHCP Server on a domain controller. But as of Windows 2000 Service Pack 1, you can work around this issue by configuring the DHCP Server to use alternate credentials when making dynamic updates. The account doesn&#8217;t need any special permissions in order to dynamically update records. After you&#8217;ve configured alternate credentials, check the event log for any errors pertaining to logon issues (perhaps the username or password are incorrect) or dynamic update errors.</p>
<p>If you back up a DHCP Server&#8217;s configuration using NTBackup, DNS credentials are not backed up. This is done intentionally to prevent someone from hijacking names by restoring a DHCP Server from backup. You must manually restore the DNS credentials if you have to restore a DHCP Server.</p>
<p><strong> Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Right-click the server and select Properties.</li>
<li>Click the Advanced tab.</li>
<li>Click the Credentials button.</li>
<li>Enter the username, domain, and password for the account you want to use.</li>
<li>Click OK until all dialog windows are closed.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>Use the following command to display the current DNS credentials used by the DHCP Server:</p>
<pre>&gt; netsh dhcp server show dnscredentials</pre>
<p>Use the following command to configure new DNS credentials on the DHCP Server:</p>
<pre>&gt; netsh dhcp server set dnscredentials <username> <domain>
<password> </password></domain></username></pre>
<p>Use the following command to remove the DNS credentials used by the DHCP Server:</p>
<pre>&gt; netsh dhcp server delete dnscredentials dhcpfullforce</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/running-dhcp-server-on-a-domain-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding the DHCP Servers on a Subnet</title>
		<link>http://www.xiitec.com/blog/2008/02/22/finding-the-dhcp-servers-on-a-subnet/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/finding-the-dhcp-servers-on-a-subnet/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:44:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[subnet]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=174</guid>
		<description><![CDATA[This is useful if you believe there is a rogue DHCP Server causing problems for your clients.
The dhcploc command lets you see a computer&#8217;s DHCP traffic for a broadcast domain. Simply pass in the IP address of the machine from which you are running the command:
&#62; dhcploc 192.168.32.24

You will not see any output from the [...]]]></description>
			<content:encoded><![CDATA[<p>This is useful if you believe there is a rogue DHCP Server causing problems for your clients.</p>
<p>The dhcploc command lets you see a computer&#8217;s DHCP traffic for a broadcast domain. Simply pass in the IP address of the machine from which you are running the command:</p>
<pre>&gt; dhcploc 192.168.32.24</pre>
<p><span id="more-174"></span></p>
<p>You will not see any output from the command until it captures some DHCP traffic. You can try running ipconfig /renew to force some traffic to be generated. You can also press the &#8220;d&#8221; key when you have dhcploc running to have it generate a DISCOVER message.</p>
<p>Here is some sample output from the command:</p>
<pre>9:34:58 (IP)0.0.0.0        NACK      (S)192.168.31.84     ***
 9:36:38 (IP)192.168.190.130 OFFER     (S)192.168.12.226   ***
 9:36:38 (IP)192.168.196.231 ACK       (S)192.168.13.53
 9:36:53 (IP)192.168.196.231 ACK       (S)192.168.13.53
 9:37:05 (IP)192.168.196.234 OFFER     (S)192.168.13.53
 9:37:05 (IP)192.168.193.232 OFFER     (S)192.168.12.198
 9:37:06 (IP)192.168.190.132 OFFER     (S)192.168.12.221   ***</pre>
<p>The first column contains a timestamp, the second column is the IP address of the target computer, the third is the DHCP request type, the fourth is the IP address of the DHCP Server, and the fifth is a flag that indicates whether the DHCP Server is authorized. If it is not authorized, you&#8217;ll see three stars (***). In the previous output, you can see that 192.168.31.84, 192.168.12.226, and 192.168.12.221 are all unauthorized DHCP Servers.</p>
<p>dhcploc can also send alerts if it detects an unauthorized server. This allows you to start dhcploc, leave it running, and let it proactively notify you when it discovers an unauthorized server. To do so, specify the /a: option followed by the list of users to alert as shown here:</p>
<pre>&gt; dhcploc /a:"rallen" 192.168.32.24</pre>
<p>dhcploc works by capturing all of the DHCP traffic it sees on the network. Since most DHCP traffic is sent via broadcast, every computer in the broadcast domain (e.g., all computers connected to a hub on a local segment), can look at DHCP traffic. Most computers simply discard the traffic unless it is destined for them, but dhcploc captures all DHCP traffic.</p>
<p>Do not run dhcploc from a DHCP Server. DHCP traffic will be delivered to dhcploc instead of the DHCP Server. By running the command directly on a DHCP Server, it is likely the server won&#8217;t be able to respond to any client requests.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/finding-the-dhcp-servers-on-a-subnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viewing DHCP Utilization Statistics</title>
		<link>http://www.xiitec.com/blog/2008/02/22/viewing-dhcp-utilization-statistics/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/viewing-dhcp-utilization-statistics/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:40:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=173</guid>
		<description><![CDATA[Any time you look at the performance statistics, you need an understanding of the baseline performance. For example, if you look at the number of DHCP acknowledgments per second and find that your server is currently at 7, how do you know if that is more or less than normal? You really need to become [...]]]></description>
			<content:encoded><![CDATA[<p>Any time you look at the performance statistics, you need an understanding of the baseline performance. For example, if you look at the number of DHCP acknowledgments per second and find that your server is currently at 7, how do you know if that is more or less than normal? You really need to become familiar with how much traffic your server is getting so that if you suspect your server is becoming overloaded, you have a frame of reference.</p>
<p><span id="more-173"></span></p>
<p>Also, with DHCP the time of day is important. When users arrive in the morning and fire up their computers, there will be a lot of DHCP Discover requests by client computers. Depending on your lease duration, you may see additional spikes throughout the day. For example, if your lease duration is set to four hours, clients will begin to extend the lease after two hours. Then at the end of the day, when your users shut down their computers, you may see a lot of DHCP Release request activity.</p>
<p>For good rules of thumb concerning what to watch for when observing the DHCP performance counters, go to http://msdn.microsoft.com and search on &#8220;DHCP Server Object.&#8221; In the Performance Monitor Reference, Microsoft describes all of the counters and provides guidance on how to determine bottlenecks based on what you are seeing.</p>
<p>If you determine that you are seeing an unusually high rate of DHCP requests, you&#8217;ll want to learn what clients are generating the bulk of the traffic.</p>
<p>You can view a snapshot of the number of DHCP requests a server has processed by doing the following:</p>
<ol>
<li>Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Right-click the server and select Action  &gt; Display Statistics.</li>
</ol>
<p>You can get similar information by running the following command:</p>
<pre>&gt; netsh dhcp server \\<servername> show mibinfo</servername></pre>
<p>You can also trend DHCP statistics over a period of time using Performance Monitor:</p>
<ol>
<li>Open the Performance Monitor snap-in.</li>
<li>Click the plus (add) button in the right pane.</li>
<li>Under Performance object, select DHCP Server.</li>
<li>Under Select counters from list, click on a counter you want to view and click the Add button. You can also click on the Explain button to view more information about a specific counter.</li>
<li>Click Close when you are done.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/viewing-dhcp-utilization-statistics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importing and Exporting DHCP Server Configuration</title>
		<link>http://www.xiitec.com/blog/2008/02/22/importing-and-exporting-dhcp-server-configuration/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/importing-and-exporting-dhcp-server-configuration/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:31:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=172</guid>
		<description><![CDATA[The netsh tool makes it easy to import and export DHCP Server configuration information. In the CLI solution, I showed how to export all scope information, but you can specify a subset if you want only certain ones. The following command exports only the scopes pertaining to 10.1.2.0 and 10.1.3.0:
&#62;  netsh dhcp server export [...]]]></description>
			<content:encoded><![CDATA[<p>The netsh tool makes it easy to import and export DHCP Server configuration information. In the CLI solution, I showed how to export all scope information, but you can specify a subset if you want only certain ones. The following command exports only the scopes pertaining to 10.1.2.0 and 10.1.3.0:</p>
<pre>&gt;  netsh dhcp server export C:\dhcp.txt 10.1.2.0 10.1.3.0</pre>
<p><span id="more-172"></span></p>
<p><strong>Using a graphical user interface</strong></p>
<p>The Windows 2000 Resource Kit contains a tool called dhcpexim , which is a simple GUI for exporting and importing DHCP Server configuration. However, I&#8217;ve tested it on Windows Server 2003 and have not been able to make it work properly. Based on other newsgroup postings on the subject, it doesn&#8217;t appear the Windows 2000 version of dhcpexim works with Windows Server 2003. So until a new version is released (which may never happen), your only option on Windows Server 2003 is the CLI solution described next.</p>
<p><strong>Using a command-line interface</strong></p>
<p>The following command exports DHCP Server configuration to c:\dhcp.txt:</p>
<pre>&gt;  netsh dhcp server export C:\dhcp.txt all</pre>
<p>To import this configuration on another server, copy c:\dhcp.txt to the target server and run the following command on that server (I&#8217;m assuming the DHCP Server has already been installed):</p>
<pre>&gt;  netsh dhcp server import C:\dhcp.txt all</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/importing-and-exporting-dhcp-server-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring the DHCP Database</title>
		<link>http://www.xiitec.com/blog/2008/02/22/restoring-the-dhcp-database/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/restoring-the-dhcp-database/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:28:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=171</guid>
		<description><![CDATA[The DHCP database contains all the scope information, reservations, leases, and options. The server also backs up a portion of the DHCP Server registry key, which contain settings related to database path and audit logs among other global settings. Most of these registry values can be set with netsh. Run netsh dhcp server set /? [...]]]></description>
			<content:encoded><![CDATA[<p>The DHCP database contains all the scope information, reservations, leases, and options. The server also backs up a portion of the DHCP Server registry key, which contain settings related to database path and audit logs among other global settings. Most of these registry values can be set with netsh. Run netsh dhcp server set /? to get a list.</p>
<p><span id="more-171"></span></p>
<p>If you restore via the DHCP snap-in, both the database and registry key are restored. In order for the change to take effect, you have to restart the DHCP Server if it is already running.</p>
<p>One thing that is not restored, because it is not backed up, is the DNS credentials (user name, password, and domain) used for making dynamic DNS updates. If your DHCP Server is not performing dynamic DNS updates on behalf of your clients, you do not need to worry about this; but if you are, then you&#8217;ll need to manually restore these settings.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in on the target DHCP Server.</li>
<li>In the left pane, click the server node.</li>
<li>From the menu, select Action  Restore.</li>
<li>Select the folder that contains the backup files (the default location will automatically be opened) and click OK.</li>
<li>If the DHCP Server service is running, you&#8217;ll be prompted to restart it for the changes to take effect. Click Yes.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>You can&#8217;t initiate a restore from netsh, but if you&#8217;ve exported the DHCP Server configuration with the dump option, you can import it elsewhere. The following command imports the configuration saved to the file dhcpconfig.dmp:</p>
<pre>&gt; netsh exec dhcpconfig.dmp</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/restoring-the-dhcp-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing Up the DHCP Database</title>
		<link>http://www.xiitec.com/blog/2008/02/22/backing-up-the-dhcp-database/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/backing-up-the-dhcp-database/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:05:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=170</guid>
		<description><![CDATA[The DHCP Server service automatically performs a backup of the DHCP database and DHCP Server registry configuration key every 60 minutes (and overwrites the previous back up). You can also perform a manual backup as outlined in the GUI solution. Backup files are stored in %SystemRoot%\system32\dhcp\backup by default, but you can change that location as [...]]]></description>
			<content:encoded><![CDATA[<p>The DHCP Server service automatically performs a backup of the DHCP database and DHCP Server registry configuration key every 60 minutes (and overwrites the previous back up). You can also perform a manual backup as outlined in the GUI solution. Backup files are stored in %SystemRoot%\system32\dhcp\backup by default, but you can change that location as described in the CLI solution. You should change this path to another drive so that a disk failure doesn&#8217;t impact both the active database and the backup files.</p>
<p><span id="more-170"></span></p>
<p>The DHCP Server takes care of performing regular database backups, but you&#8217;ll still need to use a backup tool such as NTBackup to archive those backups on a regular basis. As long as you are backing up the %SystemRoot%\system32\dhcp directory and the system state (which includes the registry), you can restore the database and server configuration on the same server or on another server if necessary.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in on the target DHCP Server.</li>
<li>In the left pane, click the server node.</li>
<li>From the menu, select Action  Backup.</li>
<li>Select the folder to store the backup files in and click OK.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>You can&#8217;t initiate a backup from netsh, but you can configure how frequently the automatic backups occur and where backup files are stored. The following command changes the default backup time to 24 hours (1,440 minutes):</p>
<pre>&gt; netsh dhcp server set databasebackupinterval 1440</pre>
<p>The following command changes the backup location to d:\dhcp\backups:</p>
<pre>&gt; netsh dhcp server set databasebackuppath d:\dhcp\backups</pre>
<p>You can also dump the DHCP Server configuration to a text file and import it later using netsh. Here is how you export it:</p>
<pre>&gt; netsh dhcp server dump &gt; dhcpconfig.dmp</pre>
<p>The dump option does not export any lease information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/backing-up-the-dhcp-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying the DHCP Database and Audit Log Paths</title>
		<link>http://www.xiitec.com/blog/2008/02/22/modifying-the-dhcp-database-and-audit-log-paths/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/modifying-the-dhcp-database-and-audit-log-paths/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[path]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=169</guid>
		<description><![CDATA[Based on your disk configuration, the default location for the DHCP Server database and audit logs may not be sufficient. In any case, you are better off moving these paths off of the system drive, especially if you have multiple disks on the server. In a high-load scenario, disk access to the DHCP database can [...]]]></description>
			<content:encoded><![CDATA[<p>Based on your disk configuration, the default location for the DHCP Server database and audit logs may not be sufficient. In any case, you are better off moving these paths off of the system drive, especially if you have multiple disks on the server. In a high-load scenario, disk access to the DHCP database can have an impact on DHCP response times. If you can move the database and logs to a separate disk, the DHCP Server won&#8217;t compete with the operating system to access the filesystem.</p>
<p><span id="more-169"></span></p>
<p>By default, the DHCP database is named dhcp.mdb. You can change this too if necessary, although not by using the DHCP snap-in. Use the following command to change the name of the database to rallencorp-dhcp.mdb:</p>
<pre>&gt; netsh dhcp server set databasename rallencorp-dhcp.mdb</pre>
<p>After modifying the database or audit log paths or the database name, you have to restart the DHCP Server service for the changes to take effect.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Right-click the server node and select Properties.</li>
<li>Click the Advanced tab.</li>
<li>Modify the audit file or database path as needed and click OK.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>The following command sets the database path to d:\dhcp:</p>
<pre>&gt; netsh dhcp server set databasepath d:\dhcp</pre>
<p>The following command sets the audit log file path to d:\dhcp\logs:</p>
<pre>&gt; netsh dhcp server set auditlog d:\dhcp\logs</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/modifying-the-dhcp-database-and-audit-log-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling DHCP Audit Logging</title>
		<link>http://www.xiitec.com/blog/2008/02/22/enabling-dhcp-audit-logging/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/enabling-dhcp-audit-logging/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 19:59:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[audit]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=168</guid>
		<description><![CDATA[After you enable auditing on a DHCP Server, all DHCP requests, database maintenance events, and various errors will be logged to a file. By default, a separate file is generated for each day of the week and stored in %SystemRoot%\system32\dhcp. The files are named DhcpSrvLog-xxx.log where xxx is the day of the week (e.g., DhcpSrvLog-Mon.log). [...]]]></description>
			<content:encoded><![CDATA[<p>After you enable auditing on a DHCP Server, all DHCP requests, database maintenance events, and various errors will be logged to a file. By default, a separate file is generated for each day of the week and stored in %SystemRoot%\system32\dhcp. The files are named DhcpSrvLog-xxx.log where xxx is the day of the week (e.g., DhcpSrvLog-Mon.log). After the first week, the previous week&#8217;s file is overwritten.</p>
<p><span id="more-168"></span></p>
<p>The events logged to the audit log (a plain text file) have the following format:</p>
<pre>ID,Date,Time,Description,IP Address,Host Name,MAC Address</pre>
<p>The DHCP Server monitors how the log files grow and the available disk space to determine if it should stop logging prematurely to prevent it from consuming too much space. There are two conditions that cause auditing to stop:</p>
<ul>
<li>When disk space runs below 20 MB on the filesystem the log files are on.</li>
<li>When a single log file reaches the preset maximum size (the default is 1 MB).</li>
</ul>
<p>Fortunately, you can modify these default values by editing the registry. There are three registry values that control DHCP Server disk monitoring located under HKLM\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameters:</p>
<p>DhcpLogDiskSpaceCheckInterval</p>
<p>This specifies the number of audit entries recorded between disk verification checks. The default is 50, which means 50 events have to be recorded before the disk verification check occurs.</p>
<p>DhcpLogFilesMaxSize</p>
<p>The maximum size in megabytes for all seven log files. By default, this is 7, which means each log file can only grow to be 1 MB before the DHCP Server stops logging for that day.</p>
<p>DhcpLogMinSpaceOnDisk</p>
<p>The minimum size in megabytes that must exist on the filesystem for logging to continue. The default is 20, which means the DHCP Server will stop logging altogether if disk space goes below 20 MB on the filesystem.</p>
<p>You may need to create these values (as REG_DWORD) if they don&#8217;t already exist.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Right-click the server node and select Properties.</li>
<li>On the General tab, check the box beside Enable DHCP audit logging.</li>
<li>Click OK.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>Surprisingly, netsh doesn&#8217;t allow you to enable DHCP audit logging. You can only modify the audit log file path. However, this setting is controlled via the registry. The following command enables auditing by setting the ActivityLogFlag value:</p>
<pre>&gt; reg add HKLM\System\CurrentControlSet\Services\DhcpServer\Parameters /v
 ActivityLogFlag /t REG_DWORD /d 1</pre>
<p>To disable auditing, use the same command except use /d 0 in place of /d 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/enabling-dhcp-audit-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Reservation</title>
		<link>http://www.xiitec.com/blog/2008/02/21/creating-a-reservation/</link>
		<comments>http://www.xiitec.com/blog/2008/02/21/creating-a-reservation/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 22:41:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[reservation]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=167</guid>
		<description><![CDATA[In some situations, it is not ideal to let hosts obtain an IP address dynamically. For example, web servers need to be referable by a friendly hostname (e.g., www.xiitec.com), which is associated with an IP address. If that IP address changes, the DNS record for the hostname also needs to change. The propagation delay while [...]]]></description>
			<content:encoded><![CDATA[<p>In some situations, it is not ideal to let hosts obtain an IP address dynamically. For example, web servers need to be referable by a friendly hostname (e.g., www.xiitec.com), which is associated with an IP address. If that IP address changes, the DNS record for the hostname also needs to change. The propagation delay while the record is updated could result in some clients getting errors when trying to access the web site. The solution for this, and any other server with DNS dependency, is to create a reservation.</p>
<p><span id="more-167"></span></p>
<p>When you create a reservation, you associate a MAC address with an IP address. You can get the MAC address for a specific network adapter by running ipconfig /all and looking beside Physical Address. After you create the reservation, the next time that network adapter requests a lease, the DHCP Server will recognize the MAC address and assign it the IP address of the reservation.</p>
<p>You may be wondering that since you have to go to the trouble of creating a reservation for servers with static IP addresses, why use DHCP at all for these hosts. The primary benefit of still using DHCP is for the auto-configuration options and the ability to change settings such as DNS Server or WINS Servers across a large number of hosts. Using DHCP means you have to configure fewer things manually on the server. However, if you are provisioning network settings another way, perhaps via group policy, this might not be enough justification.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Expand the target scope.</li>
<li>Right-click on Reservations and select New Reservation.</li>
<li>Enter the name, IP address, MAC address, and description for the reservation.</li>
<li>Click Add.</li>
<li>The reservation will now show up under Address Leases and will be marked as inactive until the target client requests a lease.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>The following is the general syntax for adding a reservation:</p>
<pre>&gt; netsh dhcp server scope <scopeid> add reservedip <reservedip> <mac_address></mac_address></reservedip></scopeid></pre>
<pre><scopeid><reservedip><mac_address></mac_address></reservedip></scopeid></pre>
<p><scopeid><reservedip><mac_address> <clientname> <clientcomment></clientcomment></clientname></mac_address></reservedip></scopeid></p>
<p>The following command creates a reservation for IP address 10.1.2.5:</p>
<pre>&gt; netsh dhcp server scope 10.1.2.0 add reservedip 10.1.2.5 000102C8B474 rallen-wxp

 "Robbie's laptop"</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/21/creating-a-reservation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing the Leases for a Scope</title>
		<link>http://www.xiitec.com/blog/2008/02/21/managing-the-leases-for-a-scope/</link>
		<comments>http://www.xiitec.com/blog/2008/02/21/managing-the-leases-for-a-scope/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 22:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[lease]]></category>
		<category><![CDATA[manage]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=166</guid>
		<description><![CDATA[If you delete a lease, you&#8217;ll also need to make sure the client isn&#8217;t actively using that IP address anymore. Simply deleting the lease on the DHCP Server makes that lease available again for other clients to use. It doesn&#8217;t actually do anything to the client itself. You can release a lease on the client [...]]]></description>
			<content:encoded><![CDATA[<p>If you delete a lease, you&#8217;ll also need to make sure the client isn&#8217;t actively using that IP address anymore. Simply deleting the lease on the DHCP Server makes that lease available again for other clients to use. It doesn&#8217;t actually do anything to the client itself. You can release a lease on the client by running ipconfig /release. Then run ipconfig /renew to request a new lease.</p>
<p><span id="more-166"></span></p>
<p>The netsh command supports a few other options for deleting leases. Instead of specifying the lease IP address, you can instead specify a hostname. The following command deletes the lease associated with the host rallen-wxp in the scope 10.1.2.0:</p>
<pre>&gt; netsh dhcp server scope 10.1.2.0 delete lease \\rallen-wxp</pre>
<p>If there are multiple leases that have been allocated to rallen-wxp, only the first one will be deleted. You can also delete all leases marked as BAD_ADDRESS (which indicates the server attempted to assign the lease IP, but some other device is using that address). The following command deletes all BAD_ADDRESS leases:</p>
<pre>&gt; netsh dhcp server scope 10.1.2.0 delete lease allbadaddresses</pre>
<p>Finally, you can delete all leases obtained by a RAS server using the following command:</p>
<pre>&gt; netsh dhcp server scope 10.1.2.0 delete lease allrasserveraddresses</pre>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li>Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Expand the target scope.</li>
<li>Click on Address Leases. The list of allocated leases will be displayed in the right pane.</li>
<li>To delete a lease, right-click the target lease in the right pane and select Delete.</li>
<li>Confirm the deletion by selecting Yes.</li>
</ol>
<p>If you are interested in scope utilization, you can view the statistics on a per-scope basis by right-clicking the scope and selecting Display Statistics.</p>
<p><strong>Using a command-line interface</strong></p>
<p>The following command displays the allocated leases for scope 10.1.2.0:</p>
<pre>&gt; netsh dhcp server scope 10.1.2.0 show clients</pre>
<p>The following command deletes the lease for IP address 10.1.2.5:</p>
<pre>&gt; netsh dhcp server scope 10.1.2.0 delete lease 10.1.2.5</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/21/managing-the-leases-for-a-scope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
