Professional Documents
Culture Documents
Last updated: March 2008 The DHCPv6 client will know when it wants to use Table 1 DHCPv6 vs. DHCPv4 Message Type Comparison
DHCPv6, either based upon instruction of an attached
The Dynamic Host Configuration Protocol for IPv6 DHCPv6 Message Type DHCPv4 Message Type
router, or when no default gateway is present. The
(DHCPv6) has been standardized by the IETF through SOLICIT (1) DHCPDISCOVER
default gateway has two configurable bits in an Router
RFC3315. The Dynamic Host Configuration Protocol for ADVERTISE (2) DHCPOFFER
Advertisement (RA) available for this purpose:
IPv6 (DHCP) enables DHCP servers to pass configura- REQUEST (3), RENEW (5), REBIND (6) DHCPREQUEST
tion parameters, such as IPv6 network addresses, to IPv6 • ‘O’ bit—When this bit is set, the client can use
REPLY (7) DHCPACK/DHCPNAK
nodes. It offers the capability of automatic allocation of DHCPv6 to retrieve Other configuration parameters
RELEASE (8) DHCPRELEASE
reusable network addresses and additional configuration (ie: DNS addresses)
INFORMATION-REQUEST (11) DHCPINFORM
flexibility. This protocol is a stateful counterpart to "IPv6 • ‘M’ bit—When this bit is set, the client may use
Stateless Address Autoconfiguration" (RFC 2462), and DHCPv6 to retrieve a Managed IPv6 address from a DECLINE (9) DHCPDECLINE
can be used separately, or concurrently with the latter, to DHCPv6 server CONFIRM (4) none
obtain configuration parameters. RECONFIGURE (10) DHCPFORCERENEW
When a router sends an RA with ‘O’ bit set, but does
The basic DHCPv6 client-server concept is similar RELAY-FORW (12), RELAY-REPLY (13) none
not set the ‘M’ bit, the client can do Stateless Address
to using DHCP for IPv4. If a client wishes to receive Autoconfiguration (SLAAC) to obtain its IPv6 address,
configuration parameters, it will send out a request on New DHCPv6 Message Type Overview
and use DHCPv6 for obtaining additional information.
the attached local network to detect available DHCPv6 CONFIRM (4)
(An example of additional information is DNS). This
servers. This done through the “Solicit” and “Advertise” A client sends a Confirm message to any available
mechanism is well known as Stateless DHCPv6,
messages. Well known DHCPv6 Multicast addresses server to determine whether the addresses it was
because the DHCPv6 server does not need to keep
are used for this process. Next, the DHCPv6 client will assigned are still appropriate to the link to which the
track of the client address bindings.
”Request” parameters from an available server which will client is connected.
respond with the requested information with a “Reply” DHCPv6 uses an architecture concept of “options”
RELAY-FORW (12)
message. The diagram below demonstrates to carry additional parameters and information within
A relay agent sends a Relay-forward message to relay
the sequence of events: DHCPv6 messages. These options are aligned in Type-
messages to servers, either directly or through another
Length-Value (TLV) structure. Each Type and Length field
DHCPv6 Client Reply DHCPv6 Server
relay agent.
5 has a length of 16 bits, with a variable length available for
Request
4 the Value field. RELAY-REPL (13)
Advertise A server sends a Relay-reply message to a relay
3 32 bits
Solicit agent containing a message that the relay agent
2 8 bits 24 bits
delivers to a client.
Message Type Transaction ID
1
RA with ‘O’ and/or ‘M’ bit set
•
ia-na (3) option (12 bytes)
(iaid 1, t1 0, t2 0) Clients listen for DHCP messages on UDP port 546
DUID Option DUID Option • Servers and relay agents listen for DHCP messages
client-identifier (1) option (10 bytes)
00:03:00:01:01:02:03:04:05:06
client-identifier (1) option (10 bytes)
00:03:00:01:01:02:03:04:05:06 on UDP port 547
Copyright © 2008 Cisco Systems, Inc. All rights reserved. Cisco, Cisco IOS, Cisco Systems, and the Cisco Systems logo are registered trademarks or trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries. C45-456070-00 3/08