Open DHCP Server is a lightweight, open-source DHCP server alternative for Windows and Linux networks that is entirely configured via a single text file. Setting it up from scratch requires downloading the software, setting a static IP, editing the .ini configuration file, and running the service.
Below is the complete step-by-step blueprint to deploy Open DHCP Server from scratch. 1. Assign a Static IP Address
Before installing any DHCP server, your host machine must have a permanent IP address so clients can always reach it.
Open network connections via the Control Panel or network settings. Select your main network interface and open its Properties.
Click Internet Protocol Version 4 (TCP/IPv4) and select Properties. Select Use the following IP address.
Enter a static IP (e.g., 192.168.1.2), subnet mask (255.255.255.0), and your gateway. Click OK to save changes. 2. Download and Install the Software
Open DHCP Server does not require heavy server management tools or active directory overhead. Navigate to the official Open DHCP Server SourceForge Page.
Download the latest installer executable (e.g., OpenDHCPServerInstaller64bitV2.01.exe). Run the installer as an administrator.
Follow the prompts to finish the wizard; it will default to installing in C:\OpenDHCPServer</code>. 3. Edit the Configuration File
Unlike native Windows DHCP, which uses graphical menus, Open DHCP Server relies on editing OpenDHCPServer.ini. Navigate to C:\OpenDHCPServer</code> using File Explorer.
Create a backup copy of OpenDHCPServer.ini before making any changes.
Open the OpenDHCPServer.ini file with a plain text editor like Notepad (run Notepad as Administrator). Configure the three essential sections:
[LISTEN_ON] ; Tell the server which static interface IP to listen on 192.168.1.2 [RANGE_SET] ; Define the pool of IP addresses to hand out to clients DHCPRange=192.168.1.10-192.168.1.200 SubnetMask=255.255.255.0 Gateway=192.168.1.1 [GLOBAL_OPTIONS] ; Define the DNS servers your clients should use DNSServer=8.8.8.8 DNSServer=1.1.1.1 LeaseTime=86400 Use code with caution. Save and close the file. 4. Run and Launch the Server
You can launch Open DHCP Server as a temporary process to test it, or permanently as a background Windows Service.
Testing Mode (Standalone): Double-click RunStandAlone.bat inside the installation folder. This launches a command window showing real-time logs. If you see errors, review your .ini syntax. Production Mode (Windows Service):
Open the Windows Start menu, type services.msc, and press Enter. Locate Open DHCP Server in the list. Right-click it and select Properties. Set the Startup type to Automatic. Click Start under the service status, then click OK. 5. Verify Client Connectivity
Once the server is running, you must verify that clients on the network can pull addresses seamlessly. Install and Configure DHCP Server in Windows Server 2022
Leave a Reply