SlideShare ist ein Scribd-Unternehmen logo
1 von 11
DHCP( Dynamic Host Configuration
Protocol )
By
Trupti Rajesh Kini
History & Evolution
1. RARP
The primary motivation for
replacing RARP with BOOTP
was that RARP was a data link
layer protocol. This made
implementation difficult on
many server platforms, and
required that a server be
present on each individual IP
subnet.
2.BOOTP
In computer networking, the
Bootstrap Protocol, or BOOTP,
is a network protocol used by a
network client to obtain an IP
address from a configuration
server.
3. DHCP
The Dynamic Host Configuration Protocol (DHCP) is a more
advanced protocol for the same purpose and has superseded
the use of BOOTP.
● Router
The router receives the configuration information through
a modem from an internet service provider, which also
operates DHCP servers with this router as one of the
clients. The clients request configuration settings using
the DHCP protocol such as an IP address, a
default route and one or more DNS server addresses.
Once the client implements these settings, the host is
able to communicate on the internet
● Printers,Smart
phones,PCs
● Modem
● ISP
Configuration
info
IP
● The DHCP server maintains a database of available IP
addresses and configuration information. When the server
receives a request from a client, the DHCP server
determines the network to which the DHCP client is
connected, and then allocates an IP address or prefix that is
appropriate for the client, and sends configuration
information appropriate for that client
● The query is typically initiated immediately after booting, and
must complete before the client can initiate IP-based
communication with other hosts. Upon disconnecting, the IP
address is returned to the pool for use by another computer.
This way, many other computers can use the same IP
address within minutes of each other.
● For example, the DHCP Message type option for an Offer
would appear as 0x35,0x01,0x02, where 0x35 is code 53 for
"DHCP Message Type", 0x01 means one octet follows and
0x02 is the value of "Offer".
Three methods of allocating IP-addresses
●
AAutomatic allocation: The DHCP server permanently assigns
a free IP address to a requesting client from the range
defined by the administrator. This is like dynamic allocation,
but the DHCP server keeps a table of past IP address
assignments, so that it can preferentially assign to a client
the same IP address that the client previously had.
●
SStatic allocation: The DHCP server allocates an IP address
based on a table with MAC address/IP address pairs, which
are manually filled in (perhaps by a network administrator).
Only clients with a MAC address listed in this table will be
allocated an IP address.
●
DDynamic allocation: A network administrator assigns a range
of IP addresses to DHCP, and each client computer on the
LAN is configured to request an IP address from the DHCP
server during network initialization. The request-and-grant
process uses a lease concept.
Disadvantage
● Because the DHCP server has no secure mechanism for
authenticating the client, clients can gain unauthorized
access to IP addresses by presenting credentials, such as
client identifiers, that belong to other DHCP clients
Important Commands
● less /var/lib/dhcp/dhclient.leases
● grep dhcp-server-identifier
/var/lib/dhcp/dhclient.leases
● man dhcp-options
● netstat -au | grep bootp
Change Ubuntu Server from DHCP
to a Static IP Address
● sudo vi /etc/network/interfaces
● For the primary interface, which is usually eth0,
you will see these lines:
auto eth0
iface eth0 inet dhcp
● Instead type the below lines:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
● sudo nano /etc/resolv.conf
● Add appropriate nameserver for eg:
nameserver 192.168.1.1
● sudo /etc/init.d/networking restart
● Ifconfig
● ping http://www.google.com.
If you get a response, name resolution is working:
References
● http://en.wikipedia.org/wiki/DHCP_server
● http://en.wikipedia.org/wiki/Bootstrap_Protocol
● http://www.cyberciti.biz/faq/linux-find-out-dhcp-server-ip-address/
● http://www.techsutram.com/2009/03/differences-ipv4-vs-ipv6.html
● http://helpdesk.rpi.edu/update.do?artcenterkey=65
● http://rbgeek.wordpress.com/2012/09/13/how-to-add-static-dns-in-ubuntu-1
● http://cyphrus.in/resolvconf-on-ubuntu
● http://rbgeek.wordpress.com/2012/04/03/change-ubuntu-server-from-dhcp-
● www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-
● https://duckduckgo.com/
● http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWT
O_:_Ch08_:_Configuring_the_DHCP_Server#.Uad_8NfS9xG

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Dhcp
DhcpDhcp
Dhcp
 
dynamic host configuration protocol
dynamic host configuration protocoldynamic host configuration protocol
dynamic host configuration protocol
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
DHCP
DHCPDHCP
DHCP
 
DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)DHCP (Dynamic Host Configuration Protocol)
DHCP (Dynamic Host Configuration Protocol)
 
Tutorial on dhcp
Tutorial on dhcp Tutorial on dhcp
Tutorial on dhcp
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Wintel ppt for dhcp
Wintel ppt for dhcpWintel ppt for dhcp
Wintel ppt for dhcp
 
DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
Dynamic Host Configuration Protocol
Dynamic Host Configuration ProtocolDynamic Host Configuration Protocol
Dynamic Host Configuration Protocol
 
Dhcp
DhcpDhcp
Dhcp
 
Intro to DNS
Intro to DNSIntro to DNS
Intro to DNS
 
SOHO Network Setup Tutorial
SOHO Network Setup Tutorial SOHO Network Setup Tutorial
SOHO Network Setup Tutorial
 
Servicio DHCP
Servicio DHCPServicio DHCP
Servicio DHCP
 
Dns server
Dns serverDns server
Dns server
 

Ähnlich wie Dhcp presentation

Ähnlich wie Dhcp presentation (20)

DHCP.pptx
DHCP.pptxDHCP.pptx
DHCP.pptx
 
Dhcp
DhcpDhcp
Dhcp
 
unit 2
unit 2unit 2
unit 2
 
IP Layer.pptx
IP Layer.pptxIP Layer.pptx
IP Layer.pptx
 
DHCP
DHCPDHCP
DHCP
 
dynamichost configuration protocol
dynamichost configuration protocoldynamichost configuration protocol
dynamichost configuration protocol
 
DHCP basics
DHCP basicsDHCP basics
DHCP basics
 
Dhcp server configuration
Dhcp server configurationDhcp server configuration
Dhcp server configuration
 
13 - DHCP Service.ppt
13 - DHCP Service.ppt13 - DHCP Service.ppt
13 - DHCP Service.ppt
 
DHCP in windows server 2012
DHCP in windows server 2012DHCP in windows server 2012
DHCP in windows server 2012
 
DHCP Protocol
DHCP ProtocolDHCP Protocol
DHCP Protocol
 
Customized Dynamic Host Configuration Protocol
Customized Dynamic Host Configuration ProtocolCustomized Dynamic Host Configuration Protocol
Customized Dynamic Host Configuration Protocol
 
zuiqui_DHC.ppt
zuiqui_DHC.pptzuiqui_DHC.ppt
zuiqui_DHC.ppt
 
6 understanding DHCP
6 understanding DHCP6 understanding DHCP
6 understanding DHCP
 
Networking DHCP server Setup Reports
Networking DHCP server Setup ReportsNetworking DHCP server Setup Reports
Networking DHCP server Setup Reports
 
Dhcp with cisco
Dhcp with ciscoDhcp with cisco
Dhcp with cisco
 
Configurar dhcp en router cisco
Configurar dhcp en router ciscoConfigurar dhcp en router cisco
Configurar dhcp en router cisco
 
DYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOLDYNAMIC HOST CONFIGURATION PROTOCOL
DYNAMIC HOST CONFIGURATION PROTOCOL
 
14047721
1404772114047721
14047721
 
Linux05 DHCP Server
Linux05 DHCP ServerLinux05 DHCP Server
Linux05 DHCP Server
 

Kürzlich hochgeladen

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Dhcp presentation

  • 1. DHCP( Dynamic Host Configuration Protocol ) By Trupti Rajesh Kini
  • 2. History & Evolution 1. RARP The primary motivation for replacing RARP with BOOTP was that RARP was a data link layer protocol. This made implementation difficult on many server platforms, and required that a server be present on each individual IP subnet. 2.BOOTP In computer networking, the Bootstrap Protocol, or BOOTP, is a network protocol used by a network client to obtain an IP address from a configuration server. 3. DHCP The Dynamic Host Configuration Protocol (DHCP) is a more advanced protocol for the same purpose and has superseded the use of BOOTP.
  • 3. ● Router The router receives the configuration information through a modem from an internet service provider, which also operates DHCP servers with this router as one of the clients. The clients request configuration settings using the DHCP protocol such as an IP address, a default route and one or more DNS server addresses. Once the client implements these settings, the host is able to communicate on the internet ● Printers,Smart phones,PCs ● Modem ● ISP Configuration info IP
  • 4. ● The DHCP server maintains a database of available IP addresses and configuration information. When the server receives a request from a client, the DHCP server determines the network to which the DHCP client is connected, and then allocates an IP address or prefix that is appropriate for the client, and sends configuration information appropriate for that client ● The query is typically initiated immediately after booting, and must complete before the client can initiate IP-based communication with other hosts. Upon disconnecting, the IP address is returned to the pool for use by another computer. This way, many other computers can use the same IP address within minutes of each other. ● For example, the DHCP Message type option for an Offer would appear as 0x35,0x01,0x02, where 0x35 is code 53 for "DHCP Message Type", 0x01 means one octet follows and 0x02 is the value of "Offer".
  • 5. Three methods of allocating IP-addresses ● AAutomatic allocation: The DHCP server permanently assigns a free IP address to a requesting client from the range defined by the administrator. This is like dynamic allocation, but the DHCP server keeps a table of past IP address assignments, so that it can preferentially assign to a client the same IP address that the client previously had. ● SStatic allocation: The DHCP server allocates an IP address based on a table with MAC address/IP address pairs, which are manually filled in (perhaps by a network administrator). Only clients with a MAC address listed in this table will be allocated an IP address. ● DDynamic allocation: A network administrator assigns a range of IP addresses to DHCP, and each client computer on the LAN is configured to request an IP address from the DHCP server during network initialization. The request-and-grant process uses a lease concept.
  • 6. Disadvantage ● Because the DHCP server has no secure mechanism for authenticating the client, clients can gain unauthorized access to IP addresses by presenting credentials, such as client identifiers, that belong to other DHCP clients
  • 7. Important Commands ● less /var/lib/dhcp/dhclient.leases ● grep dhcp-server-identifier /var/lib/dhcp/dhclient.leases ● man dhcp-options ● netstat -au | grep bootp
  • 8. Change Ubuntu Server from DHCP to a Static IP Address ● sudo vi /etc/network/interfaces ● For the primary interface, which is usually eth0, you will see these lines: auto eth0 iface eth0 inet dhcp
  • 9. ● Instead type the below lines: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1
  • 10. ● sudo nano /etc/resolv.conf ● Add appropriate nameserver for eg: nameserver 192.168.1.1 ● sudo /etc/init.d/networking restart ● Ifconfig ● ping http://www.google.com. If you get a response, name resolution is working:
  • 11. References ● http://en.wikipedia.org/wiki/DHCP_server ● http://en.wikipedia.org/wiki/Bootstrap_Protocol ● http://www.cyberciti.biz/faq/linux-find-out-dhcp-server-ip-address/ ● http://www.techsutram.com/2009/03/differences-ipv4-vs-ipv6.html ● http://helpdesk.rpi.edu/update.do?artcenterkey=65 ● http://rbgeek.wordpress.com/2012/09/13/how-to-add-static-dns-in-ubuntu-1 ● http://cyphrus.in/resolvconf-on-ubuntu ● http://rbgeek.wordpress.com/2012/04/03/change-ubuntu-server-from-dhcp- ● www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a- ● https://duckduckgo.com/ ● http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWT O_:_Ch08_:_Configuring_the_DHCP_Server#.Uad_8NfS9xG