Professional Documents
Culture Documents
DHCP 安裝設定與管理維護
林寶森
jeffl@ms11.hinet.net
How DHCP Allocates IP Addresses
DHCP Client2:
Non-DHCP Client: IP configuration
Static IP from DHCP server
configuration
Lease Renewal
Lease Generation
DHCP Server
1 IP
IP Lease
Lease Request
Request
IP
IP Lease
Lease Offer
Offer 2
3 IP
IP Lease
Lease Selection
Selection
IP
IP Lease
Lease 4
Acknowledgement
Acknowledgement
The DHCP Lease Renewal Process
DHCPREQUEST
DHCPREQUEST
Source
SourceIPIPAddress
Address==192.168.0.77
192.168.0.77
Dest.
Dest.IP
IPAddress
Address==192.168.0.108
192.168.0.108
Requested
RequestedIPIPAddress
Address==192.168.0.77
192.168.0.77
Hardware
HardwareAddress
Address==08004....
08004....
DHCPACK
DHCPACK
Source
SourceIP IP Address
Address==192.168.0.108
192.168.0.108
Dest.
Dest.IPIPAddress
Address==192.168.0.77
192.168.0.77
Offered
OfferedIP IPAddress
Address==192.168.0.77
192.168.0.77
Client
ClientHardware
HardwareAddress
Address==08004...
08004...
Subnet
SubnetMask
Mask==255.255.255.0
255.255.255.0
Length
Lengthof ofLease
Lease==88days
days
DHCP Client Server DHCP Server
ServerIdentifier
Identifier==192.168.0.108
192.168.0.108
DHCP
DHCPOption:
Option:Router
Router==192.168.0.1
192.168.0.1
Automatic Private IP Addressing
DHCP Server
(Offline)
Request
Requestfor
forIP
IPAddress
Address
Computer Running
Windows XP / 2003
No
APIPA
APIPA IP Address
Generates
Generates IP
IP Address
Address Returned
169.254.X.X
Broadcasts
Broadcaststhe
the
IP
IPAddress
Address
No
Response
Assigns
Assigns IP
IP Address
Address
Securing the DHCP Service
Active Directory
DHCP Server 1
DHCP Server 2
Authorized List
DHCP Administrators
DHCP Log
DHCP Users
DHCP Server 1 DHCP Server 2
Overview of Scopes
Scope
192.168.1.0
192.168.1.1
IP Addresses Available for
192.168.1.2 Lease to Client Computers
192.168.1.3
192.168.1.4
DHCP Server
Selecting DHCP Options
DHCP option Description
A preferred list of IP addresses for routers on the
Routers same subnet as the DHCP clients
IP addresses for DNS name servers that DHCP
DNS servers clients use to resolve names
Domain name that DHCP clients should use
DNS domain when resolving names
A preferred NetBIOS name resolution method for
WINS node type the DHCP client to use
IP addresses of primary and secondary WINS
WINS server servers for the DHCP client to use
Reserving IP Addresses for
Client Computers
New Reservation
Add Close
Examining Option Classes
• Vendor-defined classes manage DHCP options that are
assigned to clients that are identified by vendor type
• User-defined classes manage DHCP options that are
assigned to clients with common configuration
requirements
Client1
Configuration A
Client2
DHCP Configuration B Client3
Server
Configuration C
Relative IPCONFIG Options
• IPCONFIG /all
Display full configuration information
• IPCONFIG /renew
Renew the IP address for the specified adapter
• IPCONFIG /release
Release the IP address for the specified adapter
Configuring a Superscope
SuperscopeA
SuperscopeA
DHCP Scope1 Scope2
Server 192.168.1.1 192.168.2.1
192.168.1.254 192.168.2.254
Computer4
Routed Network Configuration Options
DHCP Client
Broadcast
DHCP
Relay Broadcast
Agent
DHCP Client
Windows 2003
Server DHCP Server
Enhancing DHCP Availability
with Distributed Scopes
Scope for
192.168.1.X/24
defined in both
DHCP Servers
DHCP Detailed IP
address lease
Database information Compares information
to find inconsistencies
Registry Summary IP
address lease
information
Reconciles
inconsistencies in the
DHCP Server DHCP database
Example
Summary information Detailed information Reconciled DHCP database
Client has IP address IP address 192.168.1.34
Create an active lease entry
192.168.1.34 is available
What Are DHCP Statistics?
DHCP Server