Name

dhcp Context

Synopsis

Configures DHCP servers.

Subcontexts

Server
Scope
Mscope

Commands

? or help

Displays these commands.

list

Lists available DHCP commands (more verbose than help).

dump

Dumps the configuration of the DHCP server as a series of Netshell commands.

add server [ servername | serveraddress ]

Adds a DHCP server to the list of authorized DHCP servers stored in Active Directory. You can specify either the DNS name or IP address of the server.

delete server [ servername | serveraddress ]

Removes a DHCP server from the list of authorized DHCP servers.

show server

Lists all authorized DHCP servers in the current domain.

server [\\ servername | serveraddress ]

Enters the subcontext for the specified DHCP server, which enables you to configure the DHCP server using the add, delete, initiate, scope, mscope, set, and show commands. These commands and their options are summarized in Table 7.4.

Note that the scope and mscope commands enter new subcontexts. The Scope context is used for configuring a specific scope on the server, and Mscope is used for configuring multicast scopes. The commands available in these subcontexts are shown in Table 7.5 and Table 7.6.

Tip

You can tell what context you are currently in by the command prompt during a Netshell session. For example:

C:\>netsh
netsh>dhcp
dhcp>server \\mydhcp
dhcp server>

In the previous example, you move from the Windows command shell to the Netshell global context (netsh>), then to the DHCP context (dhcp>), and finally to the ...

Get Windows 2000 Administration in a Nutshell 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.