DHCP Relay Agent: Configuration in Windows Server 2016

-

|

What is a DHCP Relay Agent?

A DHCP Relay Agent allows DHCP clients in a different network subnet to lease IP addresses from a DHCP server in a another network.

DHCP clients can only lease IP addresses from a DHCP server in its subnet. However, by installing a DHCP Relay agent, clients in other subnets can lease addresses.

The diagram below is the setup I used for this guide.

Advertisement

The DHCP server is on the same subnet with PC1Win10 (Windows 10 computer) so it can lease an IP address.

In comparison, PC2Win10 is in a different subnet so it cannot lease IP address from the DHCP Server. For PC2Win10 to lease an IP address, it requires a Relay Agent (RolesSRV2) to talk to the DHCP Server (RolesSRV2).

In Windows Server 2016, Remote Access role is required to configure DHCP Relay Agent.

Steps to Install and Configure DHCP Relay Agent in Windows Server 2016

This guide covers these steps:

  1. Install Remote Access (RRA) Role in Windows Server 2016
  2. Configure Routing and Remote Access
  3. Configure DHCP Relay Agent
Important Note
A DHCP server with a working scope is required. This is NOT covered in this guide.

1
Install Remote Access Role in Windows Server 2016

To install Remote Access:

  • Log on to the server and open Server Manager.
  • Then click Manage and select Add Roles and Features.

Advertisement


DHCP Relay Agent - install Remote Access Role
  • On the Before you begin screen, click Next.
  • Select Role-based or feature-based installation and click Next.
  • Next, on the Select Destination server page, select the server you wish to install Windows Deployment Services Role.
  • On the Server Role page, check the box beside Remote Access then click Next.
  • On the Select Features page, click Next.
  • Then on the Remote Access page, click Next.
DHCP Relay Agent
  • On the Select Role service, check the box beside Routing. A window pops asking whether to add features required for routing? Click Add Features.
DHCP Relay Agent
DHCP Relay Agent
  • You are returned to the Select role services page. Confirm that DirecttAccess (RAS) and Routing roles are selected. Then click Next.
DHCP Relay Agent
  • On the confirmation page, review the features you selected. Then click Install.

Advertisement


2
To Prepare for DHCP Relay Agent Configuration, Configure Routing and Remote Access.

Before you configure DHCP Replay Agent, you have to configure Routing and Remote Access first.

Follow the steps below:

  • From Server Manager, click Tools, then select Routing and Remote Access.
dhcp relay agent
  • On the Routing and Remote Access MMC, right-click your server then click Configure and Enable Routing and Remote Access.
  • On the Welcome page, click Next.
  • The Configuration page opens. Select the last option, Custom Configuration. Then click Next.
  • On the Custom Configuration page, check the box beside LAN routing. Click Next. Then on the confirmation page, click Finish.
DHCP Relay Agent - Configure Roting
  • A pop up appears prompting you to start Routing and remote access service. Click Start Service. Then wait for the service to start.
  • Routing and Remote Access is now Configured. We are now ready to set up DHCP Relay Agent!

Advertisement


3
Finally, Configure DHCP Relay Agent

  • Expand IPv4, then right-click General and select New Routing Protocol.
dhcp relay agent
  • On the New Routing Protocol window, select DHCP Relay Agent. Then click Ok.
dhcp relay agent
dhcp relay agent

We are not done yet. Next step is to select the network interface.

  • Right-click DHCP Relay Agent and select New Interface.
dhcp relay agent
  • On the New Interface for DHCP Relay Agent, select the network interface. Then click Ok.
Tip
Your network interfaces may be different. It will depend on the names of the network cards you have on the server.
  • When you click Ok in the last task, the properties of the network interface card opens for configuration. Accept the defaults then click Ok.

Hop-Count Threshold: The total number of devices that the packets should pass through as they travel from the source to the destination. In this instance the hop-count defines the number of DHCP Relay Agents the DHCP traffic is allowed to hop through.

Boot threshold (seconds): The number of seconds the relay agent ways before forwarding the message.

Your Relay Agent needs to know the DHCP server to contact when it receives a request. So the final step in this setup is to add the IP address of the Server to the Relay Agent procol.

To do this:

  • Right-click DHCP Relay Agent protocol.
  • Then select Properties
  • Next, beneath Server address enter the IP address of DHCP server and click Add.
  • To save your changes, click Ok.

Now, when you run ipconfig /renew on a client in the subnet outside the DHCP server’s subnet, the client will lease an IP.

Conclusion

There you have it. Clients can now lease IP address from DHCP server outside their own network.

If you are having troubles getting your configuration to work, read this guide – DHCP Relay Agent Windows Server 2016 Not Working [Fixed].

I will appreciate you comments. Kindly provide feedback using the “Leave a Reply” form at the end of this page. Let me know your thoughts on this article. You could also share your experience for other readers to benefit from.

Other Helpful Tutorials

Additional Resources and References

LEAVE A REPLY

Please enter your comment!
Please enter your name here

FEATURED POSTS

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...

How to Map Network Drive in Windows 10 (5 Methods)

Introduction This guide demos 5 methods to Map Network Drive in Windows 10. Options to...
How to Install Windows 10 1909 Preview Build

How to Install Windows 10 19H2 Preview Build

Introduction If you are a member of Windows 10 Insider Program you can install Windows 10 19H2 Preview Build....

How to Sign in to Windows 10 with a Microsoft Account

Introduction When you installed Windows 10 you may have created and signed in with a local account. You can...
Disable IPv6 in Windows 10

How to Disable IPv6 in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to disable IPv6 in Windows 10: Disable IPv6 from...

Advertisement

TRENDING POSTS

Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...

Find My Samsung: Register and Use Samsung Find my Mobile

Introduction Ever wondered how you could find your Samsung phone if you lost it? Find my Samsung or Samsung...
What is the Difference Between PowerShell and CMD?

Windows Powershell vs CMD: Differences and Similarities

Introduction This short guide compares Windows PowerShell vs CMD (Windows command prompt). I will cover the history and nature...
Spotify No Longer Supports this Version of Microsoft Edge

Spotify No Longer Supports this Version of Microsoft Edge [Fixed]

Introduction When you open Spotify web player on Microsoft Edge, you may receive the error message "Spotify No Longer...
Windows 10 Won't Boot

Windows 10 Won’t Boot With Black Screen? 3 Ways to Fix It

Why Won't Windows 10 Boot Up? If your Windows 10 stops with a black screen, the first question in...

Advertisement

BEST OF ITECHGUIDES

RAID 3 (Redundant Array of Independent Disks) Explained

RAID 3 (Redundant Array of Independent Disks) Explained

What is RAID 3? RAID 3 is a RAID implementation that uses striping with a dedicated parity disk....
windows system32 config systemprofile desktop is unav

How to Fix “C:WINDOWSsystem32configsystemprofileDesktop Is Unavailable” Error in Windows 10

Introduction You may receive the error message "WINDOWS system32 config systemprofile Desktop is unavailable" after upgrading to Windows 10....
DHCP Relay agent

DHCP Relay Agent: Configuration in Windows Server 2016

What is a DHCP Relay Agent? A DHCP Relay Agent allows DHCP clients in a different network subnet to...
windows 10 keeps going to sleep

What to Do If Windows 10 Keeps Going to Sleep

Introduction It can be frustrating if suddenly your Windows 10 keeps going to sleep. You have to log back...

How to Install Windows 10 from Network Boot (Via WDS Server)

Introduction This guide demos how to install Windows 10 from network boot. The steps discussed in...

RECENT POSTS

How to Enable Hyper-V in Windows 10 (3 Methods)

How to Enable Hyper-V in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to enable Hyper-V in Windows 10. To install Hyper-V...
RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

Introduction Starting from October 2018 (1809) update, RSAT Tools became part of Windows 10. From this version of Windows...

How to Enable RSAT for Active Directory in Windows 10 (3 Methods)

Introduction This guide demos 3 methods to enable Active Directory in Windows 10. It is not exactly enabling "Active...
How to Install Windows 10 1909 Preview Build

How to Install Windows 10 1909 (19H2) Preview Build

Introduction Windows 10 1909 Preview is available for Windows Insiders. Made available early September, 2019 you have to be...
How to Install RSAT in Windows 10 (3 Methods)

How to Install RSAT in Windows 10 (3 Methods)

Introduction This guide demos how to Install RSAT in Windows 10. Starting with Windows 10...

How to Share a Folder in Windows 10 (3 Methods)

Introduction This guide demos how to share folder in windows 10. It covers 3 methods. Options...
Configure Map Network Drive with Group Policy

Map Network Drive in Windows 10 with Group Policy

Introduction This guide demos how to map network drive with group policy. This guide is...

How to Map Network Drive in Windows 10 (5 Methods)

Introduction This guide demos 5 methods to Map Network Drive in Windows 10. Options to...
How to Download Windows 10 ISO with Media Creation Tool

How to Download Windows 10 ISO with Media Creation Tool

Introduction This guide demos the steps to download Windows 10 ISO. You can download Windows 10 ISO with Media...

How to Install Windows 10 from Network Boot (Via WDS Server)

Introduction This guide demos how to install Windows 10 from network boot. The steps discussed in...

Advertisement

MUST READ

Spotify Playlists

How to Find, Download or Share Spotify Playlists

Introduction This quick guide will show you step by step how to find, download or share Spotify Playlists. You...
Powershell_Arrays

PowerShell Array and Add to Array: Applications and Examples

What is a PowerShell Array? A PowerShell array is a data structure that stores a collection of items. The...
Windows Cannot Find GPEDIT.MSC or GPEDIT.MSC Not Found [Fixed]

Windows Cannot Find GPEDIT.MSC or GPEDIT.MSC Not Found [Fixed]

Introduction If you try opening gpedit.msc from Windows 10 Home you will receive the error message windows cannot find...
routing and remote access windows server 2016

Routing and Remote Access in Windows Server 2016 (Part 1): Install Remote Access Role

Introduction This is the first of a 4-part "Routing and Remote Access in Windows Server 2016" series.
0xc000021a: Status System Process Terminated Error [Fixed]

0xc000021a: Status System Process Terminated Error [Fixed]

Introduction You may receive "0xc000021a (STATUS_SYSTEM_PROCESS_TERMINATED)" error after installing a new device on your Windows computer. You may also...

By using this website you agree to accept our Privacy Policy and Terms & Conditions