Using Netsh Commands for DHCP

Netsh is a utility that provides command-line and scripting abilities to Windows 2000. It can be used to manage many of the Windows 2000 networking components, such as routing, interfaces, RAS, DHCP, and WINS.

Netsh operates in three command modes:

Online

In online mode, Netsh processes commands immediately as they are entered at the Netsh command prompt.

Offline

In offline mode, commands are collected by Netsh. When the user issues the commit global command, Netsh executes the collected commands as a script. The user can also discard collected commands by issuing the flush command.

Script

A script file containing Netsh commands can be executed by issuing the exec command at the Netsh command prompt or by using netsh -f scriptfile.

Netsh can support multiple Windows 2000 networking components through the use of Netsh helper DLLs. These helper DLLs extend the functionality of Netsh by providing commands that are specific to a particular networking component. These commands allow Netsh to be used in monitoring or configuring the networking component.

To view the currently loaded helper DLLs, enter the following command at the Netsh command prompt:

netsh> show helper

A list like the following is displayed:

Command Helper GUID DLL Filename ---------------------------------------------------------------------------- routing {65EC23C0} IPMONTR.DLL interface {0705ECA1} IFMON.DLL ras {0705ECA2} RASMONTR.DLL dhcp {0F7412F0} DHCPMON.DLL wins {BF563723} WINSMON.DLL aaaa ...

Get DHCP for Windows 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.