Professional Documents
Culture Documents
Netsh
Netsh
Netsh
php/Managing_a_Windows_Server_2008_DHCP_Server_from_t
he_Command_Line
To list the current reserved IP addresses for a particular scope the following netsh command may be
used:
C:\Users\Administrator>netsh dhcp server \\winserver-2 scope 192.168.2.0 show
reservedip
Changed the current scope context to 192.168.2.0 scope.
===============================================================
Reservation Address Unique ID
== 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
The configuration on a remote system may be similarly saved by specifying the name or IP address
of the server:
netsh dhcp server winserver-1 dump > DHCPconfig.cfg
The saved configuration may be restored by executing netsh with the exec option:
netsh exec DHCPconfig.cfg
set detectionconflictretry 0
The configuration on a remote system may be similarly saved by specifying the name or IP address
of the server:
netsh dhcp server winserver-1 dump > DHCPconfig.cfg
The saved configuration may be restored by executing netsh with the exec option:
netsh exec DHCPconfig.cfg