Dynamic Host Configuration Protocol(DHCP) is a protocol that distributes IP addresses across the network for computers that has no IP address of its own.
As the DHCP assignes IP address to computers without an IP address, the network administrator will then save alot of time as he will not have to manually configure a static IP address for each and every single computer in the network.
To install DHCP on a Windows Server 2008 R2 computer, I have to first make sure that the machine holds a static IP address which is the utmost importance in setting up a DHCP server.
To assign a static IP address, open up Network and Sharing Center via Control Panel and then select Change adapter settings. Right click on the network adapter that you’re using and select Properties. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties. select Use the following IP address and input the desired IP address and subnet mask into the corresponding spaces. Click OK.
To verify if the settings are applied, go to start and then select run. Type cmd in the blank field and click OK. Enter ipconfig /all and you should see the IP address and subnet mask.
After obtaining a static IP address for the machine, we can now install the DHCP server role.
To install the DHCP server role. we go to the Server Manager, Roles and then select Add Roles.
In the Add Roles Wizard, select the DHCP Server role and then click Next. Click Next again. Tick the network connection that faces the network that you want to distribute out the IP address and click Next. Enter the Parent domain name and the DNS server’s address if you have them or leave them blank and click Next. if WINS is not required, click Next. Add scope by clicking the Add… button. Enter the name of the scope, starting IP address and ending IP address that you want to lease out, subnet type, subnet mask and default gateway if necessary. Click Okay. Click Next.
, Next->Select ‘DHCP Server’->Next->Next->Select the network that you want to set up the DHCP on->Next->Enter Domain and DNS Server->Next->Next->Add the scope of ip addresses in the Add Scope Wizard->Next