Network Working Group G. Waters
Request for Comments: 3011 Nortel Networks
Category: Standards Track November 2000
The IPv4 Subnet Selection Option for DHCP
1. Introduction
The Dynamic Host Configuration Protocol (DHCP) [RFC2131] provides a framework for passing configuration information to hosts on a TCP/IP network. RFC 2132 [RFC2132] specifies DHCP option configuration information that may be carried in DHCP packets to/from the DHCP server and the DHCP client. This document specifies a new DHCP option. To select the subnet on which to allocate an address, the DHCP server determines the subnet from which the request originated, and then selects an address on the originating subnet or on a subnet that is on the same network segment as the originating subnet. The subnet from which the request originates can be determined by:
Waters Standards Track [Page 1]
RFC 3011 Subnet Selection Option November 2000
o Using the subnet address of the giaddr field in the DHCP packet header, or if the giaddr field is zero;
1.1. Motivational Example
An example of where this option could be useful is in a device (e.g.: a RAS device) that is allocating addresses on behalf of its clients. In this case the device would be allocating addresses through DHCP and then managing those addresses among its clients.
Waters Standards Track [Page 2]
RFC 3011 Subnet Selection Option November 2000 2. Subnet Selection Option DefinitionThe subnet selection option is a DHCP option. The option contains a single IPv4 address that is the address of a subnet. The value for the subnet address is determined by taking any IPv4 address on the subnet and ANDing that address with the subnet mask (i.e.: the network and subnet bits are left alone and the remaining (address) bits are set to zero). When the DHCP server is configured to respond to this option, is allocating an address, and this option is present then the DHCP server MUST allocate the address on either:
Code Len IPv4 Address
+-----+-----+-----+-----+-----+-----+
| 118 | 4 | A1 | A2 | A3 | A4 |
+-----+-----+-----+-----+-----+-----+
Servers configured to support this option MUST return an identical copy of the option to any client that sends it, regardless of whether or not the client requests the option in a parameter request list. Clients using this option MUST discard DHCPOFFER or DHCPACK packets that do not contain this option.
Waters Standards Track [Page 3]
RFC 3011 Subnet Selection Option November 2000
During an address renew, the DHCP server may send a DHCPACK directly to the allocated address, however packets from the DHCP server may not be routable to the address. Thus, in all packets that the DHCP client sends that contain the subnet selection option, the giaddr field in the BOOTP header MUST be set to an IPv4 address on which the DHCP client will accept DHCP packets (e.g.: the address on the subnet connected to the internal network).
3. Intellectual Property
The IETF takes no position regarding the validity or scope of any intellectual property 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; neither does it represent that it has made any effort to identify any such rights. Information on the IETF's procedures with respect to rights in standards-track and standards-related documentation can be found in BCP-11.
4. IANA Considerations
IANA has assigned a value of 118 for the DHCP option code described in this document.
Waters Standards Track [Page 4]
RFC 3011 Subnet Selection Option November 2000 5. AcknowledgementsThis document is the result of work undertaken the by DHCP working group. Thanks to Ted Lemon, Tim Aston and Ralph Droms for their helpful comments in this work.
6. Security Considerations
DHCP currently provides no authentication or security mechanisms. Potential exposures to attack are discussed is section 7 of the protocol specification [RFC2131].
7. References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Waters Standards Track [Page 5]
RFC 3011 Subnet Selection Option November 2000 8. Editor's AddressGlenn Waters Nortel Networks 310-875 Carling Avenue, Ottawa, Ontario K1S 5P1 Canada
Waters Standards Track [Page 6]
RFC 3011 Subnet Selection Option November 2000 9. Full Copyright StatementCopyright (C) The Internet Society (2000). All Rights Reserved.