You are on page 1of 34



Install and configure DHCP


After reading this INFORMATION SHEET, STUDENT(S) MUST be able


1. Understand DHCP concepts.

2. Install and configure DHCP.


If you have worked with Windows NT at all, you are probably familiar
with Dynamic Host Configuration Protocol (DHCP) a server service
that enables the server to dynamically assign IP addresses to network
clients. Because Windows 2008 R2 server networking has TCP/IP as its
foundation, DHCP also plays an important role in networks.

DHCP (Dynamic Host Configuration Protocol) is a server service that

dynamically assigns, or leases, IP addresses and related IP information to
network clients.

How does DHCP work?

1. During the boot process, a client computer that is configured as a

DHCP client sends out a broadcast packet called
This Discover packet contains the clients computer name and
Media Access Control (MAC) address so the DHCP servers can
respond to it. Basically, the Discover packet says, Im looking for
a DHCP server who can lease an IP address.
2. DHCP servers on the network respond to the broadcast with a
DHCPOFFER. In essence, the DHCPOFFER says, I am a DHCP
server and I have a lease for you. If several DHCP servers respond
to the request, the client accepts the first offer that it receives.
3. The client responds via a broadcast message called a
DHCPREQUEST. This message basically says, I accept your lease
offer and would like an IP address. If other DHCP servers made
offers, they also see their lease offers were not accepted by the
broadcast message, so they rescind their offers. (They must not
like getting snubbed by a client computer.)
4. The DHCP server whose offer was accepted responds with a
DHCPACK message, which acknowledges the lease acceptance
and contains the clients IP address lease as well as other IP

addressing information that you configure the server to provide.
The client is now a TCP/IP client and can participate on the

Important DHCP Terms

Scope A full range of IP addresses that can be leased from

a particular DHCP server.

Superscope A grouping of scopes used to support logical IP

subnets that exist on one physical IP subnet (called

a multinet).

Multicast Scope A scope that contains multicast IP addresses,

which treat multicast clients as a group. Multicast

is an extension of DHCP and uses a multicast

address range of to

Address Pool The IP addresses in a scope that are available for


Exclusion Range A group of IP address in the scope that are

excluded from leasing. Excluded addresses are

normally used to give hardware devices, such as

routers, a static IP address.

Reservation A means for assigning a permanent IP address to a

particular client, server, or hardware device.

Reservations are typically made for servers or

hardware devices that need a static IP address.

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.

Installing Windows Server 2008 DHCP Server

Installing Windows Server 2008 DCHP Server is easy.

To do this, you will need a Windows Server 2008 R2 system already
installed and configured with a static IP address. You will need to know
your networks IP address range, the range of IP addresses you will want
to hand out to your PC clients, your DNS server IP addresses, and your
default gateway. Additionally, you will want to have a plan for all subnets
involved, what scopes you will want to define, and what exclusions you
will want to create.

1. To start the DHCP installation process, you can click Add Roles from
the Initial Configuration Tasks window or from Server Manager >
Roles > Add Roles.

Figure 1.1 Add role

2. Select server role

Figure 1.2 Selecting server role
3. Read and evaluate DHCP overview

4. Select network binding connection. In this part you have to select
available network connections, if you have to or more network adapters
you need to select the network connection that you are going to bind. In
this example, I only have one network connection.

5. Setting the IPv4 DNS Server. The first thing you need to do id to
specify the name of the parent domain that clients will use for name
resolution. This domain will use for all scope you create on this DHCP
server. In this example I used for parent domain.
In prefer DNS server IPv4 address, you must to specify the address of the
dns server that client will use for name resolution. In this case I used because this is my server address. In short it is the
address of your server. Click validate then press next button.

6. WINS Server setting.

7. Add or edit DHCP Scopes. Just click next, this scope is intentionally
left blank because we are going to add scopes later manually.

8. Configure DHCPv6 stateless mode. Our current network doesnt
support IPv6 therefore just click Disable stateless mode for this server.

9. Authorization of DHCP server will be configure later just click Skip

authorization of this DHCP server in AD DS then click next.

10. The confirmation of installation will prompt. Review the following
configuration then click Install if there are no further revisions.

11. Installation progress wizard will appear. Wait for a few moments then
go to step 12.

12. Installation result. Click close.


1. Open DHCP. Click start>Administrative Tools > DHCP.

2. DHCP window will appear

3. In our installation earlier we never authorized any configuration but in
this step we need to authorize our dhcp server in order to lease ip
address and create some address pools.

4. How to authorize DHCP server. Right click here >

click authorize. Right click then refresh as shown in (figure 4.2) then
verify the authorization. Check marks will appear after the successful
authorization (Figure 4.3)

Figure 4.1

Figure 4.2

Figure 4.3

5. Adding scope click IPv4 then click New Scope (See Figure 5.2)

Figure 5.1

Figure 5.2

6. New Scope Wizard will appear

Figure 6
7. Setting the scope name and description. Name is any recognizable and
user friendly scope name while description is an adjective definition for
new scope name.

Figure 7

8. Defining the scope address range by identifying the sets of consecutive

IP addresses. Example IP range is on Figure 8

Figure 8
9. Add exclusion. Exclusion are addresses or range of IP addresses that
are not leased by the server. For instance, In Figure 8 there is an ip
range between to which are available for
leasing but if we apply exclusion range e.g. to

(c) it mean this range bracket are not available for leasing.

Figure 9
10. Lease duration it pertains on how long a client use an IP address
from the scope. Usually it is intentionally left by default but you can
configure it if you wanted to adjust an specific duration.

Figure 10.

11. Configure DHCP Options. Just click No, I will configure these options
later. I just wanted to show you how to configure it manually.

12. Completing the New Scope Wizard

13. Scope activation. New created scope is disabled by default. In order
to lease ip address we need to active the create scope by right clicking
the highlighted color then click active as shown in figure 13.2 then click
refresh (Figure 13.3)

Figure 13.1

Figure 13.2

Figure 13.3

14. Checking our address pool

Figure 14
15. Configure scope option. Right click Scope option then choose
configure options (Figure 15.2)

Figure 15.1

Figure 15.2
16. Scope option will appear check 003 Router then in ip address type
the ip address of your router then click add > click apply > click OK. As
shown in figure 16.1 and figure 16.2

Figure 16.1

Figure 16.2
17. Check your configure router option

Invoking dynamic ip address

1. Login to your configured client machine then open network machine

by pressing windows button + r then type ncpa.cpl then click OK.

2. In your network connection right click Local Area Connection then

choose properties > User account control dialog box will appear. Type

your Administrator credentials then click yes (Figure 2.2)

Figure 2.1

Figure 2.2

3. Double lick the highlighted TCP/IPv4

Figure 3
4. Configure static IP settings will appear, but we dont need our setting
set to static therefore we need to obtain our IP in order to request IP from
the DHCP server we created earlier. Click obtain IP address automatically
as well obtain dns server automatically as shown in figure 4.2

Figure 4.1

Figure 4.2

5. Verify an obtained ip setting. Press windows + r then type CMD click
ok to open command prompt. Type hostname then hit enter (Figure 5.2)
then type ipconfig (Figure 5.3) the hit enter. Youll see the leased IP
address given by DHCP server

Figure 5.1

Figure 5.2

Figure 5.3

6. Checking the leased ip address. Open your DHCP in your SERVER
then click address leases (Figure 6.1) then right click (Figure 6.2) then
youll see the leased IP address and client name (Figure 6.3)

Figure 6.1

Figure 6.2

Figure 6.3