Thursday, June 30, 2011

AN Lesson-5

Managing DHCP in Windows Networks

Q. Discuss how to manage DHCP from a command line. List the steps involved in using DHCP  commands interactively at the command prompt.

Changing DCHP Server Status

i. DHCP Console
To start or stop a DHCP server, complete the following steps:
1. Open the DHCP console.
2. In the console tree, select the applicable DHCP server.
3. On the Action menu, point to All Tasks and then select one of the following:
To start the service, select Start.
To stop the service, select Stop.
To interrupt the service, select Pause.
To continue a service after it has been paused, select Resume.
To stop and then automatically restart the service, select Restart.

ii. Command-Line Interface
You can also start, stop, pause, and resume the DHCP Server service by executing the
following commands, respectively, at the command prompt.
■ Net Start Dhcpserver
■ Net Stop Dhcpserver
■ Net Pause Dhcpserver
■ Net Continue Dhcpserver

iii. Services Console
  • The Services console is a graphical administration tool that you can open by clicking Start, selecting Administrative Tools, and then clicking Services. 
  • To access controls for the DCHP Server service, double-click the DHCP server node in the list of services in the details pane. This procedure opens the DHCP Server Properties dialog box, shown in Figure below.



















  • The Services console offers an important addition to the Start, Stop, Pause, and Resume controls available in both the DHCP console and the command-line interface.
  • In the Startup Type drop-down list, you can select the Disabled option. When this option is selected, the service cannot be started until the setting is changed.

Managing DHCP from a Command Line
  • Windows Server 2003 includes the Netshell (Netsh) command-line environment
  • To enter the Netsh command-line environment, you simply execute the Netsh command at a command prompt. This procedure opens the Netsh> prompt. To access the DHCP administration interface, execute the DHCP command at the Netsh> prompt to enter the dhcp context. This process is illustrated here:
C:\>netsh
netsh>dhcp
netsh dhcp>

To use DHCP commands interactively at the command prompt, complete the following
steps:
1.         Open a command prompt.
2.         Enter netsh.
3.         At the Netsh> command prompt, enter dhcp.
4.         At the Netsh dhcp> command prompt, enter either server <\\servername> or
server <ip_address> for the server you want to manage. To manage the local
server, simply type server.
5.         Once connected, you can use any supported Netshell command for DHCP.
Type /? or help to display the immediate DHCP subcommand menu, or enter list
to list all Netshell subcommands available for use with DHCP.

No comments:

Post a Comment