Anda di halaman 1dari 14

p 

   


p 


 


Module about dynamic assignment of IP addresses with DHCP.

|
p   
  

½ Dynamic assignment of IP addresses is desirable for several


reasons:
± IP addresses are assigned on-demand
± Avoid manual IP configuration
± Support mobility of laptops

½ hree Protocols:
± RARP (until 1985, no longer used)
± BOO P (1985-1993)
± DHCP (since 1993)
½ Only DHCP is widely used today.


0
     
  

½    




± RARP is no longer used
± Works similar to ARP
± Broadcast a request for the IP address associated
with a given MAC address
± RARP server responds with an IP address
± Only assigns IP address (not the default router and
subnetmask)

 

 


#$

!"



ÿ
Ñ 

½ Ñ 
%
Ñ 
½ Host can configure its IP parameters at boot time.
½ 3 services.
± IP address assignment.
± Detection of the IP address for a serving machine.
± he name of a file to be loaded and executed by the client
machine (boot file name)

± Not only assigns IP address, but also default router,


network mask, etc.
± Sent as UDP messages (UDP Port 67 (server) and 68
(host))
± Use limited broadcast address (255.255.255.255):
½ hese addresses are never forwarded
r
Ñ 



i  i

½ BOO P can be used for


Argon
|$"|!#|#|!!
i downloading memory
AA:aA:24:71:e4:44 DHCP Server
image for diskless
 P
³filename´
workstations
½ Assignment of IP addresses
|$"|!#|#|
to hosts is static

£
p 

½ p 
   

p 
± Designed in 1993
± An extension of BOO P (Many similarities to BOO P)
± Same port numbers as BOO P
± Extensions:
½ Supports temporary allocation (³leases´) of IP addresses
½ DHCP client can acquire all IP configuration parameters

± DHCP is the preferred mechanism for dynamic assignment


of IP addresses
± DHCP can interoperate with BOO P clients.

Î
p 

 % 

¦r
00: 0: : : : r r

 :&: 
p  :


00: t0:t  .
 .
 .

˜
Ñ 'p    (

i  |

   Œ
Ñ 'p 

½ % : | 
 
          
½ ) %: |  
½ ) 
: Î  
½ %
:     
½  
p: J !       
½ 0 *    !     !  
½ 
 +, +  +
-
)  +
) + 

+
 *
         "   #

u
p     %

½ Message type is sent as an '    %


option.
1 DHCPDISCOVER

2 DHCPOER

3 DHCPREQUES

4 DHCPDECLINE

5 DHCPACK

6 DHCPNAK

7 DHCPRELEASE

8 DHCPINORM


%
  


½ Other DHCP information that is sent as an option:

0 $#  0"   


%&! '('   J ))* +!  ,!! 0
      - .!& $ -
.!& %  $ )   & ) 
! ) 0$)/0" 0$)/0"   %0
  1

||
p  %


½ DCHP DISCOVER

½ DCHP OER


p  %


½ DCHP DISCOVER

At this time, the DHCP


client can start to use the IP
address

½ Renewing a Lease
(sent when 5A of lease
has expired)
If DHCP server sends
DHCPNACK, then
address is released.
|ÿ
p  %


½ DCHP RELEASE

At this time, the DHCP


client has released the IP
address

|r