Windows Server 2016 DHCP Role Installation with GUI and PowerShell: Step-by-Step Guide.
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. RFCs 2131 and 2132 define DHCP as an Internet Engineering Task Force (IETF) standard based on Bootstrap Protocol (BOOTP), a protocol with which DHCP shares many implementation details. DHCP allows hosts to obtain required TCP/IP configuration information from a DHCP server.
With GUI:
1. Start your system, when Server Manager opens click Add roles and features;
2. For Installation Type, click Next;
3. For Server Selection, select your server and click Next;
4. For Server Roles, select DHCP Server role;
5. In the pop-up window click Add Features;
6. Click Next;
7. For Features, click Next;
8. For DHCP Server, click Next;
9. For Confirmation, click Install;
10. Installation begins;
11. When complete, click Close;
12. Click the yellow triangle in Server Manager, and click Complete DHCP configuration;
13. For Description, click Next;
14. For Authorization, click Commit (also you may select the option Skip AD authorization and do authorization from DHCP console);
15. For Summary, click Close (you must see Done twice);
16. Run the DHCP console from the apps list;
With PowerShell:
- Run PowerShell as administrator;
2. Install DHCP Role;
Add-WindowsFeature DHCP
3. Install DHCP console;
4. For DHCP authorization enter;
Add-DHCPServerInDC
5. After that go to Server Manager. Click the yellow triangle, and click Complete DHCP configuration. For Description, click Next. For Authorization, select the option Skip AD authorization and click Commit;
6. Get all commands for DHCP in PowerShell;
Import-Module dhcpserver
Get-Command -Module dhcpserver