Setting up a DHCP server on Windows 11 enables automatic IP address assignment to devices on your local network, eliminating the need for manual configuration and reducing IP conflicts. This is useful for home labs, small offices, or testing environments where centralized network management is desired. Before beginning, ensure you have administrator privileges on the Windows 11 machine and a static IP address configured on the network adapter that will serve DHCP clients.
What You'll Need
- Windows 11 Pro, Enterprise, or Education edition (DHCP Server role is not available in Home edition)
- Administrator account access
- A network adapter with a static IPv4 address (not using DHCP itself)
- Basic understanding of IP addressing, subnets, and gateway configuration
Step-by-Step
- Open Server Manager by pressing Win + X and selecting Server Manager from the menu. If Server Manager does not appear, search for it in the Start menu.
- In Server Manager, click Manage in the top-right corner, then choose Add Roles and Features to launch the wizard.
- Click Next on the Before You Begin page.
- Select Role-based or feature-based installation and click Next.
- Choose Select a server from the server pool, ensure your local machine is selected, and click Next.
- In the Server Roles list, check the box for DHCP Server. A pop-up will appear asking to add required features—click Add Features, then Next.
- Skip the Features page by clicking Next (no additional features are required for basic DHCP).
- On the DHCP Server page, read the information and click Next.
- Click Install to begin the installation. Wait for the process to complete—this may take several minutes.
- Once installation finishes, click Close on the wizard.
- Return to Server Manager, click Tools in the top-right menu, and select DHCP to open the DHCP Management Console.
- In the DHCP console, expand your server name (e.g., WIN11-DHCP01) under the tree pane.
- Right-click IPv4 under your server name and choose New Scope to start the New Scope Wizard.
- Click Next on the Welcome screen.
- Enter a name for the scope (e.g., Office Network) and an optional description, then click Next.
- Define the IP address range: enter a Start IP address (e.g., 192.168.1.100) and End IP address (e.g., 192.168.1.200), then click Next.
- Enter the Subnet mask (e.g., 255.255.255.0) — the wizard may auto-fill this based on the range; verify it is correct, then click Next.
- Optionally exclude any IP addresses (e.g., for static devices like printers or routers) by entering a range or single address, then click Next. If no exclusions are needed, simply click Next.
- Set the lease duration (default is 8 days; adjust if needed for your network), then click Next.
- Choose Yes, I want to configure these options now to set router, DNS, and other settings, then click Next.
- Enter the Router (gateway) IP address (e.g., 192.168.1.1) — this is the device clients will use to reach other networks or the internet, then click Next.
- Enter the Parent domain (e.g., example.local) if applicable, then click Next.
- Add at least one DNS server IP address (e.g., 192.168.1.10 or a public DNS like 8.8.8.8), then click Next. You can add multiple DNS servers.
- Skip WINS configuration unless your network requires it — click Next.
- Select Yes, I want to activate this scope now and click Next.
- Click Finish to complete the scope creation.
- Back in the DHCP console, right-click IPv4 under your server name and choose Authorize. This step is required in Active Directory environments; if your machine is not domain-joined, authorization may not be needed, but it is safe to perform.
- Test the DHCP server by connecting a client device (e.g., a laptop or phone) to the network and confirming it receives an IP address from the defined range via its network settings.
Common Mistakes
- Forgetting to set a static IP on the server’s network adapter before installing DHCP — if the server uses DHCP itself, it may lose connectivity when assigning addresses.
- Choosing an IP range that overlaps with the router’s DHCP pool, causing conflicts — disable the router’s DHCP server if using Windows DHCP exclusively.
- Setting an incorrect subnet mask, which prevents clients from communicating with the gateway or other devices.
- Neglecting to authorize the DHCP server in a domain environment, leading to clients not receiving leases due to security policies.
- Setting an excessively short lease time (e.g., under 1 hour) on a stable network, causing unnecessary renewal traffic.
- Failing to configure DNS settings, resulting in devices that can connect via IP but cannot resolve domain names.
Tips
- Use a reserved IP address (via DHCP reservations) for devices that need a consistent IP, such as network printers or servers, while still benefiting from centralized management.
- Document your scope settings (range, gateway, DNS, exclusions) in a text file or network diagram for future reference.
- If running Windows 11 in a Hyper-V virtual machine for testing, ensure the virtual switch is set to Internal or Private network mode to isolate DHCP traffic.
- Monitor DHCP leases in the management console under IPv4 > [Scope Name] > Address Leases to troubleshoot connectivity issues.
- Consider enabling DHCP logging (via Properties > Advanced) if diagnosing lease assignment problems.
- Always back up your DHCP configuration (via Action > Backup) before making major changes, especially in production-like environments.
Troubleshooting
- Client not receiving an IP address: First, ensure the client is connected to the correct network and that the Windows DHCP service is running (check via Services.msc). Verify the scope is activated and authorized. Check for IP range conflicts with other DHCP servers on the network.
- Clients getting APIPA addresses (169.254.x.x): This indicates no DHCP response. Confirm the server’s network adapter is functioning, the static IP is correct, and firewall rules are not blocking UDP ports 67 and 68.
- Clients can’t reach the internet: Double-check the router (gateway) setting in the DHCP scope — it must be the correct internal IP of your router, not an external DNS or placeholder.
- DNS resolution failing: Verify the DNS server entries in the scope are correct and reachable. Test by manually setting a known-good DNS (like 1.1.1.1) on a client to isolate the issue.
- DHCP service fails to start: Check the Event Viewer under Windows Logs > System for errors from the DHCP service. Common causes include another DHCP server already active on the network or a missing dependency.
- After changes, clients still have old settings: Run
ipconfig /releasefollowed byipconfig /renewon the client, or wait for the lease to renew (half the lease time).
Frequently Asked Questions
Can I set up a DHCP server on Windows 11 Home?
No, the DHCP Server role is only available in Windows 11 Pro, Enterprise, and Education editions. Home edition lacks the necessary role services.
Do I need to disable my router’s DHCP server?
Yes, if you are using the Windows DHCP server as the primary IP address provider. Having two DHCP servers on the same network without proper configuration (like split-scoping) can cause conflicts and inconsistent address assignment.
What IP range should I use for my DHCP scope?
Use a private IP range that does not conflict with your router or other network devices. Common choices are 192.168.1.0/24, 192.168.0.0/24, or 10.0.0.0/24, but ensure the range excludes the router’s IP and any statically assigned devices.
How do I reserve an IP address for a specific device?
In the DHCP console, expand your scope, right-click Reservations, choose New Reservation, enter a name, the desired IP address, and the device’s MAC address (found via ipconfig /all on the device), then save.
Is a domain controller required for DHCP to work?
No, a domain controller is not required. The DHCP server can operate in a workgroup environment. However, authorization in Active Directory is only needed if the server is domain-joined; otherwise, it can function independently.
Can I run DHCP and a VPN server on the same Windows 11 machine?
Yes, Windows 11 can host multiple network roles, including DHCP and VPN (via Routing and Remote Access), as long as network adapter settings and IP assignments do not conflict. Ensure each service listens on the appropriate interfaces and that firewall rules allow necessary traffic.