Professional Documents
Culture Documents
Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP)
Microsoft Windows
DHCP
Messages
DHCP client DHCP server DHCP
DHCP 8 User Datagram Protocol (UDP)
DHCP client DHCP
255.255.255.255 DHCP client unicast DHCP
DHCP client UDP 68 DHCP server DHCP relay agent 67
DHCP 8 :
DHCPDISCOVER DHCP client DHCP server
DHCPOFFER DHCP server DHCP client
DHCPDISCOVER
DHCPREQUEST DHCP client DHCP server
DHCP server
( DHCP )
DHCPACK DHCP server DHCP client DHCPREQUEST
subnet DHCP client
Broadcast Flag
DHCP server Windows Server
2008 Broadcast flag Flag
broadcast-based DHCP DHCP client
DHCP server Broadcast
flag registry IgnoreBroadcastFlag
0
IgnoreBroadcastFlag
Location:
14-1 DHCP 236 variable-length
DHCP options DHCP UDP DHCP
UDP datagram variable-length DHCP maximum
transmission unit (MTU) 264 20 IP header 8
UDP header Ethernet IP MTU 1,500 DHCP options
DHCP Options
DHCP options IP Address DHCP header DHCP options
IP Address DHCP client Your IP Address
DHCP options
DHCP client default gateway
DHCP server Windows Server 2008 DHCP option
RFC 2131 2132 vendor-specific DHCP options Windowsbased DHCP clients
14-2 DHCP options
Option
Name
Pad
Option
Code
(Deci
mal)
0
Option
Length
Value
N/A
Option Description
DHCP Pad
option con-sists
option code
0
Subnet
Mask
subnet mask
DHCPOFFER
DHCPACK
Router
Variable:
client subnet
Domain
Name
Servers
Option
Host
Name
DNS
Domain
Name
Variable:
Option
Code
(Deci
mal)
12
15
DNS servers
Option
Option
Variable
client
length: DHCPDISCOVER,
DHCPREQUEST
1
Variablelength:
DHCPNAK
DNS domain
DHCP client
ASCII
host DNS
characters
1
Perform
Router
Discovery
31
client
Router
Discovery
subnet
Static
Route
33
Variable:
class-based desti-
next-hop
nation
()
static
routes DHCP client
Vendor43
specific
Informatio
n
Variable
length
clients servers
vendorspecific information
vendorspecific
RFC 2132
WINS/NBN 44
S
Servers
Variable:
WINS
primary
secondary
NetBIOS
Over
TCP/IP
Node
Type
46
NetBIOS
Scope ID
47
Requeste
d
Address
50
server
NetBIOS
1 B-node (broadcast)
2 P-node (point-topoint)
4 M-node (mixed)
8 H-node (hybrid)
Variable:
NetBIOS
over TCP/IP
1
4
DHCP client
() address
DHCPREQUEST,
DHCPDECLINE
DHCPDISCOVER
Option
Lease
Time
Option
Code
(Deci
mal)
51
Option
Option
DHCP
Message
Type
53
Server
Identifier
54
DHCP
1 DHCPDISCOVER
2 DHCPOFFER
3 DHCPREQUEST
4 DHCPDECLINE
5 DHCPACK
6 DHCPNAK
7 DHCPRELEASE
8 DHCPINFORM
DHCP
DHCP
server
DHCOFFER,
DHCPREQUEST,
DHCPACK, DHCPDECLINE
DHCPRELEASE
Parameter 55
Request
List
Variable
DHCP
length:
options DHCP client
option
1
DHCP
option
DHCPDISCOVER,
DHCPREQUEST
DHCPINFORM
Renewal
Time (T1)
58
client
Rebinding 59
Time
(T2)
DHCPOFFER
DHCPACK
client
rebinding
DHCPOFFER
DHCPACK
Option
Client
Identifie
Dynamic
DNS
Update
Option
Code
(Deci
mal)
61
81
Option
Option
Variable
DHCP
length:
client Windows
based DHCP clients
2
MAC address client
DHCPDISCOVER
Ethernet
DHCPREQUEST,
DHCPDECLINE, DHCPNAK,
6
DHCPRELEASE
Variable
fully qualified domain
length
name
(FQDN) DHCP
server FQDN
DNS server
DHCPREQUEST
Classless
Static
Route
121
Variable:
subnet mask
5
next-hop
()
static routes
DHCP client
Classless
Static
Route
249
RFC
3442
Variable:
subnet mask
5
next-hop
()
static routes
DHCP client
121
End
255
N/A
options
DHCP
DHCP
option
Option Code
255
14-3 DHCP DHCP client DHCP server subnet
DHCP client
14-3 DHCP
14-01
\Captures CD-ROM DHCPDISCOVER ( 1) 14-01
Network Monitor 3.1
Frame:
- Ethernet: Etype = Internet IP (IPv4)
+ DestinationAddress: *BROADCAST
+ SourceAddress: 00123F17E0CF
EthernetType: Internet IP (IPv4), 2048(0x800)
+ Ipv4: Next Protocol = UDP, Packet ID = 10839, Total IP Length = 328
+ Udp: SrcPort = BOOTP client(68), DstPort = BOOTP server(67), Length = 308
DHCP (Client ,
, Server Gateway ) 0.0.0.0
Magic Cookie option string 99.130.83.99
DHCP BOOTP
DHCP DHCPDISCOVER
DHCP client 10.0.0.3.
DHCP client VistaPC
DHCPOFFER ( 2) 14-01
Frame:
- Ethernet: Etype = Internet IP (IPv4)
+ DestinationAddress: *BROADCAST
+ SourceAddress: 00123F2B3407
EthernetType: Internet IP (IPv4), 2048(0x800)
+ Ipv4: Next Protocol = UDP, Packet ID = 572, Total IP Length = 328
+ Udp: SrcPort = BOOTP server(67), DstPort = BOOTP client(68), Length = 308
- Dhcp: Boot Reply, MsgType = OFFER, TransactionID = 0xBCBCFAE3
OpCode: Boot Reply, 2(0x02)
Hardwaretype: Ethernet
HardwareAddressLength: 6 (0x6)
HopCount: 0 (0x0)
TransactionID: 3166501603 (0xBCBCFAE3)
Seconds: 0 (0x0)
- Flags: 0 (0x0)
Broadcast: (0...............) No Broadcast
Reserved: (.000000000000000)
ClientIP: 10.0.0.3
YourIP: 10.0.0.3
ServerIP: 10.0.0.1
RelayAgentIP: 0.0.0.0
- ClientHardwareAddress: 00-12-3F-17-E0-CF
EthernetAddress: 00-12-3F-17-E0-CF
ServerHostName:
BootFileName:
MagicCookie: 99.130.83.99
MessageType: OFFER
Code: DHCP Message Type, 53(0x35)
Length: 1 UINT8(s)
Value: OFFER, 2(0x2)
SubnetMask: 255.0.0.0
Code: Subnet Mask, 1(0x01)
Length: 4 UINT8(s)
IpAddress: 255.0.0.0
RenewTimeValue: Subnet Mask: 4 day(s),0 hour(s) 0 minute(s) 0 second(s)
Code: Renewal (T1) Time Value, 58(0x3A)
Length: 4 UINT8(s)
Timeout: 4 day(s),0 hour(s) 0 minute(s) 0 second(s)
RebindingTimeValue: Subnet Mask: 7 day(s),0 hour(s) 0 minute(s) 0 second(s)
Code: Rebinding (T2) Time Value, 59(0x3B)
Length: 4 UINT8(s)
Timeout: 7 day(s),0 hour(s) 0 minute(s) 0 second(s)
IPAddressLeaseTime: Subnet Mask: 8 day(s),0 hour(s) 0 minute(s) 0 second(s)
Code: IP Address Lease Time, 51(0x33)
Length: 4 UINT8(s)
Timeout: 8 day(s),0 hour(s) 0 minute(s) 0 second(s)
ServerIdentifier: 10.0.0.1
Code: Server Identifier, 54(0x36)
Length: 4 UINT8(s)
IpAddress: 10.0.0.1
DomainName: contoso.com
Code: Domain Name, 15(0x0F)
Length: 12 UINT8(s)
Name: contoso.com
DomainNameServer: 10.0.0.1
Code: Domain Name Server, 6(0x06)
Length: 4 UINT8(s)
IpAddress: 10.0.0.1
End:
Code: End of Options, 255(0xFF)
Broadcast flag DHCPDISCOVER broadcast
DHCP client 10.0.0.3
DHCP server 10.0.0.1
DHCP Message Type DHCPOFFER
Subnet mask 255.0.0.0
T1 4
T2 7
8
Network adapter contoso.com
DNS server network adapter 10.0.0.1
DHCPREQUEST ( 3) 14-01
Frame:
- Ethernet: Etype = Internet IP (IPv4)
+ DestinationAddress: *BROADCAST
+ SourceAddress: 00123F17E0CF
EthernetType: Internet IP (IPv4), 2048(0x800)
+ Ipv4: Next Protocol = UDP, Packet ID = 10840, Total IP Length = 350
+ Udp: SrcPort = BOOTP client(68), DstPort = BOOTP server(67), Length = 330
- Dhcp: Boot Request, MsgType = REQUEST, TransactionID = 0xBCBCFAE3
OpCode: Boot Request, 1(0x01)
Hardwaretype: Ethernet
HardwareAddressLength: 6 (0x6)
HopCount: 0 (0x0)
TransactionID: 3166501603 (0xBCBCFAE3)
Seconds: 0 (0x0)
- Flags: 32768 (0x8000)
Broadcast: (1...............) Broadcast
Reserved: (.000000000000000)
ClientIP: 0.0.0.0
YourIP: 0.0.0.0
ServerIP: 0.0.0.0
RelayAgentIP: 0.0.0.0
- ClientHardwareAddress: 00-12-3F-17-E0-CF
EthernetAddress: 00-12-3F-17-E0-CF
ServerHostName:
BootFileName:
MagicCookie: 99.130.83.99
- MessageType: REQUEST
Code: DHCP Message Type, 53(0x35)
Length: 1 UINT8(s)
Value: REQUEST, 3(0x3)
- clientID: (Type 1)
Code: Client-identifier, 61(0x3D)
Length: 7 UINT8(s)
Type: HardwareAddress(1)
ClientID: Binary Large Object (6 Bytes)
- RequestedIPAddress: 10.0.0.3
Code: Requested IP Address, 50(0x32)
Length: 4 UINT8(s)
IpAddress: 10.0.0.3
- ServerIdentifier: 10.0.0.1
Code: Server Identifier, 54(0x36)
Length: 4 UINT8(s)
IpAddress: 10.0.0.1
- HostName: VistaPC
Code: Host Name, 12(0x0C)
Length: 7 UINT8(s)
Name: VistaPC
- FullyQualifiedDomainName:
Code: Fully Qualified Domain Name, 81(0x51)
Length: 22 UINT8(s)
- Flag: 0 (0x0)
MBZ: (0000....) 0
N: (....0...) SHOULD NOT perform the A RR (FQDN to address) DNS updates
E: (.....0..) ASCII encoding of the Domain Name field (deprecated)
O: (......0.) the server has not overridden the clients preference for the S bit
S: (.......0) SHOULD NOT perform the A RR (FQDN to address) DNS updates
RCODE1: 0 (0x0)
RCODE2: 0 (0x0)
DomainName: VistaPC.contoso.com
- VendorClassIdentifier: MSFT 5.0
Code: Class-identifier, 60(0x3C)
Length: 8 UINT8(s)
VendorClassIdentifier: MSFT 5.0
- ParameterRequestList:
Code: Parameter Request List, 55(0x37)
Length: 12 UINT8(s)
Parameter: Subnet Mask, 1(0x01)
Parameter: Domain Name, 15(0x0F)
Parameter: Router, 3(0x03)
Parameter: Domain Name Server, 6(0x06)
Parameter: NetBIOS over TCP/IP Name Server, 44(0x2C)
Parameter: NetBIOS over TCP/IP Node Type, 46(0x2E)
Parameter: NetBIOS over TCP/IP Scope, 47(0x2F)
Parameter: Perform Router Discovery, 31(0x1F)
Parameter: Static Route, 33(0x21)
Parameter: Classless Static Route Option, 121(0x79)
Parameter: Classless Static Route, 249(0xF9)
Parameter: Vendor specific information, 43(0x2B)
- End:
Code: End of Options, 255(0xFF)
DHCP client Broadcast flag Flags broadcast
Reserved: (.000000000000000)
ClientIP: 0.0.0.0
YourIP: 10.0.0.3
ServerIP: 0.0.0.0
RelayAgentIP: 0.0.0.0
ClientHardwareAddress: 00-12-3F-17-E0-CF
EthernetAddress: 00-12-3F-17-E0-CF
ServerHostName:
BootFileName:
MagicCookie: 99.130.83.99
MessageType: ACK
Code: DHCP Message Type, 53(0x35)
Length: 1 UINT8(s)
Value: ACK, 5(0x5)
RenewTimeValue: Subnet Mask: 4 day(s),0 hour(s) 0 minute(s) 0 second(s)
Code: Renewal (T1) Time Value, 58(0x3A)
Length: 4 UINT8(s)
Timeout: 4 day(s),0 hour(s) 0 minute(s) 0 second(s)
RebindingTimeValue: Subnet Mask: 7 day(s),0 hour(s) 0 minute(s) 0 second(s)
Code: Rebinding (T2) Time Value, 59(0x3B)
Length: 4 UINT8(s)
Timeout: 7 day(s),0 hour(s) 0 minute(s) 0 second(s)
IPAddressLeaseTime: Subnet Mask: 8 day(s),0 hour(s) 0 minute(s) 0 second(s)
Code: IP Address Lease Time, 51(0x33)
Length: 4 UINT8(s)
Timeout: 8 day(s),0 hour(s) 0 minute(s) 0 second(s)
ServerIdentifier: 10.0.0.1
Code: Server Identifier, 54(0x36)
Length: 4 UINT8(s)
IpAddress: 10.0.0.1
SubnetMask: 255.0.0.0
Code: Subnet Mask, 1(0x01)
Length: 4 UINT8(s)
IpAddress: 255.0.0.0
FullyQualifiedDomainName:
Code: Fully Qualified Domain Name, 81(0x51)
Length: 3 UINT8(s)
Flag: 0 (0x0)
MBZ: (0000....) 0
N: (....0...) SHOULD NOT perform the A RR (FQDN to address) DNS updates
E: (.....0..) ASCII encoding of the Domain Name field (deprecated)
O: (......0.) the server has not overridden the clients preference for the S bit
S: (.......0) SHOULD NOT perform the A RR (FQDN to address) DNS updates
RCODE1: 255 (0xFF)
RCODE2: 255 (0xFF)
DomainName: contoso.com
Code: Domain Name, 15(0x0F)
Length: 12 UINT8(s)
Name: contoso.com
DomainNameServer: 10.0.0.1
Code: Domain Name Server, 6(0x06)
Length: 4 UINT8(s)
IpAddress: 10.0.0.1
End:
Code: End of Options, 255(0xFF)
Broadcast flag DHCPREQUEST
DHCP client 10.0.0.3
DHCP Massage Type DHCPACK
DHCP server DNS dynamic DHCP client
DHCP client DHCP server DHCP relay agent DHCP relay agent
DHCPDISCOVER DHCPREQUEST, Hops,
IP Address DHCP relay agent Gateway IP
Address DHCP server DHCP server
DHCPOFFER DHCPACK DHCP relay agent DHCP relay
agent ( flag flag
0) DHCP client
Lease
IP address
DHCP Client DHCP
DHCPREQUEST DHCPACK DHCP Client
Subnet DHCP Server DHCP Client DHCPREQUEST
DHCPACK Unicast DHCP Client Subnet
IP address DHCPREQUEST DHCPACK
DHCPREQUEST DHCPACK Broadcast
Subnet
DHCP Client DHCPREQUEST DHCP Server
DHCP Server DHCPNAK DHCP Client Client
IP address Client
DHCP
DHCP Client
IP address Subnet Wireless IEEE802.11
Access Point DHCP Client Subnet 14-4
DHCP