RFC 3736
Stateless Dynamic Host Configuration Protocol (DHCP) Service for IPv6
Stateless Dynamic Host Configuration Protocol (DHCP) Service for IPv6 ๐
okay bestie, the title block is giving: this is RFC 3736 from the Network Working Group, written by R. Droms at Cisco Systems ๐ . It's on the Standards Track and dated April 2004 ๐ . The header doesn't list anything it obsoletes or updates, so no drama there โจ.
Status of this Memo ๐
This document specifies an Internet standards track protocol for the Internet community, and it wants discussion and suggestions for improvements ๐ซถ. For the standardization state and status of this protocol, check the current edition of the "Internet Official Protocol Standards" (STD 1). Distribution of this memo is unlimited ๐.
Copyright Notice ๐
Copyright (C) The Internet Society (2004). All Rights Reserved.
Abstract ๐ฆ
Stateless Dynamic Host Configuration Protocol service for IPv6 (DHCPv6) is how nodes grab configuration info, like the addresses of DNS recursive name servers ๐ธ. The big perk is that it doesn't need to keep any dynamic state for individual clients, so it's lowkey so chill โจ. A node that uses stateless DHCP must have gotten its IPv6 addresses some other way, usually stateless address autoconfiguration ๐. This document explains which parts of RFC 3315 must be implemented in each kind of DHCP agent so that agent can support stateless DHCP ๐ฅ.
1. Introduction ๐ง
Nodes that already have IPv6 addresses from somewhere else, like stateless address autoconfiguration [6] or manual configuration, can use stateless DHCP to get other config info, such as a list of DNS recursive name servers or SIP servers ๐. A stateless DHCP server only hands out configuration information and does not do any address assignment ๐. It's called "stateless" because it doesn't have to keep any dynamic state for individual clients ๐ซง.
The DHCP specification [1] defines more than 10 protocol messages and 20 options, but only a subset of those are required for stateless DHCP service ๐คฏ. This document spells out which messages and options defined in RFC 3315 are required for stateless DHCP service. It's meant to guide interoperable implementation of clients and servers that use stateless DHCP service ๐.
The operation of relay agents is the same for stateless and stateful DHCP service, and it's described in the DHCP specification ๐.
Section 4 of this document lists the sections of the DHCP document that an implementor should read for an overview of the DHCP specification and the basic requirements of a DHCP service ๐. Section 5 lists the specific messages and options that are required for stateless DHCP service ๐ . Section 6 describes how stateless and stateful DHCP servers work together to serve clients that need address assignment and clients that only need stateless service ๐.
2. Terminology ๐ฉท
Throughout this document, "DHCP" means DHCP for IPv6 ๐ท.
This document uses the terminology defined in RFC 2460 [2], the DHCP specification [1], and the DHCP DNS configuration options specification [3] ๐ง .
"Stateless DHCP" is the use of DHCP to provide configuration information to clients without the server having to maintain dynamic state about those DHCP clients ๐.
3. Overview ๐
This document assumes that a node using stateless DHCP configuration is not using DHCP for address assignment, and that the node has worked out at least a link-local address, as described in section 5.3 of RFC 2461 [4] ๐ฆ.
To get configuration parameters through stateless DHCP, a node sends the DHCP Information-request message ๐จ. DHCP servers answer with a Reply message that carries configuration parameters for the node ๐. That Reply can carry things like a list of DNS recursive name servers [3] and SIP servers [5] ๐ซถ.
This document doesn't apply to the function of DHCP relay agents as described in RFC 3315. One network element can provide both DHCP server and DHCP relay service ๐ญ. For example, it can give stateless DHCP service to hosts that want stateless DHCP, while relaying messages from hosts that want address assignment through DHCP to another DHCP server ๐.
4. Basic Requirements for Implementation of DHCP ๐งฉ
Several sections of the DHCP specification give background info or define parts of the spec that are common to all implementations ๐:
1-4: give an introduction to DHCP and an overview of DHCP message
flows
5: defines constants used throughout the protocol specification
6, 7: illustrate the format of DHCP messages
8: describes the representation of Domain Names
9: defines the "DHCP unique identifier" (DUID)
13-16: describe DHCP message transmission, retransmission, and
validation
21: describes authentication for DHCP
5. Implementation of Stateless DHCP ๐
The client says it wants configuration info by sending an Information-request message that includes an Option Request option, which lists the options it wants to get from the DHCP server ๐. For example, if the client wants a list of DNS recursive name servers, it names the DNS Recursive Name Server option in the Information-request message ๐ธ. The server works out the right configuration parameters for the client based on its configuration policies, then replies with a Reply message holding the requested parameters ๐
. In this example, the server would reply with DNS configuration parameters ๐ฎ.
As described in section 18.1.5 of RFC 3315, a node may include a Client Identifier option in the Information-request message to identify itself to a server โจ. The reason is that the server administrator may want to customize the server's response to each node based on the node's identity ๐ชช.
RFC 3315 doesn't define any mechanisms for controlling when a host uses an Information-request message to get updated configuration parameters ๐ฐ๏ธ. The DHC WG has taken on developing such a mechanism or mechanisms, which will be published as Standards-track RFC(s) ๐ ๏ธ.
RFC 3315 also doesn't give any guidance on when a host might send an Information-request message to get updated configuration parameters after it has moved to a new link ๐ถโโ๏ธ. The DHC WG is reviewing a related document, "Detection of Network Attachment (DNA) in IPv4" [8], which describes how a host using IPv4 can figure out when to use DHCPv4 ๐. Either the DHC WG or a WG formed from the DNA BOF will develop a similar document for IPv6 ๐.
5.1. Messages Required for Stateless DHCP Service ๐ฌ
Clients and servers implement the following messages for stateless DHCP service. The section numbers in this list refer to the DHCP specification ๐งพ:
Information-request: a DHCP client sends this to a server to request configuration parameters (sections 18.1.5 and 18.2.5) ๐คReply: a DHCP server sends this to a client, containing configuration parameters (sections 18.2.6 and 18.2.8) ๐ฅ
Servers and relay agents also implement the following messages for stateless DHCP service. The section numbers in this list refer to the DHCP specification ๐:
Relay-forward: a DHCP relay agent sends this to carry the client message to a server (section 15.13) ๐Relay-reply: a DHCP server sends this to carry a response message back to the relay agent (section 15.14) ๐ชฝ
5.2. Options Required for Stateless DHCP Service ๐
Clients and servers implement the following options for stateless DHCP service. The section numbers in this list refer to the DHCP specification ๐๏ธ:
Option Request: specifies the configuration information that the client is requesting from the server (section 22.7) ๐โโ๏ธStatus Code: used to indicate completion status or other status information (section 22.13) โServer Identifier: used to identify the server responding to a client request (section 22.3) ๐
Servers and relay agents also implement the following options for stateless DHCP service. The section numbers in this list refer to the DHCP specification ๐งฉ:
Client message: a DHCP relay agent sends this in a Relay-forward message to carry the client message to a server (section 20) ๐ฆServer message: a DHCP server sends this in a Relay-reply message to carry a response message to the relay agent (section 20) ๐Interface-ID: sent by the DHCP relay agent and returned by the server to identify the interface to use when forwarding a message to the client (section 22.18) ๐ฃ๏ธ
5.3. Options Used for Configuration Information ๐
Clients and servers use the following options to pass configuration information to clients. Note that other options for configuration information may be specified in future Internet Standards ๐ฎ:
DNS Recursive Name Servers: specifies the DNS recursive name servers [7] the client uses for name resolution. See "DNS Configuration options for DHCPv6" [3] ๐DNS search list: specifies the domain names to be searched during name resolution. See "DNS Configuration options for DHCPv6" [3] ๐SIP Servers: specifies the SIP servers the client uses to get a list of domain names of IPv6 addresses that can be mapped to one or more SIP outbound proxy servers [5] ๐
5.4. Other Options Used in Stateless DHCP ๐ธ
Clients and servers may implement the following options for stateless DHCP service. The section numbers in this list refer to the DHCP specification ๐ซง:
Preference: a DHCP server sends this to indicate the preference level for the server (section 22.8) โญElapsed time: a DHCP client sends this to indicate the time since the client began the DHCP configuration process (section 22.9) โฑ๏ธUser Class: a DHCP client sends this to give the server extra info for selecting configuration parameters for the client (section 22.15) ๐คVendor Class: a DHCP client sends this to give the server extra info about the client vendor and hardware for selecting configuration parameters for the client (section 22.16) ๐ท๏ธVendor-specific Information: used to pass information to clients in options defined by vendors (section 22.17) ๐ญClient Identifier: a DHCP client sends this to identify itself (section 22.2). Clients are not required to send this option. Servers send the option back if it is included in a message from a client ๐ชAuthentication: used to provide authentication of DHCP messages (section 21) ๐
6. Interaction with DHCP for Address Assignment ๐
okay so picture this: some networks have clients using stateless address autoconfiguration plus DHCP just for DNS config ๐, AND clients using DHCP for stateful address config ๐ฆ. depending on how the relay agents are set up, DHCP servers that are only meant for stateless config might get messages from the stateful crowd ๐
a DHCP server that can only hand out stateless config through the Information-request/Reply exchange will discard any other DHCP messages it gets ๐ . like, specifically, it throws away everything except Information-Request or Relay-forward โจ, and it does NOT join any stateful address configuration exchanges ๐ โโ๏ธ. if there are other DHCP servers set up for stateful address assignment, one of those servers handles the address assignment ๐ง so everybody's taken care of, periodt ๐
7. Security Considerations ๐ฅ
okay this section is SERIOUS bestie ๐ญ but it's also kind of a relief? stateless DHCP service is a proper subset of the DHCP service in the DHCP spec, RFC 3315 [1] ๐ซถ. so stateless DHCP adds no extra security considerations beyond what's covered in sections 21, 22.11, and 23 of the DHCP specification [1] โจ
BUT (and this is a big but ๐) the config info a node gets through stateless DHCP can be used to pull off spoofing, man-in-the-middle, denial-of-service, and other attacks ๐ฑ. the specs for each option that carries config info go into more detail about these attacks ๐. and good news: Authenticated DHCP, described in sections 21 and 22.11 of the DHCP specification [1], can be used to avoid attacks mounted through the stateless DHCP service ๐ so lock it down, bestie ๐
8. Acknowledgments ๐ธ
Jim Bound, Ted Lemon, and Bernie Volz reviewed this document and gave editorial suggestions, and they're literally the main characters here ๐ซถ thanks also to Peter Barany, Tim Chown, Christian Huitema, Tatuya Jinmei, Pekka Savola, and Juha Wiljakka for their review and comments ๐
9. References ๐
9.1. Normative References
[1] Droms, R., Ed., Bound, J., Volz, B., Lemon, T., Perkins, C. and M. Carney, "Dynamic Host Configuration Protocol for IPv6 (DHCPv6)", RFC 3315, July 2003.
[2] Deering, S. and R. Hinden, "Internet Protocol, Version 6 (IPv6) Specification", RFC 2460, December 1998.
9.2. Informative References
[3] Droms, R., Ed., "DNS Configuration options for Dynamic Host Configuration Protocol for IPv6 (DHCPv6)", RFC 3646, December 2003.
[4] Narten, T., Nordmark, E. and W. Simpson, "Neighbor Discovery for IP Version 6 (IPv6)", RFC 2461, December 1998.
[5] Schulzrinne, H. and B. Volz, "Dynamic Host Configuration Protocol (DHCPv6) Options for Session Initiation Protocol (SIP) Servers", RFC 3319, July 2003.
[6] Thomson, S. and T. Narten, "IPv6 Stateless Address Autoconfiguration", RFC 2462, December 1998.
[7] Mockapetris, P., "Domain names - concepts and facilities", STD 13, RFC 1034, November 1987.
[8] Aboba, B., "Detection of Network Attachment (DNA) in IPv4", Work in Progress.
10. Author's Address ๐๏ธ
Ralph Droms
Cisco Systems
1414 Massachusetts Avenue
Boxborough, MA 01719
USA
Phone: +1 978 497 4733
EMail: rdroms@cisco.com
11. Full Copyright Statement โญ
Copyright (C) The Internet Society (2004). This document is subject to the rights, licenses and restrictions contained in BCP 78 and except as set forth therein, the authors retain all their rights.
This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property ๐ชช
The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.
Acknowledgement ๐
Funding for the RFC Editor function is currently provided by the Internet Society. ๐ซถ
๐ฆ where this page comes from
- ietf: rfc3736 2004-04
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms