SlideShare a Scribd company logo
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

What's hot

IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
Pijush Kanti Das
 
WINDOWS SERVER 2008
WINDOWS SERVER 2008WINDOWS SERVER 2008
WINDOWS SERVER 2008
Tawose Olamide Timothy
 
Windows Server 2012
Windows Server 2012Windows Server 2012
Windows Server 2012
Muhibullah Malyar
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
install active directory and configure domain controller
install active directory and configure domain controllerinstall active directory and configure domain controller
install active directory and configure domain controller
AlRomaniRashad
 
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanMicrosoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanDavid J Rosenthal
 
Active Directory Domain Services Installation & Configuration - Windows Ser...
Active Directory Domain Services  Installation & Configuration  - Windows Ser...Active Directory Domain Services  Installation & Configuration  - Windows Ser...
Active Directory Domain Services Installation & Configuration - Windows Ser...
Adel Alghamdi
 
Dhcp
DhcpDhcp
03 network services
03 network services03 network services
03 network services
Jadavsejal
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
NetProtocol Xpert
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
Henry Osborne
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
Tan Huynh Cong
 
Dc domain controller
Dc domain controllerDc domain controller
Dc domain controller
شرف الشريف
 
Workgroup vs domain
Workgroup vs domainWorkgroup vs domain
Workgroup vs domaintameemyousaf
 
SYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITY
SYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITYSYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITY
SYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITY
GOKUL SREE
 
Active directory
Active directory Active directory
Active directory deshvikas
 
17 roles of window server 2008 r2
17 roles of window server 2008 r217 roles of window server 2008 r2
17 roles of window server 2008 r2
IGZ Software house
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
udamale
 
IT system and network administrator
IT system and network administratorIT system and network administrator
IT system and network administrator
Muhammad Nasir ( MCSA/ MCTS / MCITP)
 
Systems Administration
Systems AdministrationSystems Administration
Systems Administration
Mark John Lado, MIT
 

What's hot (20)

IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
 
WINDOWS SERVER 2008
WINDOWS SERVER 2008WINDOWS SERVER 2008
WINDOWS SERVER 2008
 
Windows Server 2012
Windows Server 2012Windows Server 2012
Windows Server 2012
 
Server configuration
Server configurationServer configuration
Server configuration
 
install active directory and configure domain controller
install active directory and configure domain controllerinstall active directory and configure domain controller
install active directory and configure domain controller
 
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanMicrosoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
 
Active Directory Domain Services Installation & Configuration - Windows Ser...
Active Directory Domain Services  Installation & Configuration  - Windows Ser...Active Directory Domain Services  Installation & Configuration  - Windows Ser...
Active Directory Domain Services Installation & Configuration - Windows Ser...
 
Dhcp
DhcpDhcp
Dhcp
 
03 network services
03 network services03 network services
03 network services
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Dc domain controller
Dc domain controllerDc domain controller
Dc domain controller
 
Workgroup vs domain
Workgroup vs domainWorkgroup vs domain
Workgroup vs domain
 
SYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITY
SYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITYSYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITY
SYSTEM ADMINISTRATION AND MAINTENANCE NOTES PERIYAR UNIVERSITY
 
Active directory
Active directory Active directory
Active directory
 
17 roles of window server 2008 r2
17 roles of window server 2008 r217 roles of window server 2008 r2
17 roles of window server 2008 r2
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
IT system and network administrator
IT system and network administratorIT system and network administrator
IT system and network administrator
 
Systems Administration
Systems AdministrationSystems Administration
Systems Administration
 

Similar to Dhcp server configuration

DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012Abaady Sahal
 
6 understanding DHCP
6 understanding DHCP6 understanding DHCP
6 understanding DHCP
Hameda Hurmat
 
Durai presentation of dhcp
Durai presentation of dhcpDurai presentation of dhcp
Durai presentation of dhcpduraimurugan89
 
Networking DHCP server Setup Reports
Networking DHCP server Setup ReportsNetworking DHCP server Setup Reports
Networking DHCP server Setup Reports
Jiaul Hasan Jony
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
KushalAsodia
 
Dhcp
DhcpDhcp
dynamichost configuration protocol
dynamichost configuration protocoldynamichost configuration protocol
dynamichost configuration protocol
rajisri2
 
DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)
Netwax Lab
 
DHCP
DHCPDHCP
unit 2
unit 2unit 2
Configuring a DHCP Server
Configuring a DHCP Server Configuring a DHCP Server
Configuring a DHCP Server
Taherbenabdallah1
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router cisco
Guiro Lin
 
Session 3 Tp 3
Session 3 Tp 3Session 3 Tp 3
Session 3 Tp 3githe26200
 
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOL
VENKATESHAN A S
 
Dhcp by lalit bhati
Dhcp by lalit bhatiDhcp by lalit bhati
Dhcp by lalit bhatiLalit Bhati
 

Similar to Dhcp server configuration (20)

DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012
 
6 understanding DHCP
6 understanding DHCP6 understanding DHCP
6 understanding DHCP
 
Durai presentation of dhcp
Durai presentation of dhcpDurai presentation of dhcp
Durai presentation of dhcp
 
Networking DHCP server Setup Reports
Networking DHCP server Setup ReportsNetworking DHCP server Setup Reports
Networking DHCP server Setup Reports
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
 
Dhcp
DhcpDhcp
Dhcp
 
dynamichost configuration protocol
dynamichost configuration protocoldynamichost configuration protocol
dynamichost configuration protocol
 
DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)DHCP (dynamic host configuration protocol)
DHCP (dynamic host configuration protocol)
 
DHCP
DHCPDHCP
DHCP
 
Wintel ppt for dhcp
Wintel ppt for dhcpWintel ppt for dhcp
Wintel ppt for dhcp
 
unit 2
unit 2unit 2
unit 2
 
Configuring a DHCP Server
Configuring a DHCP Server Configuring a DHCP Server
Configuring a DHCP Server
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router cisco
 
Session 3 Tp 3
Session 3 Tp 3Session 3 Tp 3
Session 3 Tp 3
 
Dhcp
DhcpDhcp
Dhcp
 
Dhcp
DhcpDhcp
Dhcp
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
14047721
1404772114047721
14047721
 
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOL
 
Dhcp by lalit bhati
Dhcp by lalit bhatiDhcp by lalit bhati
Dhcp by lalit bhati
 

Recently uploaded

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 

Recently uploaded (20)

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 

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