Search Windows and Linux Networking

Wednesday, January 18, 2012

Install & Configure DHCP Server role on Windows 2008 Server Core

DHCP Server is very important server in the network environment. We can install & configure DHCP server role using below steps in windows 2008 server core...





1) First we will have to run below command on windows 2008 server core to add the DHCP server role.


2) Then to start DHCP service automatically, use below command...


3) Then use below command to start the DHCP service


4) If the DHCP server is in Active Directory domain environment (i.e. Member of a domain) then we must have to authorize the DHCP server to work properly.

To authorize the server in domain , use below command..


5) Now to add scope to the DHCP Server use below command


(C:\windows\system32>netsh dhcp server 192.168.127.11 add scope 192.168.127.0 255.255.255.0 scope1)

In the above command 192.168.127.11 = the IP of DHCP server

192.168.127.0 255.255.255.0 = subnet & subnet mask of scope which we have to add

Scope1 = name of the scope to be added

6) Then we will need to set the IP range for the added scope, for this use below command..


(C:\windows\system32>netsh dhcp server 192.168.127.11 scope 192.168.127.0 add iprange 192.168.127.50 192.168.127.100)

Using above command we have added IP range (192.168.127.50 - 192.168.127.100) to the scope (192.168.127.0) in the DHCP server (192.168.127.11)

7) If we want to add exclusion range to DHCP range then we have to use below command


(C:\windows\system32>netsh dhcp server 192.168.127.11 scope 192.168.127.0 add excluderange 192.168.127.56 192.168.127.60)

Using above command we have added exclusion IP range (192.168.127.56 - 192.168.127.60) to the scope (192.168.127.0) in the DHCP server (192.168.127.11)

8) To set Default Gateway (Option 003) use below command..


(C:\windows\system32>netsh dhcp server 192.168.127.11 scope 192.168.127.0 set optionvalue 003 IPADDRESS 192.168.127.1)

Using above command we have set Default Gateway address as 192.168.127.1 for the scope 192.168.127.0

9) To set DNS server (Option 006) use below command..


(C:\windows\system32>netsh dhcp server 192.168.127.11 scope 192.168.127.0 set optionvalue 006 IPADDRESS 192.168.127.10)

Using above command we have set primary DNS address as 192.168.127.10 for the scope 192.168.127.0

10) Then finally we will have to activate this scope, for this , use below command


(C:\windows\system32>netsh dhcp server 192.168.127.11 scope 192.168.127.0 set state 1)

Now your DHCP server should be running & working fine!

I hope this will help you to setup DHCP server on windows 2008 server core with ease.

11 comments:

  1. its really best tutorial i ever found. detail step by step and cover every part. thanks bro for sharing.

    ReplyDelete
  2. Great Job on putting this together the step by step with the ntoations made configuring DHCP of my server core easy as pie.

    ReplyDelete
  3. Good Tutorial! Thanks

    ReplyDelete
  4. really very very good. GREAT JOB BOSS.I want ur ph no.plz send ur no to my id-skmahatabali@yahoo.in

    ReplyDelete
  5. Good one,really helpful...thanxxxx

    ReplyDelete
  6. Email servers are indeed vital communication tool for businesses.

    ReplyDelete
  7. Thank you so much for this! It helped me, Im learning how to write batch files and this was exactly what gave me the courage to actually do it and not be afraid I was messing anything up! Thank you for being so kind as to put this out here for us beginners!

    ReplyDelete
  8. Amazin tutorial!! The best I found!

    ReplyDelete
  9. Thank You and that i have a swell offer: Renovation House Company how to renovate a house

    ReplyDelete