10 minutes with Windows Server simple to build DHCP Relay Agent!!

Source: Internet
Author: User

for 10 minutes Windows Simple Server Setup DHCP Relay Agent!!


First, what is a relay agent?

we all know that. IP broadcasts are required for DHCP- assigned addresses , but broadcasts cannot be made between two network segments. So How do clients that are not on the same network segment as the DHCP server get the corresponding IP address? At this point, the DHCP Relay Agent will be used.

in another The DHCP Relay Agent can be implemented by installing a simple server "role" with two NICs on Windows server !


Second, the experimental extension map

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9D/C7/wKioL1mF4wDhOnysAAE-p2nGpZY634.png "title=" 00. PNG "alt=" Wkiol1mf4wdhonysaae-p2ngpzy634.png "/>


Third, the experimental steps


1. Configuring the DHCP server


1.1),Note that when you configure a static IP on the DHCP server , the gateway points to the relay proxy server!

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9D/C7/wKioL1mF41uDrqgvAACbJv6ddvU865.png "title=" 01. PNG "alt=" Wkiol1mf41udrqgvaacbjv6ddvu865.png "/>


1.2), install the DHCP role, and configure two assignable scope options!

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/C8/wKiom1mF47nywbaaAAA2yzIVlPc072.png "title=" 02. PNG "alt=" Wkiom1mf47nywbaaaaa2yzivlpc072.png "/>


2 , Configuration DHCP Relay Proxy Server

2.1), configure the IP address of thetwo network cards separately , configure the network card connected with the DHCP server to a network segment (192.168.1.2) of the DHCP server

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9D/C8/wKiom1mF4_jBbXo8AAAeB6wS4Uk300.png "title=" 04. PNG "alt=" Wkiom1mf4_jbbxo8aaaeb6ws4uk300.png "/>


2.2), and 2.0 network segment connected to the second NIC IP set to 192.168..2.2

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/C7/wKioL1mF5BiSEDE3AAAYkXgGw0s552.png "title=" 05. PNG "alt=" Wkiol1mf5bisede3aaaykxggw0s552.png "/>


2.3), add the Relay Agent role! Click "Start" → "Administrative Tools" → "Server Manager" → "Roles" → Click "Add roles" in the right-hand dialog to open the "Add Roles" wizard.


2.4), tick "network Policy and Access Services" → Select the role service tick "Routing and Remote Access" → Click Install.

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9D/C8/wKiom1mF5GSBR_WjAAAUqNB7qZo377.png "title=" 06. PNG "alt=" Wkiom1mf5gsbr_wjaaauqnb7qzo377.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/C7/wKioL1mF5GWwHNnNAAAndLz7Jl4345.png "title=" 07. PNG "alt=" Wkiol1mf5gwwhnnnaaandlz7jl4345.png "/>


2.5), open the Routing and Remote Access service from the Administrative tools!

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9D/C8/wKiom1mF5K6QVTf-AABiIZ0IIbQ389.png "title=" 08. PNG "alt=" Wkiom1mf5k6qvtf-aabiiz0iibq389.png "/>


2.6), right-click the computer name → Click "Configure and Enable Routing and Remote Access"

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/C7/wKioL1mF5MeBUP_BAAAhgJSRaBM309.png "title=" 09. PNG "alt=" Wkiol1mf5mebup_baaahgjsrabm309.png "/>



2.7), select "Custom Configuration" → "Next" in the "Configuration" tab!

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9D/C7/wKioL1mF5PnBhsOkAAAlhdfK7KI921.png "title=" 10. PNG "alt=" Wkiol1mf5pnbhsokaaalhdfk7ki921.png "/>


2.8), in custom configuration, selectLAN routing → next. Click Done.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9D/C8/wKiom1mF5R2hOAVIAAAUUtozkgM472.png "title=" 11. PNG "alt=" Wkiom1mf5r2hoaviaaauutozkgm472.png "/>


2.9), open the "IPv4" option → Right click "General" → select "New routing protocol" → select "DHCP Relay Agent" → Click "OK"

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9D/C7/wKioL1mF5UHj23hQAAAog04trRU000.png "title=" 12. PNG "alt=" Wkiol1mf5uhj23hqaaaog04trru000.png "/>


2.10), right-click on "DHCP relay Agent" → "New Interface"

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/C8/wKiom1mF5WLyqsUZAAAgtGUbPr8095.png "title=" 13. PNG "alt=" Wkiom1mf5wlyqsuzaaagtgubpr8095.png "/>


2.11), add "Local Area Connection 1" and "Local Area Connection 2" to theDHCP Relay Agent respectively. (the property is added with the default without modification.) )

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/C7/wKioL1mF5Y6Amj4HAAAikUNgGlU512.png "title=" 14. PNG "alt=" Wkiol1mf5y6amj4haaaikungglu512.png "/>


2.12), finally, right-click on "DHCP relay Agent" → "Properties" → enter the IP address of the DHCP server and click Add! Click OK again. Relay Server Configuration Complete!

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9D/C8/wKiom1mF5bjQTO8qAAAOVxEGH-A916.png "title=" 15. PNG "alt=" Wkiom1mf5bjqto8qaaaovxegh-a916.png "/>


3.Verifying DHCP client IP address availability .

Note: If you are experimenting with virtual machines, you will need to bring the virtual machine DHCP close to prevent conflicts.

Here's how:

● Open the "Open Virtual Network Editor" method, such as!

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9D/C8/wKioL1mF5g6DQ1ZPAACM2JYD9aY808.png "title=" 19. PNG "alt=" Wkiol1mf5g6dq1zpaacm2jyd9ay808.png "/>



Click on the test two network card separately! Remove the locally-brought DHCP Function!

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9D/C8/wKiom1mF5jWgGAIuAABradVxVc8336.png "title=" 20. PNG "alt=" Wkiom1mf5jwggaiuaabradvxvc8336.png "/>


3.1), the client that is connected to the 1.0 network segment (the one above the topology diagram) uses DHCP to automatically obtain

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9D/C8/wKiom1mF5mqjTCTSAAAjyVgAc64107.png "title=" 16. PNG "alt=" Wkiom1mf5mqjtctsaaajyvgac64107.png "/>


3.2), then open a command prompt and enter "ipconfig/release" to release the current IP address.

Re- enter "ipconfig/renew" to retrieve the IP address, you can see the prompt to obtain the IP address successfully.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9D/C8/wKioL1mF5ozhP8lLAAAusYKXQcs633.png "title=" 17. PNG "alt=" Wkiol1mf5ozhp8llaaausykxqcs633.png "/>


3.3), with the second network segment NIC connected to the client to verify, and the first step, as you can see the result is successfully obtained to the 2.0 network segment IP address!

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/C8/wKioL1mF5qmA4EceAAAuAL0nnU0057.png "title=" 18. PNG "alt=" Wkiol1mf5qma4eceaaaual0nnu0057.png "/>

※ If the acquisition is unsuccessful, the DHCP on the server look at the scope options above there is not a red downward arrow!

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9D/C8/wKiom1mF5uCAJW2OAAATkCahmUE784.png "title=" 21. PNG "alt=" Wkiom1mf5ucajw2oaaatkcahmue784.png "/>

Right-click on the scope and activate! At this point the downward red arrow is gone! The IP address can be assigned properly !

Real The test is complete!

This article is from the "Huliangkin" blog, make sure to keep this source http://houliangjin.blog.51cto.com/13112910/1953908

10 minutes with Windows Server simple to build DHCP Relay Agent!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.