Dynamic Host Configuration Protocol (DHCP) is the core networking protocol to deploy IP address for network clients. A DHCP Server assigns IP addresses to client computers and reduce IP management tasks. Following are the sequence of messages that are generated in the IP assigning process.
In the enterprise network, DHCP Server require installation and configuration. You must install it first and then configure to work perfectly.
Installing DHCP Server Role
DCHP installation and configuration in Windows Server 2012 R2.
1. To install DHCP Serve go to Dashboard on Server Manager and click Manage then click Add Rules and Features. In the Role installation window select Role-based or feature-based installation the click Next.
2. Select the Server you want to install DHCP from the Server pool. Here we have one server and is selected by default.
3. From the Roles list select DHCP Server. When the Add Roles and Features Wizard Page opened, click Add Features then Click Next. This will install required features for DHCP Server.
4. In the Features window don’t change anything, just click Next.
5. Just read the information about DHCP Server and click Next button.
6. In the Confirm installation page, select Restart the destination server automatically if required. Click Yes the warning window and click Install.
7. The installation will take a minute, when it has complete successfully click Complete DHCP Configuration link.
8. Read DHCP Post-Install configuration wizard description and click Next.
9. Set the appropriate user for management of DHCP Server. Here I leave it by default, because the administrator has the right privilege to perform DHCP Server configuration.
10. On the DHCP summery window click Close and close the DHCP Installation page also.
Configure DHCP Server
Configure the installed DHCP server and create Scope to lease IP address for clients.
Lease – The amount of time that a client may use an IP address before the client must re-lease the IP address or request another one.
1. Type dhcpmgmt.msc in Windows Run ( Windows +R ) and press enter to open DHCP management console or select DHCP from tools menu in the server manager.
2. On DHCP console window expend the IPv4 in domain name (DC1). Right click the IPv4 the click New Scope.
3. Click Next on the New Scope Wizard page.
4. In the Scope name define the name of Scope and write any description then click Next.
5. Assign the start IP address range and the end IP address range. I have set from 172.16.25.1 to 172.16.25.254 which is a class B IP address. change the length to 16 and click Next
6. Add the exclusive range prevent them from leasing to client by DHCP Server. The IP address range which is reserved and are used for Network Servers and popular workstation. Here I add 172.16.25.1 to 172.16.25.10. Just set the IP address and click Add button then click Next.
7. take Lease Duration for 7 days and click Next.
8. In Configure DHCP Options section, ckeck Yes, I want to configure this option now and Click on next.
9. If you have router in your network, set the router (default gateway) IP address and click Add button then click Next
10. Type your domain name and DNS IP addresses then click Next.
On the Domain Name and DNS Servers page, enter the domain name used on the internal network in the Parent domain text box. In this example, the domain name is nks.com. In the IP address text box, enter the IP address of the DNS server on the internal network. In this example, the domain controller is also the internal network’s DNS server, soadd the value 172.16.2.35 into the IP address and also add public DNS server 22.214.171.124 in the text box. Click Next.
Most ISP’s will supply a DNS server address using DHCP or by setting them on your router/modem etc. However sometimes an ISP’s dns system is slow or overloaded or simply isn’t updated fast enough to keep all domain names available. Several companies provide PUBLIC dns that anyone can use. List of Public DNS
You will notice that 126.96.36.199, 188.8.131.52, … 184.108.40.206 are operated by Level 3 communications and are indeed open for public use. Google also operates an open DNS at 220.127.116.11 and 18.104.22.168.
The PUBLIC DNS systems are very easy to use and can be used as a supplementry look up on any computer, or as the primary DNS servers. They will work if your ISP system be slow or fail to find a working domain name.
11. Do nothing for WINS Servers, because we don’t use WINS Server ether. Just click Next
12. In Active Scope windows , Check Yes, I want to active this scope now and click Next.
13. Finally click Finish to close and complete the installation of DHCP Server in Windows Server 2012 R2
Now you can assign IP address to your network clients automatically through this DHCP Server.
Refer the following video –