Network Working Group G. Stump
Request for Comments: 3004 IBM
Category: Standards Track R. Droms
Cisco Systems
Y. Gu
R. Vyaghrapuri
A. Demirtjis
Microsoft
B. Beser
Pacific Broadband Communications
J. Privat
Northstream AB
November 2000
The User Class Option for DHCP
1. Introduction
DHCP administrators may define specific user class identifiers to convey information about a client's software configuration or about its user's preferences. For example, the User Class option can be used to configure all clients of people in the accounting department with a different printer than clients of people in the marketing department.
Stump, et al. Standards Track [Page 1]
RFC 3004 The User Class Option for DHCP November 2000 2. Requirements TerminologyThe key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [3].
3. DHCP Terminology
o "DHCP client" A DHCP client or "client" is an Internet host using DHCP to obtain configuration parameters such as a network address.
4. User Class option
This option is used by a DHCP client to optionally identify the type or category of user or applications it represents. A DHCP server uses the User Class option to choose the address pool it allocates an address from and/or to select any other configuration option.
Code Len Value
+-----+-----+--------------------- . . . --+
| 77 | N | User Class Data ('Len' octets) |
+-----+-----+--------------------- . . . --+
where Value consists of one or more instances of User Class Data. Each instance of User Class Data is formatted as follows:
Stump, et al. Standards Track [Page 2]
RFC 3004 The User Class Option for DHCP November 2000
UC_Len_i User_Class_Data_i
+--------+------------------------ . . . --+
| L_i | Opaque-Data ('UC_Len_i' octets) |
+--------+------------------------ . . . --+
Each User Class value (User_Class_Data_i) is indicated as an opaque field. The value in UC_Len_i does not include the length field itself and MUST be non-zero. Let m be the number of User Classes carried in the option. The length of the option as specified in Len must be the sum of the lengths of each of the class names plus m: Len= UC_Len_1 + UC_Len_2 + ... + UC_Len_m + m. If any instances of User Class Data are present, the minimum value of Len is two (Len = UC_Len_1 + 1 = 1 + 1 = 2).
5. IANA Considerations
Option 77, which IANA has already assigned for this purpose, should be used as the User Class Option for DHCP.
6. Security Considerations
DHCP currently provides no authentication or security mechanisms. Potential exposures to attack are discussed is section 7 of the protocol specification [1].
Stump, et al. Standards Track [Page 3]
RFC 3004 The User Class Option for DHCP November 2000 7. References[1] Droms, R., "Dynamic Host Configuration Protocol", RFC 2131, March
8. Acknowledgments
This document is based on earlier drafts by Glenn Stump, Ralph Droms, Ye Gu, Ramesh Vyaghrapuri and Burcak Beser. Thanks to Ted Lemon, Steve Gonczi, Kim Kinnear, Bernie Volz, Richard Jones, Barr Hibbs and Thomas Narten for their comments and suggestions.
9. Authors' Addresses
Glenn Stump IBM Networking Software P.O. Box 12195 RTP, NC 27709
Stump, et al. Standards Track [Page 4]
RFC 3004 The User Class Option for DHCP November 2000
Phone: 425 703 9581 EMail: rameshv@microsoft.com
Stump, et al. Standards Track [Page 5]
RFC 3004 The User Class Option for DHCP November 2000
Full Copyright Statement