Configure DHCP options using Netsh

by Mitch Tulloch [Published on 5 Aug. 2009 / Last Updated on 6 March 2009]

You can use the Netsh command to configure DHCP options from the command line.

You can use the Netsh command to configure DHCP options from the command line. DHCP options are additional information a DHCP server provides to clients that lease addresses. This additional info typically includes the default gateway address, DNS server addresses, DNS domain names, and WINS server addresses. DHCP options can be configured at the server, scope or reservation level.

For example, to configure a scope option that assigns as the default gateway address to clients that lease addresses from the scope, use the following command:

netsh dhcp server scope set optionvalue 003 IPADDRESS

To verify the result, type this command:

netsh dhcp server scope show optionvalue

If you want to assign the option at the server level instead of the scope level, use this instead of the first command above:

netsh dhcp server set optionvalue 003 IPADDRESS

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see .

Latest Contributions

Featured Links