Results 1 to 3 of 3

Thread: How to Install DHCP server on Windows Server 2008

  1. #1
    Join Date
    Mar 2010

    How to Install DHCP server on Windows Server 2008

    For your PC to communicate over a network, you must have TCP IP setting correctly set. Instead of manually managing this PC by PC, simply add to your network a DHCP

    Dynamic Host Configuration Protocol server will then distribute your network addresses from your PC and record them correctly in your DNS database.

    The DHCP role will allow you to do so many things with Windows Server 2008 R2. DHCP Dynamic Host Configuration Protocol allows automatic network configuration of a machine. So the server provides the TCP / IP services like:
    • IP Address
    • Subnet Mask
    • Gateway
    • The domain name
    • The NetBIOS node type

    These addresses are allocated by some following leases. The lease is set depending on the type of machine in your network and the number of available addresses. If you have a small range of addresses then it must be used for short leases (1-2 days). The same applies to the use of such mobile stations (wireless) and a lease shall not exceed 1 day. In the case of fixed stations Microsoft recommends lease of 8 days. Depending on your network topology that value can be changed.
    • The DHCP server keeps logs of network addresses allocated to clients. It's easy to find a machine source of trouble (scan network, unauthorized access to the internet, etc)
    • By default the database and logs on Windows Server 2008 are stored in C: \ Windows \ System32 \ dhcp
    • Backups of Logs are when to them in C: \ Windows \ System32 \ dhcp \ backup

    Setup by Wizard
    • Before installing the DHCP server make sure that your server has a static IP address.
    • Then add the DHCP server role from the Server Manager MMC
    • Then you must indicate on what network card the server listens for requests from DHCP clients (several maps may be included)
    • It should then specify the DNS domain (leave blank if absent) and the DNS server primary and secondary eventuellment). Note that by default the primary DNS server address is locahost server ( Customers could not communicate with the server should the IP address of our server.
    • Then if WINS is used on your network enter the IP address of the WINS server
    • It must then configure the DHCP scope. Ie the IP address range and DHCP options to guests.
    • If the DHCP server does not have permission to serve these clients should be indicated on the Domain Controller server. Otherwise let ol credentials by default. It should activate the scope if you have not already done so.
    • Finally, if you have or you plan to install WDS server I recommend you to activate Bootp. Right click and ownership of the space, then the Advanced tab.
    • If you want to change the location of the basic DHCP leases must go into the properties of the DHCP server and then specify the new location. It will restart the services for the changes to take effect.

    Setup via Powershell command line:

    To install the role we will use a module introduced with PowerShell V2. This module is included natively in Windows Server 2008 R2 but not in 2008. You have to install

    PowerShell V2 to use it. You would get the list of services installed and available by typing Get-WindowsFeature.

    To configure the server you automate the service launch on startup of the machine to activate the service:
    • Set-Service-name-DHCPServer StartupType automaticly
    • Set-Service-name-status running DHCPServer

    To configure the server will use the Netsh command which is located in the system32 folder.
    • netsh dhcp server add-TST-SRV 01.corp.test.local

    It adds the address range to our previously established range :
    • netsh dhcp server scope xxxxxxxxxxxxxxxx add iprange
    • netsh dhcp server scope add

    By this you can add exclusion range :
    • netsh dhcp server scope xxxxxxxxxxxxxxxx add excluderange

    It adds to the depth Default Gateway for the subnet. It adds two DNS servers. :
    • netsh dhcp server scope xxxxxxxxxxxx set optionvalue 003 IPADDRESS xxxxxxxxxxxxxxxxxxx

  2. #2
    Join Date
    May 2009

    Re: How to Install DHCP server on Windows Server 2008

    And DHCP also allows a computer that connects to a network to dynamically obtain its configuration while avoiding address conflicts. It also prevents the reconfiguration of laptop computers in a network change. The administrator can easily keep an eye on its network, and the addresses allocated to DHCP clients. These addresses are allocated by a lease mechanism. The expiration time of the lease may be fixed or unlimited. A machine retains its lease until it expires and attempt to renew the same address if possible. Windows Server 2008 R2 adds a utility to help migrate DHCP because some commands such as Backup and Restore no longer work with different versions of Windows, because the format of the DHCP database has changed.

  3. #3
    Join Date
    Jul 2009

    Re: How to Install DHCP server on Windows Server 2008

    As far as possible for me I read minimum of the documentation. I mean, as long as you realize a project is going through a phase of analysis and design to avoid this kind of question. To define the order of installation nothing better than reading the per-requisite to your service so it works. In your case, it is important to remember one thing: DNS service is indispensable for the proper functioning of the entire Active Directory architecture Regarding DHCP, you can put in place before or after. It did not really matter. Just think carefully plan your subnets, your Scopes and your exclusion. Hence my famous part of the analysis and design through project execution.

Similar Threads

  1. Windows Server 2008 R2 Std DHCP Problem
    By Singuhar in forum Windows Server Help
    Replies: 3
    Last Post: 25-01-2012, 02:54 AM
  2. Replies: 1
    Last Post: 27-12-2011, 11:43 PM
  3. How to Install and Configure DHCP Server in Ubuntu Server
    By Anirvinya in forum Operating Systems
    Replies: 5
    Last Post: 10-02-2010, 04:29 AM
  4. how to migrate DHCP settings from server 2003 to server 2008
    By Imran in forum Windows Server Help
    Replies: 3
    Last Post: 01-09-2009, 12:57 AM
  5. How to install Virtual Server on Windows SBS server 2008
    By Anikait in forum Networking & Security
    Replies: 3
    Last Post: 05-06-2009, 12:52 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Page generated in 1,656,165,659.99494 seconds with 18 queries