You are on page 1of 57

INSTALL AND CONFIGURE DHCP

INFORMATION SHEET 3.2 -1

Michael U. Mamitag
LEARNING OBJECTIVES

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


to:
Understand the DHCP concept.

Install and configure DHCP.

Michael U. Mamitag
INTRODUCTION

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.

Michael U. Mamitag
How does DHCP work?

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


DHCP client sends out a broadcast packet called DHCPDISCOVER.

This Discover packet contains the client’s computer name and


Media Access Control (MAC) address so the DHCP servers can
respond to it. Basically, the Discover packet says, “I’m looking
for a DHCP server who can lease an IP address.”

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.

Michael U. Mamitag
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.)

The DHCP server whose offer was accepted responds with a DHCPACK
message, which acknowledges the lease acceptance and contains the client’s
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 network.

Michael U. Mamitag
Important DNCP 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 224.0.0.0 to 239.255.255.255.
Address Pool The IP addresses in a scope that are available for lease.
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.
Michael U. Mamitag
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 network’s 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.
Installation

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 Add role


Michael U. Mamitag
Select server role

Figure 2 Selecting server role


Michael U. Mamitag
Read and evaluate
DHCP overview

Michael U. Mamitag Figure 3 DHCP Overview


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.

Michael U. Mamitag Figure 4 Select Network Binding


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 itsmeismael.com 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
192.168.1.50 because this is
my server address. In short it
is the address of your server.
Figure 5 Specify IPv4 DNS Server Setting
Click validate then press next
button.
Michael U. Mamitag
WINS Server
setting.

Michael U. Mamitag Figure 6 Specify IPv4 WINS Server Setting


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

Figure 7 Add or Edit DHCP Scope


Michael U. Mamitag
Configure DHCPv6
stateless mode. Our
current network doesn’t
support IPv6 therefore
just click Disable
stateless mode for this
server.

Figure 8 Configure DHCPv6

Michael U. Mamitag
Authorization of DHCP
server will be configure
later just click Skip
authorization of this
DHCP server in AD DS
then click next.

Michael U. Mamitag
Figure 9 Authorize DHCP Server
The confirmation of installation will prompt. Review
the following configuration then click Install if there
are no further revisions.

Michael U. Mamitag
Figure 10 Confirm Installation Selection
Installation progress
wizard will appear. Wait
for a few moments then
go to next step.

Michael U. Mamitag
Figure 11 Installation in progress
Installation result.
Click close.

Figure 12 Installation Results


Michael U. Mamitag
Configuration

Open DHCP. Click


start>Administrative
Tools > DHCP.

Figure 13. Open DHCP

Michael U. Mamitag
DHCP window will
appear

Figure 14 DHCP Windows


Michael U. Mamitag
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.

Michael U. Mamitag
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
Michael U. Mamitag
Michael U. Mamitag Figure 4.2
Figure 4.3
Michael U. Mamitag
Adding scope click
IPv4 then click
New Scope (See
Figure 5.2)

Michael U. Mamitag
Figure 5.1
Michael U. Mamitag Figure 5.2
New Scope Wizard will appear

Michael U. Mamitag
Figure 6
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.

Michael U. Mamitag
Figure 7
Defining the scope address range by identifying the
sets of consecutive IP addresses. Example IP range
is on Figure 8

Michael U. Mamitag
Figure 8
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
192.168.1.100 to 192.168.1.254 which
are available for leasing but if we apply
exclusion range e.g. 192.168.1.150 to
192.168.1.200 it mean this range
bracket are not available for leasing. Figure 9
Michael U. Mamitag
. Lease duration it pertains on
how long a client use an IP
address fromUsually it is
intentionally the scope. left
by default but you can
configure it if you wanted to
adjust an specific duration.

Figure 10.
Michael U. Mamitag
Configure DHCP Options. Just
click No, I will configure these
options later. I just wanted to
show you how to configure it
manually.

Michael U. Mamitag Figure 11


Completing
the New
Scope Wizard

Figure 12
Michael U. Mamitag
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

Michael U. Mamitag
Figure 13.2
Michael U. Mamitag
Figure 13.3

Michael U. Mamitag
Checking our
address pool

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

Figure 15.1
Michael U. Mamitag
Figure 15.2
Michael U. Mamitag
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
Michael U. Mamitag
Michael U. Mamitag
Figure 16.2
Check your
configure router
option

Figure 17
Michael U. Mamitag
SETTING DYNAMIC IP ADDRESS

Michael U. Mamitag
Login to your
configured client
machine then open
network machine by
pressing windows
button + r then type
ncpa.cpl then click OK.

Figure 1
Michael U. Mamitag
In your network connection
right click Local Area
Connection then choose
properties > User account
control dialog box will
appear. Type your
Administrator credentials Figure 2.1
then click yes (Figure 2.2)

Michael U. Mamitag
Michael U. Mamitag
Figure 2.2
Double click
the
highlighted
TCP/IPv4

Figure 3

Michael U. Mamitag
Configure static IP settings will
appear, but we don’t 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

Michael U. Mamitag
Figure 4.1
Michael U. Mamitag
Figure 4.2
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. You’ll
see the leased IP address given by
DHCP server

Figure 5.1
Michael U. Mamitag
Michael U. Mamitag
Figure 5.2
Michael U. Mamitag
Figure 5.3
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 you’ll see the leased IP
address and client name
(Figure 6.3)

Michael U. Mamitag
Figure 6.1
Michael U. Mamitag Figure 6.2
Figure 6.3
Michael U. Mamitag

You might also like