ITGeeksHub

How to Install and Configure DHCP on Windows Server

DHCP simplifies network management by automating device connections without manual configuration. To install it on Windows Server, one must have a compatible server and administrative access. The process involves installing the DHCP role, configuring scopes, and testing the setup. Troubleshooting tips include ensuring the service runs and verifying address ranges.

“DHCP is the unsung hero of network management, ensuring that every device seamlessly connects and communicates without the burden of manual configuration.”

Installing and Configuring DHCP on Windows Server

Installing and Configuring DHCP on Windows Server

Prerequisites

  • A server running Windows Server (2016, 2019, or later).
  • Administrative access to the server.
  • Static IP address configured on the server.

Step 1: Install the DHCP Server Role

  1. Open Server Manager:

    Click on the Start button, then select Server Manager.

  2. Add Roles and Features:

    In the Server Manager dashboard, click on Add roles and features.

  3. Role-Based or Feature-Based Installation:

    In the wizard, select Role-based or feature-based installation and click Next.

  4. Select Destination Server:

    Select the server you want to install DHCP on and click Next.

  5. Select Server Roles:

    Check the box for DHCP Server and click Next.

  6. Features:

    Click Next as no additional features are needed for basic DHCP functionality.

  7. DHCP Server:

    Read the information about DHCP Server and click Next.

  8. Confirmation:

    Review your selections and click Install.

  9. Installation Progress:

    Wait for the installation to complete. Click Close when done.

Step 2: Configure the DHCP Server

  1. Open DHCP Management Console:

    In Server Manager, click on Tools and select DHCP.

  2. Authorize DHCP Server:

    Right-click on the DHCP server in the left pane and select Authorize. This step is crucial for the server to operate properly.

  3. Create a New DHCP Scope:

    Right-click on IPv4 and choose New Scope.

    1. Scope Name:

      Enter a name and description for the scope, then click Next.

    2. IP Address Range:

      Specify the starting and ending IP addresses for the scope and click Next.

    3. Subnet Mask:

      Select or enter the subnet mask, then click Next.

    4. Add Exclusions:

      Specify any IP addresses that should be excluded from the scope, then click Next.

    5. Lease Duration:

      Set the duration of the lease (default is 8 days) and click Next.

    6. Configure DHCP Options:

      You can configure options like the router, DNS servers, etc. Select Yes, I want to configure these options now and click Next.

    7. Router (Default Gateway):

      Enter the IP address of the router and click Add, then click Next.

    8. Domain Name and DNS Servers:

      Enter the domain name and DNS server addresses (if applicable) and click Next.

    9. WINS Server:

      Enter any WINS server information if needed and click Next.

    10. Activate Scope:

      Choose to activate the scope and click Next.

    11. Completing the New Scope Wizard:

      Review your settings and click Finish.

Step 3: Testing the Configuration

  1. Connect a client to the network:

    Connect a device to the same network.

  2. Obtain IP Address:

    On the client device, request an IP address (typically by connecting to the network).

  3. Verify IP Configuration:

    Open a command prompt and type ipconfig /all to see if the device has received an IP address from the DHCP server.

Troubleshooting Tips

  • Ensure the DHCP service is running on the server.
  • Double-check the authorization of the DHCP server.
  • Check that the IP address range is not exhausted.
  • Verify that client devices are on the same subnet and can reach the server.

Leave a Reply