14.8. Configuring Scope Options


You want to configure scope options. While you want to configure as many options as possible at the server level, some options that are specific to a scope need to be configured within the scope. An example of this is the default router option (code 3) when you have multiple subnets and only one DHCP Server.


Using a graphical user interface

  1. Open the DHCP snap-in.

  2. In the left pane, right-click on DHCP and select Add Server.

  3. Type in the name of the DHCP Server you want to target and click OK.

  4. Expand the server entry in the left pane.

  5. Expand the scope you want to set options for.

  6. Click on the Scope Options icon. In the right pane, you will see the list of options currently configured for the scope. This will include any server options that have been configured.

  7. To modify an option, double-click it in the right pane. To configure a new scope option, right-click on the Scope Options icon and select Configure Options.

  8. Check the box beside the option you want to configure. This will make the Data entry section of the dialog box active.

  9. Enter the value(s) for the option and click OK.

Using a command-line interface

The following command configures a scope option:

> netsh dhcp server \\<ServerName> scope <SubnetID> set optionvalue <OptCode> 

In this example, the "default router" option (code 3) is configured with a value of

> netsh dhcp server \\dhcp01 scope set optionvalue 3 IPADDRESS

You can ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.