You are on page 1of 7

Dynamic Host Configuration Protocol for IPv6

• draft-ietf-dhc-dhcpv6-28.txt (currently with RFC-Editor)
• Similar to DHCPv4, but
– Supports IPv6 addressing and configuration needs
– Is the “stateful” auto-configuration protocol for IPv6 (“M” bit)
– Is the “other” (non-address) configuration protocol for IPv6 (“0” bit)
– Clean design
• New optimized packet format (no BOOTP legacy)
• 16-bit option space, 16-bit option lengths
• Uses encapsulation (some messages/options encapsulate
others)
– Client may obtain many addresses (not just one)

EUD/X/PD AD03:0117 Rev PA8 2003/01/20 1

nodes configure addresses themselves with information from routers (if available). no managed addresses – Stateful .IPv6 Concepts • IPv6 auto-configuration – Stateless .nodes use DHCPv6 to obtain addresses and more – These are not mutually exclusive! – Duplicate address detection (DAD) used to avoid duplicated addresses • Link-local address always available – A node always creates a link-local address (stateless) – Allows for direct communication between nodes on a link – DHCPv6 client therefore has an address it can use EUD/X/PD AD03:0117 Rev PA8 2003/01/20 2 .

address is no longer usable • For stateless addresses. routers update lifetimes • For stateful addresses. DHCPv6 server updates lifetimes (similar to DHCPv4 lease extension) EUD/X/PD AD03:0117 Rev PA8 2003/01/20 3 .IPv6 Concepts • IPv6 addresses have preferred & valid lifetimes – Preferred means address may be used to initiate communications – Valid means address is usable for communications (for existing connections or for pending queries) – After valid lifetime expires.

DHCPv6 Operation Solicit Advertise Client selects one Advertise Advertise .Server B’s Request Reply T Client can now use addresses I and parameters for lifetimes M DHCP DHCP E DHCP Server Server Client Client renews lifetimes A Renew starting at T1 time B Reply Client releases addresses when shutting down Release EUD/X/PD AD03:0117 Rev PA8 2003/01/20 4 .

More on DHCPv6 – Client sends messages to link-local multicast address – Server unicasts response to client – Information-Request / Reply .provide client configuration information but no addresses – Confirm / Reply .assist in determining whether client moved – Reconfigure .allow servers to initiate a client reconfiguration – Basic client/server authentication capabilities in base standard – DHCP Unique Identifier (DUID) used to identify clients & servers – Identity Association ID (IAID) used to identify a collection of addresses – Relay Agents used when server not on-link – Relay Agents may be chained EUD/X/PD AD03:0117 Rev PA8 2003/01/20 5 .

| | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ • SOLICIT • RELEASE • ADVERTISE • DECLINE • REQUEST • RECONFIGURE • CONFIRM • INFORMATION-REQUEST • RENEW • RELAY-FORW • REBIND • RELAY-REPL • REPLY EUD/X/PD AD03:0117 Rev PA8 2003/01/20 6 . options . .DHCPv6 Basic Message Format 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | msg-type | transaction-id | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . (variable) .

DHCPv6 Option Format & Base Options 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | option-code | option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | option-data | | (option-len octets) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ • Authentication • Client Identifier • Server Unicast • Server Identifier • Status Code • Identity Association for Non-temporary Addresses • Rapid Commit • Identity Association for Temporary Addresses • User Class • IA Address • Vendor Class • Option Request • Vendor-specific Information • Preference • Interface-Id • Elapsed Time • Reconfigure Message • Relay Message • Reconfigure Accept EUD/X/PD AD03:0117 Rev PA8 2003/01/20 7 .