LKBEN10618: Howto configure a dhcp server from the command line or from a remote system


You need to script your dhcp server configuration




You can use a command line or create a cmd file and execute it accordingly.
In the following commands the DHCP server is, the Router is and the range we want to create runs

from 100 till 200. The DNS servers are and

netsh Dhcp Server add scope "Lubby DHCP Range" "Lubby DHCP Range"
netsh Dhcp Server Scope set state 0
netsh Dhcp Server Scope Add iprange
netsh Dhcp Server Scope set optionvalue 51 DWORD "691200"
netsh Dhcp Server Scope set optionvalue 3 IPADDRESS ""
netsh Dhcp Server Scope set optionvalue 6 IPADDRESS "" ""


The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.