Sunteți pe pagina 1din 27

.



.
ก  

Lab 5:DHCP(Dynamic Host Configuration Protocol) server

 
ก
 ก
ก DHCP server   .  ก

 ก

DHCP server ก !" IP Address ก#$ 
%$ &% #'()#'(Automatic)
,#'ก Windows server 2003

ก  
("ก
 '
-" Cross 
กก.
ก#กกก#

$ !" DHCP Server  ก
%ก#ก# DHCP Server 

%//.  "0!1 2#

  1 ก   DHCP server  Windows server 2003


1. ''#
DHCP server " Add/remove component  Add or remove program  control panel

2. $ก  Networking Service > Details$


3. $ก$
)"30ก Dynamic Host Configuration Protocal(DHCP) >ok > ok > next

4. Windows ก''#
DHCP Server  -4
5.  DHCP Server #
0
  2 ก"#$   Scope %ก DHCP  Windows server 2003

1. 5 administrative tools > DHCP

2. ก server  '


ก ก new scope

3. $ก26) next  welcome to the new scope wizard %"#


'! %
4.  scope name -! scope  '
ก!
Name )37
-!$ "!
Description
"

5. ก 2)'- -2


!
IP ADDRESS  Subnet mask 
client (ก

ก IP Address '#
'! 10.0.1.100 - 10.0.1.150 ก Subnet Mask  255.255.0.0 )
6.  Add Exclusions กก!
IP Address  '
ก"ก   5.  %)!'
ก
client 
 (ก
"ก IP Address '#
'! 10.0.1.145 - 10.0.1.150 )

7.  Lease Duration กก  29' client 


 IP Address
8. '! %กก$! configuration -#$
client

9. ก$! DHCP option "!


ก$ ก$! Default Gateway 
'!ก2!)


10. ก Parent domain ก IP Address


$
server
11.  WINS Server ก next :!%%)!'
-! %

12. ก ก! '


ก
" %)!
13. ก Finish

  & "ก ' DHCP server ( )ก *# *


) ''#
DHCP Server -4 ก4'
ก' - !-)3
% %)!(") # ' 
ก' - #

+,-. #%/# (Client)  '
ก#ก#$! IP Address #$! ก DHCP Server  
:0-)3
% #

1. $ก  icon 0$ !"$ )' &  )2)
!
  ก Status

2. $ก  Properties

3.  ก Internet Protocol (TCP/IP) $ก  Properties


4.  ก Obtain an IP address automatically  Obtain DNS server address automatically
5. $ก OK  $
 IP Address ก $
DHCP Server -#
ก'% ก0

6.  ' - 0!$


%# IP Address ก$
Server 0  Status 
$ !" (("$ก 
icon $ !"!))  ก  tab Support 4 )0'!
;< !
Connection status

7.  0" " $ก0  Details  -)30% ก Command Line (")&$-#
#
 ipconfig /all
 )0 IP Address   "0!!
 ก (10.0.1.100) "0% ก Lease Obtained 
Lease Expires ( ))  8:39:59 #  2 กก=$) 2551 - -2 8:39:59 
#  3
กก=$) 2551)
8. ) (ก) Wireshark  # Packet  
# -
$
-!
 )0ก#%#
<  Protocol  
%)
#
 DHCP Request -!
%  IP Address ก#$
DHCP Server  
IP Address  %"2
 IP Address  ก#$
 ; $
DHCP Server ก4 -!
DHCP ACK ก#)"#
$
Client 
 ก$
-)3 IP Address  %#%%
9. ก:ก
ก,!"#
%)!-)3   # Packet %$')>?= (ก3 -" # Packet
)!" '!ก4"#
%)!%:) 7
 "')>?= %#

9.1. $
Client -!
DHCP Discover1 ก% broadcasts  
 IP Address ก# DHCP Server
(" ) MAC Address 
'#
%"
9.2. $
DHCP Server -!
DHCP Offer  broadcasts ก#) )ก# Offer IP Address ( IP   
$
Client ) " % (Lease Time)
9.3. $
Client -!
DHCP Request ก% broadcasts   ก!  IP Address  %#)
 $
DHCP Server "2 IP Address  ก#$
;
9.4. $
Server -!
DHCP ACK ก#) broadcasts  $
Client ) IP Address 
)#

  0 ก Activate $  Deactivate Scope

1
?@ABCDEFGHICJKLMNO Protocol BCDPQRISQSTUV@WPKX
ก
3ก!) $)   '
"2ก DHCP ! ) $
Server ก)
197 ) ก4-)3%("
1. $ก Start > Administrator Tolls > DHCP
2. $ก  scope  '
ก ก#  ก Deactivate

3. ) 5ก
 ) $
)"- 
  Scope  5

4. -)3' - %!%5ก DHCP  " " ("ก 3 -" Lan ก 


- "ก#%)!   $ 
Client % IP Address ก# DHCP Server 
)!
ก# ' -  ก Network Status ($ก  icon $ !") )) !%)!-)3

%#
0
- ("ก ping % $
Server (10.0.1.2)

5. ก'
ก5ก ก$#
%("ก$ก  Scope  ' 
ก ก Activate #
0
6. !)ก' - !-)3
%("0 ก Network Status #
0

- ("ก ping % $


Server (10.0.1.2)
  1 ก2ก 3# "4 ก '3 DHCP Server $  Scope

$#
  '
0-3'กกก#  ก
:กกก4-)3
% (" $ก  Scope  server  '
ก0-3' ก Display Statistics 4-3'กก#

0

4!$
Server 
%ก DHCP "0! 1 $
) IP Address #
) -)3
ก% 45 IP "#
  " #
%)!%ก ก 44 IP

  5 ก%/# DHCP Reservation (ก" IP Address "'(26)


ก@  '
ก-
 IP Address %   DHCP Server  ก IP Address  ก#$
  2 %
DHCP Server %%)! ก IP Address  ก#$
;
1. 5 DHCP MMC %( DHCP Server  Scope  '
ก
2. $ก  Reservations  ก New Reservation   "ก'!
New Reservation 7 )

3. '!
New Reservation -! )0'! %
 Reservation Name '#
 %-# "ก ("  
$
client '
%)!A ก#
 IP Address ก IP Address  '
กก4%ก# Host  Client  '
ก
 MAC Address  Physical Address 
$
Host  Client  '
ก ( )& ipconfig
/all )
ก
 Host  Tae
IP Address  10.0.1.120 $
Host ) MAC Address 
00:19:B9:2F:D5:87

4. ) -4 - $! option # Reservation #  @ '  %- ) ก# Scope 
4!'  '#
$!#  -!B  Host  IP Address !#  '!) -4  !)
ก- ) ก# scope $
Router : 10.0.1.1 (Gateway)
DNS Server : 10.0.1.2
DNS Domain Name : Golfkung.com
A7
-#
ก'%!%)!-!$!! '  '#
$!"
5. ' - !$
Client %# IP Address 30ก'
 %)!%("ก0  Network Status () ))
$ก  tab Support ( IP Address  30ก'
10.0.1.120)
ก' - (" ipconfig /all

  8 ก#3# DHCP *# Hardware %( (2 26)



$#
  '
) ก"" )0%"#
$
Server $
)! ( "$ 
)  '
ก
-
 )0 %ก$
ก) 19 ("ก# !
ก-
# $ ก-!
 )0 ก ก
 )0 ( Export & Import )
ก Export  )0 ก
1. %  Command Line ( MS-DOS )
2. )&$-#
netsh dhcp server export c:\dhcp.txt all
$-#
 -#
 export  )0#
) 
DHCP Server %%  Drive C: ก4 "0!%/& 
dhcp.txt  Text File

3. ก scope 
$
("$ก  scope  ก Delete
ก Import  )0-0!$
Server
1. %  Command Line ( MS-DOS )
2. )&$-#
netsh dhcp server import c:\dhcp.txt all

$-#
 -#
 import  )0 DHCP Server ก%/&  dhcp.txt   "0!  Drive C:

  : ;<กก Renew lease 3 Client


ก
กC7ก?ก Renew lease ( ก '! -#99ก
 IP Address ) ("กก
Lease Duration ) $! "; ! 1  (ก) Wireshark ก0 Packet  #
-
$
- -ก#
กก Lease Duration %("

1. $ก  Scope  %-


%  ก Properties
2. !
Lease duration for DHCP clients ก "!
 " 1 

3. (ก) Wireshark # Packet


("$
Client -!
Protocol DHCP Request %"#
$
Server   ก0! $
Client
"#
'
ก IP Address  "0! ก#  $
Server -!
Protocol DHCP ACK ก#)  ก
$
Client -)3 IP Address # '! %%

"=ก  

ก DHCP Server ก4 ("& $)-กก ก !" IP Address ก# $

Client #'()#' %)!'


)#
'#
$!'!
;
ก"#

 ("-)3ก!

IP
Address %')'
ก 
!"'! ก$ !" ก#
"#
-)3'')0-3'กก
ก)$&กก "#
-)3  
IP Address %-#$
 '
ก
' 
% ก" "#
-)3 backup  )0  import  )0%)!  !"ก% "!

$!
'#

ก

Protocol DHCP ก
  ก !" IP Address ) #

1. $
Client -!
DHCP Discover ก% broadcasts  
 IP Address ก# DHCP Server
(" ) MAC Address 
'#
%"
2. $
DHCP Server -!
DHCP Offer  broadcasts ก#) )ก# Offer IP Address ( IP   
$
Client ) " % (Lease Time)
3. $
Client -!
DHCP Request ก% broadcasts   ก!  IP Address  %#)
 $
DHCP Server "2 IP Address  ก#$
;
4. $
Server -!
DHCP ACK ก#) broadcasts  $
Client ) IP Address 
)#

ก

Protocol DHCP ก Renew Lease ) #


1. $
Client -!
Protocol DHCP Request %"#
$
Server   ก0! $
Client "#

'
ก IP Address  "0!

2. $
Server -!
Protocol DHCP ACK ก#)  ก$ 
Client -)3 IP Address
# '! %%

S-ar putea să vă placă și