Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP)
Configuration
Protocol (DHCP)
DHCP Definition
No of machines to be
Class of network Network addresses
connected
10/03/2025 3
DHCP Definition
10/03/2025 4
DHCP
Let DHCP Definition
gives you
a dynamic
IP address
Rather
than Set it
up by
urself.
10/03/2025 5
DHCP Definition
DHCP is a client/server protocol that:
automatically and dynamically provides the connected hosts with : IP
addresses, subnet mask and default gateway configurations.
DHCP Server is the server that control the DHCP process.
DHCP is based on Bootstrap Protocol (BOOTP)
( RFCs 2131 and 2132)
Bootstrap Protocol (BOOTP) automatically assign an IP address to network
devices from a configuration server.
10/03/2025 6
DHCP vs. BOOTP
BOOTP
- Static IP
assignment
- Less
parameters DHCP
- Longer - Dynamic IP
process assignment
- More
parameters
- Fast process
10/03/2025 7
DHCP vs. BOOTP
Both protocols configure the same basic parameters:
IP address
net mask
the address of a default router
the address of a name server.
However,
BOOTP is static: the clients are unable to
rebind/renew the configurations except when the
system restarts
DHCP support additional parameters like flags to check
the status of client.
10/03/2025 8
DHCP vs. BOOTP
However, (cont’d)
DHCP performs the configuration is a single phase
Request offer Assign IP directly
BOOTP performs the configuration in two phases
(longer time) Phase 2
Phase 1
10/03/2025 9
How does DHCP work?
10/03/2025 10
How does DHCP work?
DHCP Client
DHCP Client
DCHP OFFER 00:a0:24:71:e4:44 DHCPOFFER DHCP Server
11
How does DHCP work?
DHCP Client
DCHP REQUEST 00:a0:24:71:e4:44 DHCP Server
request to a particular
DHCPACK
DCHP ACK
DHCPACK
acknowledgement
can start to use“Ithe IP 12
agree to use my
DHCP Renewal Operation
DHCP Client
DCHP REQUEST 00:a0:24:71:e4:44 DHCP Server
DHCP Client
00:a0:24:71:e4:44 DHCP Server
DHCPREQUEST
his/her
approve theTCP/IP configuration
renewal. 13
DHCP Release Operation
10/03/2025 15
DHCP Message Format
Hardware Address
OpCode Hardware Type Hop Count
Length
Unused (in BOOTP)
Number of Seconds
Flags (in DHCP)
Transaction ID
Client IP address
Your IP address
Server IP address
Gateway IP address
Options
10/03/2025 16
DHCP Pros
10/03/2025 17
DHCP Cons
18
Thank
you
10/03/2025 19