Recipe 14.7. Activating or Deactivating a ScopeProblemYou want to activate or deactivate a scope. A DHCP Server will not respond to lease requests for a given scope unless that scope is activated. When you deactivate a scope, you prevent clients from obtaining leases from it. SolutionUsing a graphical user interface
Using a command-line interfaceThe following command activates a scope: > netsh dhcp server \\<ServerName> scope <SubnetID> set state 1 And this command deactivates a scope: > netsh dhcp server \\<ServerName> scope <SubnetID> set state 0 Using VBScriptSee the Introduction for more information on how to run the netsh command from within a script. DiscussionOnce you create a scope, you have to activate it before clients can obtain leases from it. But before you activate a scope, be sure to configure any necessary scope options. If you activate a scope before configuring options, clients may obtain leases, but still not be able to communicate on the network if settings such as the default router are not set.
See AlsoRecipe 14.5 and Recipe 14.8 |