ITGeeksHub

How to Install and Configure DHCP in Windows Server 2022



Guide to Install and Configure DHCP in Windows Server 2022

Guide to Install and Configure DHCP in Windows Server 2022

Step 1: Install DHCP Server Role

  1. Open the **Server Manager**.
  2. Click on **Manage** in the top right corner and select **Add Roles and Features**.
  3. In the **Add Roles and Features Wizard**, click **Next**.
  4. Select **Role-based or feature-based installation** and click **Next**.
  5. Select the desired server from the server pool and click **Next**.
  6. In the **Server Roles** section, check the box for **DHCP Server**.
  7. Click **Next** and then **Install** to begin the installation.
  8. After the installation completes, click **Close**.

Step 2: Authorize DHCP Server

  1. In **Server Manager**, click on **Tools** and select **DHCP**.
  2. In the **DHCP console**, right-click on **DHCP** and select **Manage Authorizations**.
  3. In the **Manage Authorized Servers** window, right-click and select **Authorize**.

Step 3: Create a DHCP Scope

  1. In the **DHCP console**, right-click on **IPv4** and select **New Scope**.
  2. Follow the wizard:
    • **Name**: Enter a name for the scope.
    • **Description**: Optionally provide a description.
    • **IP Address Range**: Specify the start and end IP addresses for the scope.
    • **Subnet Mask**: Configure the subnet mask.
    • **Exclusions**: Define any IP addresses to exclude from the DHCP range.
    • **Lease Duration**: Set the lease duration as per your requirement.
    • **Activate Scope**: Choose to activate the scope at the end of the wizard.

Step 4: Configure Additional DHCP Options

  1. In the **DHCP console**, expand your newly created scope.
  2. Right-click on **Scope Options** and select **Configure Options**.
  3. Enable and configure the following options as needed:
    • 003 Router: Specify the IP address of your router.
    • 006 DNS Servers: List the IP addresses of your DNS servers.
    • 015 DNS Domain Name: Enter the domain name for the DHCP clients.
  4. Click **OK** to apply the options.

Step 5: Test DHCP Configuration

  1. On a client computer, release and renew IP address using the following commands in the Command Prompt:
  2. Verify that the client receives an IP address from the DHCP scope.
  3. Check the DHCP console to confirm that the client has been assigned an IP address.

Step 6: Monitor DHCP Server

You can monitor the DHCP server through:

  • **DHCP console**: View leases, scopes, and statistics.
  • **Event Viewer**: Check logs for any issues or errors related to DHCP.

Conclusion

You have successfully installed and configured the DHCP server on Windows Server 2022. This will allow the server to assign IP addresses to clients dynamically, and the additional options can be configured to suit your network’s needs.

© 2023 Guide to Install and Configure DHCP in Windows Server 2022

Leave a Reply