Windows Server 2012: Installation and Configuration of DHCP Server and create a Scope.

After the installation of Windows server, give a static IP address to the network adapter, download and install all the relevant updates from microsoft update site.

Before installing the DHCP role, we'll have to make that machine part our domain by joining to the Active directory domain services.while doing this, also change the computer name from WINGHYJ215FDRT to something like dhcpsrv, restart the computer and log back with enterprise admin cridentials.ie Domainname\administrator

Start the Server Manager  and click on **Manage **and select  Add Roles and Features

https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/1897924_10206045355272937_4248757995293875652_n.jpg?oh=5639bc3af4bf1c0c23e0bfa55d0eac63&oe=55721046&__gda__=1433749270_4d86afe2854d10cff04c84223588f656

Its a Role Based installation and Next>>

https://scontent-ams.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10561703_10206036315046937_8144132457402183371_n.jpg?oh=0456e27d082fb0059b35d8a1ba432d4d&oe=55BE140B

Below shows, what machine is that , this installation will be made on . as I mentioned earlier I am installing this role on my DC . you can install on same or  different machine and click Next>>

https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xta1/v/t1.0-9/11054273_10206036338367520_4098851579022801794_n.jpg?oh=35c8e6bf40452653ca11274279478c0a&oe=557B7164&__gda__=1433539625_7b9a8c2eb4345e62bf9c7860fc90b433

and select/check DHCP Server 

https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/11074720_10206045355872952_3815197020677028449_n.jpg?oh=e964aa294d1b9dc4776af092e9175e24&oe=5571C383&__gda__=1433712614_6aba3089150e45ef53b1a37938a4b325

There are additional features that going to be installed by selecting DHCP server role and Click on Add Features

https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/1897924_10206045356912978_8472613032338187197_n.jpg?oh=640e59c5f612b15d9a53e22124dbd546&oe=55AE05F8&__gda__=1433589191_a693af9cea03a81c0549d98da4986621

Click on Next >>>

https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/11081088_10206045357592995_6660142459709769968_n.jpg?oh=7ff3c43514ef89b2170bb2c54fa309d6&oe=55AD4BA9&__gda__=1433963260_8b7e6e37784a2ef54a0a38de3bb3f868

No Additional features to be selected, just leave everything as it is... and Next>>

https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xft1/v/t1.0-9/11075026_10206045358313013_6489512723783856236_n.jpg?oh=87bb934be0fb373a34a919a5c8384bf5&oe=55A8FFA0&__gda__=1437238866_1ac65c4600196be7d8a475b500b8f570

Below information is about  what DHCP server does, how it assigns  IP addresses to clients/computers etc. just the brief and useful info is there. Read and Next>>

https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xaf1/v/t1.0-9/11095330_10206045358873027_8670885048954946342_n.jpg?oh=5d7937803309e4e6f75b0b42d55d9337&oe=55A7EFD4&__gda__=1433972832_ee8b2b5002acca9ae74c976cfcb010a3

 

You can check below checkbox or leave empty and click on Install.

https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11079658_10206045359713048_8950731546978262235_n.jpg?oh=bdf10410bd70064ce3e674e6c93c2f2a&oe=55BC87B6&__gda__=1433393499_38ca08e55717016a36a83830110e1849

and wait until the installation completed...

https://scontent-ams.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/10426226_10206045360193060_7477897932187268261_n.jpg?oh=1a57d5ac9b88444fdceb295ee52ec3e0&oe=557A00D3

Ok Now we have installed our DHCP server role successfully... lets look on how to configure our server that it can start assigning IP addresses to client computers on our network.

https://scontent-ams.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/150773_10206045360513068_7583649595963746553_n.jpg?oh=63a43a05537dfaf09d466c2921f94198&oe=55B9A9BD

Click on Complete DHCP Configuration link on the wizard.

https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/11082668_10206045361433091_3844621508318354663_n.jpg?oh=13aef917b786b9178e49631965bda139&oe=5574CC87&__gda__=1438473170_0dc1fce31d133339f71f64f81816fb23

it describe that below security groups will be created for delegation and get authorized our DHCP server by our Domain Controller.

Click Next>>

https://scontent-ams.xx.fbcdn.net/hphotos-xtf1/v/t1.0-9/10370814_10206045361833101_3429402517893498475_n.jpg?oh=a0502f26505b99036cc1b4d1d4597197&oe=55AF1718

 

as we are already member of the domain, the default username(Enterprise Administrator) selected. and click on Commit

https://scontent-ams.xx.fbcdn.net/hphotos-xfa1/v/t1.0-9/10850013_10206045362353114_3619066681035959379_n.jpg?oh=2125ae3080b6d24ca0876286e50ad70d&oe=55AF3F60

We have now successfully authorized our DHCP server and security groups are created, in users and computers OU in DC.

https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/1016351_10206045362793125_7117672898079941409_n.jpg?oh=0484da903dda27342826d69c748ea15e&oe=557509E2&__gda__=1438282376_14681806e130810e576f7ef353d0fff4

Lets Create a Scope that our DHCP server can start given out the IP address ranges we want.

Go to the Tools Menu on Server Manager and select DHCP 

https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/11081385_10206045363633146_1422046897790438276_n.jpg?oh=5afd88342845ef82c0d09d1c7cc15574&oe=55AB05F7&__gda__=1436798354_99450cc21020e49446bdd694aa07e686

When you see Green tick by the IPv4 and IPv6 , that means Our DHCP server is up and running.

https://scontent-ams.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/10406414_10206045364153159_273889812207386385_n.jpg?oh=e8d600f7ae1a81af6f69ff1facd74eee&oe=55B4900F

 

I am using IPv4 therefore right click on IPv4 and expand it, Choose New Scope

https://scontent-ams.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/11080974_10206045364713173_7048688854934268863_n.jpg?oh=b53f30b7a42713b2d6aadef27fd53cf7&oe=55B92D31

 

Read the below information and click on Next>>

 

https://scontent-ams.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/11053679_10206045365113183_4665010052970178937_n.jpg?oh=d48110aac742e581460f71f19e391592&oe=55B64894

We have to give a Name and Description for our scope  that we can  easily identify our scope. I am using like below, you can use any name you wish, as it doesn't effect to our operation.

https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10300902_10206045365993205_4309172684983797788_n.jpg?oh=6bf06fe47e2278288da902d544f54989&oe=557B0CDD&__gda__=1433625291_b863babd6153ae68763aae13c99d44a2

Now we have to give an IP address range for our scope. its recommended that to use 254 ip address but cant include 0 and 255  as I am using C class  24 bit IP there for DHCP server can only distribute 254 IP addresses from this IP group. Also You can only have ONE IP RANGE from each IP GROUP. also Click On Next

https://scontent-ams.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/17412_10206045367273237_38446026915742659_n.jpg?oh=cf8627bbda9fde200c1532b95bd6778d&oe=55ACAD8A

 

On here we have to exclude the IP addresses that we dont want our DHCP to hand out. This IP addresses can be our DC's , Mail server's, Exchange  Server's for any member server that  we have statically assigned IP address. and click on Next

https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/11081365_10206045368953279_2934164744588208866_n.jpg?oh=80424f4a8b5e2295db9c86a4c8fcb943&oe=557632AB&__gda__=1434047165_6feeab3ba341bdb30dd4e842147a1394

in default, DHCP server leases IP addresses to clients for 8 days ( you can increase or decrease this period) .

There are  4 steps that between DHCP server and client computers for obtaining IP addresses Dynamically.

 

D  iscovery ( Client sends Broadcast packet to network,Looking for DHCP server) Broadcast Packet

**O  ffer  **      ( if DHCP server is available, It will response back with an Offer of an available ip address and Reserves that  ıp for that client some times) Broadcast Packet

R  equest   ( Then Client Makes a request saying .Great Can I have that IP address?) Broadcast Packet

A  ctKnowladge (Then DHCP server gives a response that, OK you can have that IP address for certain days or hours (depends on your lease settings), 

Broadcast packet

 

Once the client has a Dynamic IP from DHCP server, it will use it for 50% of the given period then client sends a unicast packet and  request extension of leasing period  again. if the client cant get any response from DHCP  for any reason, it wıll use  previously given period up to 87.5% then retry one more time, if still no response, it will use 100% of leasing period then release the IP address and starting DORA process from the beginning by sending out Broadcast packets

Click Next

https://scontent-ams.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10885245_10206045369953304_5727542748147469163_n.jpg?oh=eeef70cd36957ac48057b778751f3a55&oe=557B1A2B

We have to configure DHCP option  that DHCP server can also give out our Gateway address , DNS server address etc. and click on next

https://scontent-ams.xx.fbcdn.net/hphotos-xtp1/v/t1.0-9/11074484_10206045370833326_2222808969448614261_n.jpg?oh=ebabccd35ecbc45c28d96df943e71ec6&oe=5574906C

in here we have to tell DHCP server to assign our Router's IP address for this scope ( Gateway Address)

https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xaf1/v/t1.0-9/11082626_10206045371353339_4597839603298732648_n.jpg?oh=370aa0aeec9b716c1296737a45e9c970&oe=55B36FB7&__gda__=1437689859_234214935f0dd07c62e40c2fd501e79c

if we have only one DNS server we can leave this as its or more then 1 DNS server we have to add that in

https://scontent-ams.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/10425418_10206045372593370_8497329819512951110_n.jpg?oh=8294dddb67d259e4ecaf14cb8fb08c60&oe=55AAE625

Add in if you have any WINS server available on your network, if not leave it blank

https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/1509712_10206045373113383_5458094775789512010_n.jpg?oh=1542522cb2645ce32c84a2af6b4d9b27&oe=55A9265E&__gda__=1437012065_acd39e880b82231ce893f17cd4dd78c4

Yes to activate this scope click Next and Finish.

https://scontent-ams.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10685449_10206045373753399_8481015486038509518_n.jpg?oh=6edd5886c11b36d887b96e3a5566fb5b&oe=557191C1

https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xtp1/v/t1.0-9/10425418_10206045374193410_399436269794467201_n.jpg?oh=a545ade561c1c147d419d8a2f31e730a&oe=55B8EBBA&__gda__=1438261660_8b02375a88593da985d9be79c93094e8

Lets see our Scopes and status of them. make sure they are active otherwise DHCP wont be able to hand them out

https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/11046781_10206045375473442_6310214549567069435_n.jpg?oh=665ed4c1ccb1a923c922ed4037ded7e4&oe=5579B3DB&__gda__=1438410957_d118a70b60b31919d062da4ce4106315

Lets jump back on our client PC, as you see our client received ıp from dhcp server and have communication with other clients/ servers on the network.

https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/11074720_10206045376713473_7802441460951466481_n.jpg?oh=136648722b1da8322f6a979db2e9d5b4&oe=55B2E34F&__gda__=1438198832_588ea5524494438ea93b553e032417f9

 

https://scontent-ams.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10422070_10206045377433491_1589969862297089242_n.jpg?oh=d4365da22899b35f26c74a834cb5d90a&oe=55AEDA36

Just to double check our dynamicly assigned IP address was given out by DHCP.

https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/11082626_10206045378153509_7334677968701942236_n.jpg?oh=bc5019d18e764cbeb9991ef2b4967229&oe=55BE93EE&__gda__=1437750203_2fe77c55d0a1fe79464e28b443205cb5

 

As you see we have our first client who has recieved ıp from DHCP

https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10929136_10206045379193535_1627038870779538480_n.jpg?oh=ef182b2612ef7fced50aeb248ff1a235&oe=55B4F276&__gda__=1434015753_af741bf43a1ec13ceb57bdeefce1ed63