Changes

Jump to: navigation, search
Configuring DHCP Reservations using Netsh
Command completed successfully.
</pre>
 
== Configuring DHCP Conflist Detection ==
 
By default, if a DHCP server assigns an IP address to a client which conficts with another client, it is the job of the client to decline the assigned address and request that the DHCP server send another. A faster option is to enable ''DHCP Conflict Detection'' on the DHCP server, whereby the server checks that there are no conflicts associated with an IP address before it is assigned to a client. The DHCP server will repeat this process until a valid IP address is found, or a specified number of attempts to find a non-conflicting IP address is reached. The syntax to enable conflict detection and specify the number of retry attempts is as follows:
 
'''netsh dhcp server''' ''servername'' '''set detectionconflictretry''' ''no_of_attempts''
 
where ''servername'' is the name or IP address of the DHCP server and ''no_of_attempts'' is the maximum number of times the DHCP server will attempt to find a non-conflicting IP address. To disable confict detection simpy run the above command setting ''no_of_attempts'' to 0. For example:
 
<pre>
netsh dhcp server \\winserver-1 set detectionconflictretry 0
</pre>
 
== Backing Up and Restoring DHCP Configuration Information ==
 
The current configuration of a DHCP server can quickly and easily be saved and restored using the '''dump''' option of the '''netsh''' tool. This enables a server to be quickly restored to its original state in the case of a system failure, or for the configuration to be duplicated on another server.
 
For example, to back up the configuration on a local server to a file named ''DHCPconfig.cfg'':
 
<pre>
netsh dhcp server dump > DHCPconfig.cfg
</pre>
 
The configuration on a remote system may be similarly saved by specifying the name or IP address of the server:
 
<pre>
netsh dhcp server winserver-1 dump > DHCPconfig.cfg
</pre>
 
The saved configuration may be restored by executing '''netsh''' with the '''exec''' option:
 
<pre>
netsh exec DHCPconfig.cfg
</pre>

Navigation menu