O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

netsh/DHCP Context

Synopsis

Configures DHCP servers.

Subcontexts

Server
Scope
Mscope

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 5-8.

Note that the scope and mscope commands enter new subcontexts. The Scope context configures a specific scope on the server, and Mscope configures multicast scopes. The commands available in these subcontexts are shown in Table 5-9 and Table 5-10.

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>

Note

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 DHCP server context (dhcp server>), which is a subcontext for a particular ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required