Configure DHCP Relay Agent

Extracted by Vichhaiy

 

Def: The DHCP Relay Agent component relays DHCP messages between DHCP clients and DHCP servers on different IP networks.

Note: You cannot use the DHCP Relay Agent component on a computer that is running the DHCP service, the network address translation (NAT) routing protocol component with automatic addressing enabled, or Internet Connection Sharing (ICS).

 

DHCP server with DHCP relay agent in windows 2012 server

If you have two different networks and you don’t want to install a DHCP Server on each side you can use “DHCP Relay Agent” Service.


Here a quick tutorial: 
1. DHCP-Server 
    Install “DHCP-Server” Role

2. Configure DHCP Scopes 
    Scope A 192.168.10.11-192.168.10.253 
    Scope B 192.168.11.11- 192.168.11.253

3. Router 
    Should have two Network cards. For each network one. 
    Network A IP: 192.168.10.254/24 
    Network B IP: 192.168.11.254/24

4. Install “Remote Access” Role

5. Run “Routing and Remote Access”

6. “Configure and Enable Routing and Remote Access”

7. Choose “Custom Configuration”

8. Choose “LAN routing” and start the service

9. Install the DHCP Relay Agent 
    Right Click on General in IPv4 and choose “New Routing Protocol” and there you can finally choose “DHCP Relay Agent”.

10. Right Click on” DHCP Relay Agent” and choose “Properties”. There you add your DHCP Server. In this case it would be 192.168.10.10.

11. Add the Network B Interface to the “DHCP Relay Agent”.

12. You should be done. In Windows 2008 it’s possible that you need to make adjustments to your Windows Firewall.

13. You can test on your client to get an IP Adress. Run from the command console: Ipconfig /release and Ipconfig /renew.  
    

After that you should be able to see the IP address if you type: ipconfig.

 

Ref:

http://patrick.eviltools.com/dhcp-server-with-dhcp-relay-agent-in-windows-2012-server/

http://technet.microsoft.com/en-us/library/dd469685.aspx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s