CChhaapptteerr 1166 
HHoosstt CCoonnffiigguurraattiioonn:: 
BBOOOOTTPP aanndd DDHHCCPP 
Objectives 
Upon completion you will be able to: 
• Know the types of information required by a system on boot-up 
• Know how BOOTP operates 
• Know how DHCP operates 
• Understand the differences between BOOTP and DHCP 
• Understand the DHCP transition state diagram 
TCP/IP Protocol Suite 1
16.1 BOOTP 
The Bootstrap Protocol (BOOTP) is a client/sseerrvveerr pprroottooccooll tthhaatt 
ccoonnffiigguurreess aa ddiisskklleessss ccoommppuutteerr oorr aa ccoommppuutteerr tthhaatt iiss bbooootteedd ffoorr tthhee ffiirrsstt 
ttiimmee.. BBOOOOTTPP pprroovviiddeess tthhee IIPP aaddddrreessss,, nneett mmaasskk,, tthhee aaddddrreessss ooff aa ddeeffaauulltt 
rroouutteerr,, aanndd tthhee aaddddrreessss ooff aa nnaammee sseerrvveerr.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
OOppeerraattiioonn 
PPaacckkeett FFoorrmmaatt 
TCP/IP Protocol Suite 2
Figure 16.1 Client and server on the same network 
TCP/IP Protocol Suite 3
Figure 16.2 Client and server on two different networks 
TCP/IP Protocol Suite 4
Figure 16.3 Use of UDP ports 
TCP/IP Protocol Suite 5
Figure 16.4 BOOTP packet format 
TCP/IP Protocol Suite 6
Figure 16.5 Option format 
TCP/IP Protocol Suite 7
TTaabbllee 1166..11 OOppttiioonnss ffoorr BBOOOOTTPP 
TCP/IP Protocol Suite 8
16.2 DHCP 
The Dynamic Host Configuration Protocol (DHCP) pprroovviiddeess ssttaattiicc aanndd 
ddyynnaammiicc aaddddrreessss aallllooccaattiioonn tthhaatt ccaann bbee mmaannuuaall oorr aauuttoommaattiicc.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
SSttaattiicc AAddddrreessss AAllllooccaattiioonn 
DDyynnaammiicc AAddddrreessss AAllllooccaattiioonn 
MMaannuuaall aanndd AAuuttoommaattiicc CCoonnffiigguurraattiioonn 
PPaacckkeett FFoorrmmaatt 
TTrraannssiittiioonn SSttaatteess 
EExxcchhaannggiinngg MMeessssaaggeess 
TCP/IP Protocol Suite 9
NNoottee:: 
DHCP provides static and dynamic 
address allocation that can be manual 
or automatic. 
TCP/IP Protocol Suite 10
Figure 16.6 DHCP packet 
TCP/IP Protocol Suite 11
TTaabbllee 1166..22 OOppttiioonnss ffoorr DDHHCCPP 
TCP/IP Protocol Suite 12
Figure 16.7 DHCP transition diagram 
TCP/IP Protocol Suite 13
Figure 16.8 Exchanging messages 
TCP/IP Protocol Suite 14

Chap 16 bootp & dhcp

  • 1.
    CChhaapptteerr 1166 HHoossttCCoonnffiigguurraattiioonn:: BBOOOOTTPP aanndd DDHHCCPP Objectives Upon completion you will be able to: • Know the types of information required by a system on boot-up • Know how BOOTP operates • Know how DHCP operates • Understand the differences between BOOTP and DHCP • Understand the DHCP transition state diagram TCP/IP Protocol Suite 1
  • 2.
    16.1 BOOTP TheBootstrap Protocol (BOOTP) is a client/sseerrvveerr pprroottooccooll tthhaatt ccoonnffiigguurreess aa ddiisskklleessss ccoommppuutteerr oorr aa ccoommppuutteerr tthhaatt iiss bbooootteedd ffoorr tthhee ffiirrsstt ttiimmee.. BBOOOOTTPP pprroovviiddeess tthhee IIPP aaddddrreessss,, nneett mmaasskk,, tthhee aaddddrreessss ooff aa ddeeffaauulltt rroouutteerr,, aanndd tthhee aaddddrreessss ooff aa nnaammee sseerrvveerr.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: OOppeerraattiioonn PPaacckkeett FFoorrmmaatt TCP/IP Protocol Suite 2
  • 3.
    Figure 16.1 Clientand server on the same network TCP/IP Protocol Suite 3
  • 4.
    Figure 16.2 Clientand server on two different networks TCP/IP Protocol Suite 4
  • 5.
    Figure 16.3 Useof UDP ports TCP/IP Protocol Suite 5
  • 6.
    Figure 16.4 BOOTPpacket format TCP/IP Protocol Suite 6
  • 7.
    Figure 16.5 Optionformat TCP/IP Protocol Suite 7
  • 8.
    TTaabbllee 1166..11 OOppttiioonnssffoorr BBOOOOTTPP TCP/IP Protocol Suite 8
  • 9.
    16.2 DHCP TheDynamic Host Configuration Protocol (DHCP) pprroovviiddeess ssttaattiicc aanndd ddyynnaammiicc aaddddrreessss aallllooccaattiioonn tthhaatt ccaann bbee mmaannuuaall oorr aauuttoommaattiicc.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: SSttaattiicc AAddddrreessss AAllllooccaattiioonn DDyynnaammiicc AAddddrreessss AAllllooccaattiioonn MMaannuuaall aanndd AAuuttoommaattiicc CCoonnffiigguurraattiioonn PPaacckkeett FFoorrmmaatt TTrraannssiittiioonn SSttaatteess EExxcchhaannggiinngg MMeessssaaggeess TCP/IP Protocol Suite 9
  • 10.
    NNoottee:: DHCP providesstatic and dynamic address allocation that can be manual or automatic. TCP/IP Protocol Suite 10
  • 11.
    Figure 16.6 DHCPpacket TCP/IP Protocol Suite 11
  • 12.
    TTaabbllee 1166..22 OOppttiioonnssffoorr DDHHCCPP TCP/IP Protocol Suite 12
  • 13.
    Figure 16.7 DHCPtransition diagram TCP/IP Protocol Suite 13
  • 14.
    Figure 16.8 Exchangingmessages TCP/IP Protocol Suite 14