Changes

Jump to: navigation, search
no edit summary
The previous chapter (entitled [[Configuring Windows Server 2008 DHCP Servers]]) provided an overview of running DHCP servers on Windows Server 2008 systems and outlined the mechanisms for installing, configuring and maintaining DHCP using the graphical DHCP console. Windows Server 2008 also provides the ability to perform a wide range of DHCP tasks directly from the command prompt using the '''netsh''' tool. \
This chapter of [[Windows Server 2008 Essentials]] will cover in the installation, configuration and management of DHCP on Windows Server 2008 from the command line.
DHCP scopes may be configured from the command prompt using the netsh
tool. netsh may be run as a single command, or interactively. To runinteractively. To run in interactive mode follow these steps:
1. At the command prompt enter netsh.
== Activating and Deactivating DHCP Scopes using Netsh ==
<google>ADSDAQBOX_FLOW</google>
DHCP scopes must be activated before they can be used and may also be deactivated at any time. Both of these tasks may be performed at the command prompt using the '''netsh'' tool. For example, to activate a scope the following command line syntax is used:
'''netsh dhcp server''' ''serverID'' '''scope''' ''subnetID'' '''state''' ''status''
where ''serverID'' is the name or IP address of the computer running the DHCP server, ''subnetID'' is the network ID of the subnet on which the scope is to be configured, and ''status'' is either 1 or 0 depending on whether the scope is to activated (1) or deactivated (0). On a switched network with multiple virtual networks are and hosts on a single network use 2 and 3 respectively to deactivate and activate the scope.
== Terminating a DHCP Lease using Netsh ==
</pre>
== Configuring DHCP Conflist Conflict 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 conflict detection simpy simply run the above command setting ''no_of_attempts'' to 0. For example:
<pre>

Navigation menu