SlideShare a Scribd company logo
3
Most read
9
Most read
11
Most read
DHCP SERVER CONFIGURATION
DHCP - INTRODUCTION
 DHCP was created by the Dynamic Host Configuration Working Group of the Internet
Engineering Task Force(IETF)
 Runs over UDP
 Utilizing ports:
 67 – connections to server
 68 – connections to client
 Used for Dynamic configuration
 Uses client–server model
 Extension of BOOTP
OBJECTIVE OF DHCP
 It temporarily binds IP address & other configuration parameters to DHCP client & provides
framework for passing configuration information to hosts
 It was designed to provide computers with temporary address
 It is well adapted to situation where hosts move from one location to another or are routinely
connected and disconnected
 Thus DHCP is mainly used to simplify the installation & maintenance of networked
computers.
CHARACTERISTICS
 Centralized IP address administration
 Backward compatible with BOOTP
 Supports multiple servers
 Provides dynamic assignment
 Allows static assignment
 Doesn’t interact with domain name service (DNS)
SOFTWARE ELEMENTS
 Client Software
 Installed in client Machines
 To handle broadcast requests
 For automatic IP acquisition and acquiring other configuration
 Server Software
 Installed in server machines
 Designated to respond to client requests for ip address
 Manage pools of IP addresses and related configuration
SOFTWARE ELEMENTS
 Relay Agent Software
 DHCP clients broadcasts requests onto local n/w
 Routers block broadcasts to outer network which means responses
from the DHCP servers must come from same network
 DHCP relay agents intercepts IP address requests
 repackages the requests
 rebroadcasts them as unicast messages to DHCP servers with known
addresses of other network
 DHCP servers sends its reply to relay agent which in turn forwards
them to client requesting the IP address
DHCP SERVER INSTALLATION
BASIC DHCP CONFIGURATION
 By default, DHCP server configuration does not include any subnets on which DHCP server should lease
IP addresses.
 It depends on your Linux system you may get the following error message when you attempt to start
DHCP with default dhcpd.conf configuration file.
 Your server may be connected to multiple network subnets.
BASIC DHCP CONFIGURATION
 simplest example of DHCP configuration file:
 Alter the above code with your subnet and insert it into /etc/dhcp/dhcpd.conf. When ready, restart your
DHCP server with ( restart command may vary ) :
DHCP DATABASES
 DHCP server uses 2 databases :
 One database acquires IP addresses manually and binds them permanently to hardware
addresses similar to BOOTP
 Other database contains 1 or more blocks of IP addresses (address pools) that are
dynamically assigned to clients on FCFS basis i.e. assigning on demand.
 when host no longer needs the IP address, it is released & returned
DHCP LEASE TIME MANAGEMENT
 DHCP issue a lease for a dynamic IP address that expires at the end of lease time
 After 1⁄2 the lease time,client can renew the lease time
 Once lease has expired the client must either stop using the IP address or acquire a new IP address
 If more than 1 DHCP server, each may offer an IP address to client & client can select the best offer.
3 TYPES OF ADDRESS LEASES
 Manual Lease : Network manager explicitly assigns all IP addresses
 Automatic Lease : DHCP server permanently assigns specific IP address and dynamically
assigns the rest
 Dynamic Lease : DHCP server dynamically assigns IP addresses for a specific period of time
when permanent address is not required
DHCP DEFAULT AND MAX LEASE TIME
 At this point we can add few additional settings to our DHCP configuration :
 Default-lease-time
 Max –lease-time
DEFINE DNS SERVER
SET DEFAULT GATEWAY
HOST SPECIFIC CONFIGURATION
CLIENT NETWORK SETTINGS TO USE DHCP
 To configure your client to use a DHCP on a network interface linux systems enter a following lines in
your /etc/network/interfaces file:
CONFIGURING DHCP RELAY AGENT
 If your DHCP server does not have an access to some particular subnet it does not mean that it
cannot provide its services there. To make this work a DHCP relay agent needs to be configured on a
remote subnet which forwards all request to a specified DHCP server and distant subnet. First install
DHCP relay agent:
 Then create a configuration file /etc/default/isc-dhcp-relay with two lines:
 The above config file will instruct DHCP relay agent to listen on eth0 interface for a DHCP client
requests and forward them to a DHCP server on an IP address 192.168.5.5.
USAGE SCENARIOS
 There are four key DHCP usage scenarios:
 Initial Client Connection: the client requests from the DHCP server an IP address and other
parameter values for accessing network services
 IP Usage Extension: the client contacts the DHCP server to extend usage of its current IP
address
 Client Connection After Reboot: the client contacts the DHCP server for confirmation that it
can use the same IP address being used before reboot
 Client Disconnection: the client requests the DHCP server to release its IP address.
DHCP SECURITY
 DHCP is an unauthenticated protocol
 When connecting to a network, the user is not required to provide credentials in order to
obtain a lease
 Also the server is also not the authenticated one
 Malicious users with physical access to the DHCP-enabled network can start a denial-of-
service attack on DHCP servers by requesting many leases from the server, thereby
reducing the number of leases that are available to other DHCP clients
THANK YOU!

More Related Content

DOCX
test bank MANAGEMENT of INFORMATION SECURITY, Fifth Edition
PPTX
Artificial intelligence powerpoint presentation
PDF
Windows-Server-2022-Courseware.pdf......
PPT
Introduction To Django
PDF
Computer Organization Lecture Notes
PPT
Coa module1
PDF
Layouts in android
PPTX
REST API
test bank MANAGEMENT of INFORMATION SECURITY, Fifth Edition
Artificial intelligence powerpoint presentation
Windows-Server-2022-Courseware.pdf......
Introduction To Django
Computer Organization Lecture Notes
Coa module1
Layouts in android
REST API

What's hot (20)

PPT
PPTX
PPTX
Routing protocols
PPTX
Basics of IP Addressing
PPS
Ip address
PPT
Ip Addressing
PDF
4.4.1.3 packet tracer configuring a zone-based policy firewall (zpf) instru...
PPTX
CCNA PPT
PPTX
Systems Administration
PDF
DNS (Domain Name System)
PPTX
IP Configuration
PPTX
Access Control List (ACL)
PPTX
Subnetting Presentation
PPT
CCNA Basic Switching and Switch Configuration
PPTX
IP Address
PPTX
DNS Configuration
PPT
Workgroup vs domain
PPTX
Introduction to Network and System Administration
PPTX
Ipv4 and Ipv6
PPTX
Sub Netting
Routing protocols
Basics of IP Addressing
Ip address
Ip Addressing
4.4.1.3 packet tracer configuring a zone-based policy firewall (zpf) instru...
CCNA PPT
Systems Administration
DNS (Domain Name System)
IP Configuration
Access Control List (ACL)
Subnetting Presentation
CCNA Basic Switching and Switch Configuration
IP Address
DNS Configuration
Workgroup vs domain
Introduction to Network and System Administration
Ipv4 and Ipv6
Sub Netting
Ad

Similar to Dhcp server configuration (20)

PDF
DHCP in windows server 2012
PPTX
6 understanding DHCP
PPSX
Lesson 6: Dynamic Host Configuration Protocol A
PPT
Durai presentation of dhcp
DOCX
Networking DHCP server Setup Reports
PPT
zuiqui_DHC.ppt
PPTX
dynamichost configuration protocol
PDF
DHCP (dynamic host configuration protocol)
PPT
PPT
Wintel ppt for dhcp
PDF
Configuring a DHCP Server
PDF
Configurar dhcp en router cisco
PPT
Session 3 Tp 3
PPT
PPT
PDF
DYNAMIC HOST CONFIGURATION PROTOCOL
PDF
14047721
PPTX
DHCg.pptfycujnhbcg hnf hnh g h hnhbynynubztcybu
DHCP in windows server 2012
6 understanding DHCP
Lesson 6: Dynamic Host Configuration Protocol A
Durai presentation of dhcp
Networking DHCP server Setup Reports
zuiqui_DHC.ppt
dynamichost configuration protocol
DHCP (dynamic host configuration protocol)
Wintel ppt for dhcp
Configuring a DHCP Server
Configurar dhcp en router cisco
Session 3 Tp 3
DYNAMIC HOST CONFIGURATION PROTOCOL
14047721
DHCg.pptfycujnhbcg hnf hnh g h hnhbynynubztcybu
Ad

Recently uploaded (20)

PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Construction Project Organization Group 2.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Geodesy 1.pptx...............................................
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Lecture Notes Electrical Wiring System Components
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
composite construction of structures.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
additive manufacturing of ss316l using mig welding
Arduino robotics embedded978-1-4302-3184-4.pdf
Construction Project Organization Group 2.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
bas. eng. economics group 4 presentation 1.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Geodesy 1.pptx...............................................
Model Code of Practice - Construction Work - 21102022 .pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CH1 Production IntroductoryConcepts.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Lecture Notes Electrical Wiring System Components
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
composite construction of structures.pdf

Dhcp server configuration

  • 2. DHCP - INTRODUCTION  DHCP was created by the Dynamic Host Configuration Working Group of the Internet Engineering Task Force(IETF)  Runs over UDP  Utilizing ports:  67 – connections to server  68 – connections to client  Used for Dynamic configuration  Uses client–server model  Extension of BOOTP
  • 3. OBJECTIVE OF DHCP  It temporarily binds IP address & other configuration parameters to DHCP client & provides framework for passing configuration information to hosts  It was designed to provide computers with temporary address  It is well adapted to situation where hosts move from one location to another or are routinely connected and disconnected  Thus DHCP is mainly used to simplify the installation & maintenance of networked computers.
  • 4. CHARACTERISTICS  Centralized IP address administration  Backward compatible with BOOTP  Supports multiple servers  Provides dynamic assignment  Allows static assignment  Doesn’t interact with domain name service (DNS)
  • 5. SOFTWARE ELEMENTS  Client Software  Installed in client Machines  To handle broadcast requests  For automatic IP acquisition and acquiring other configuration  Server Software  Installed in server machines  Designated to respond to client requests for ip address  Manage pools of IP addresses and related configuration
  • 6. SOFTWARE ELEMENTS  Relay Agent Software  DHCP clients broadcasts requests onto local n/w  Routers block broadcasts to outer network which means responses from the DHCP servers must come from same network  DHCP relay agents intercepts IP address requests  repackages the requests  rebroadcasts them as unicast messages to DHCP servers with known addresses of other network  DHCP servers sends its reply to relay agent which in turn forwards them to client requesting the IP address
  • 8. BASIC DHCP CONFIGURATION  By default, DHCP server configuration does not include any subnets on which DHCP server should lease IP addresses.  It depends on your Linux system you may get the following error message when you attempt to start DHCP with default dhcpd.conf configuration file.  Your server may be connected to multiple network subnets.
  • 9. BASIC DHCP CONFIGURATION  simplest example of DHCP configuration file:  Alter the above code with your subnet and insert it into /etc/dhcp/dhcpd.conf. When ready, restart your DHCP server with ( restart command may vary ) :
  • 10. DHCP DATABASES  DHCP server uses 2 databases :  One database acquires IP addresses manually and binds them permanently to hardware addresses similar to BOOTP  Other database contains 1 or more blocks of IP addresses (address pools) that are dynamically assigned to clients on FCFS basis i.e. assigning on demand.  when host no longer needs the IP address, it is released & returned
  • 11. DHCP LEASE TIME MANAGEMENT  DHCP issue a lease for a dynamic IP address that expires at the end of lease time  After 1⁄2 the lease time,client can renew the lease time  Once lease has expired the client must either stop using the IP address or acquire a new IP address  If more than 1 DHCP server, each may offer an IP address to client & client can select the best offer.
  • 12. 3 TYPES OF ADDRESS LEASES  Manual Lease : Network manager explicitly assigns all IP addresses  Automatic Lease : DHCP server permanently assigns specific IP address and dynamically assigns the rest  Dynamic Lease : DHCP server dynamically assigns IP addresses for a specific period of time when permanent address is not required
  • 13. DHCP DEFAULT AND MAX LEASE TIME  At this point we can add few additional settings to our DHCP configuration :  Default-lease-time  Max –lease-time
  • 17. CLIENT NETWORK SETTINGS TO USE DHCP  To configure your client to use a DHCP on a network interface linux systems enter a following lines in your /etc/network/interfaces file:
  • 18. CONFIGURING DHCP RELAY AGENT  If your DHCP server does not have an access to some particular subnet it does not mean that it cannot provide its services there. To make this work a DHCP relay agent needs to be configured on a remote subnet which forwards all request to a specified DHCP server and distant subnet. First install DHCP relay agent:  Then create a configuration file /etc/default/isc-dhcp-relay with two lines:  The above config file will instruct DHCP relay agent to listen on eth0 interface for a DHCP client requests and forward them to a DHCP server on an IP address 192.168.5.5.
  • 19. USAGE SCENARIOS  There are four key DHCP usage scenarios:  Initial Client Connection: the client requests from the DHCP server an IP address and other parameter values for accessing network services  IP Usage Extension: the client contacts the DHCP server to extend usage of its current IP address  Client Connection After Reboot: the client contacts the DHCP server for confirmation that it can use the same IP address being used before reboot  Client Disconnection: the client requests the DHCP server to release its IP address.
  • 20. DHCP SECURITY  DHCP is an unauthenticated protocol  When connecting to a network, the user is not required to provide credentials in order to obtain a lease  Also the server is also not the authenticated one  Malicious users with physical access to the DHCP-enabled network can start a denial-of- service attack on DHCP servers by requesting many leases from the server, thereby reducing the number of leases that are available to other DHCP clients