| 1 |
<pre>Internet Engineering Task Force (IETF) G. Halwasia |
| 2 |
Request for Comments: 6939 S. Bhandari |
| 3 |
Category: Standards Track W. Dec |
| 4 |
ISSN: 2070-1721 Cisco Systems |
| 5 |
May 2013 |
| 6 |
|
| 7 |
|
| 8 |
<span class="h1">Client Link-Layer Address Option in DHCPv6</span> |
| 9 |
|
| 10 |
Abstract |
| 11 |
|
| 12 |
This document specifies the format and mechanism that is to be used |
| 13 |
for encoding the client link-layer address in DHCPv6 Relay-Forward |
| 14 |
messages by defining a new DHCPv6 Client Link-Layer Address option. |
| 15 |
|
| 16 |
Status of This Memo |
| 17 |
|
| 18 |
This is an Internet Standards Track document. |
| 19 |
|
| 20 |
This document is a product of the Internet Engineering Task Force |
| 21 |
(IETF). It represents the consensus of the IETF community. It has |
| 22 |
received public review and has been approved for publication by the |
| 23 |
Internet Engineering Steering Group (IESG). Further information on |
| 24 |
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>. |
| 25 |
|
| 26 |
Information about the current status of this document, any errata, |
| 27 |
and how to provide feedback on it may be obtained at |
| 28 |
<a href="http://www.rfc-editor.org/info/rfc6939">http://www.rfc-editor.org/info/rfc6939</a>. |
| 29 |
|
| 30 |
Copyright Notice |
| 31 |
|
| 32 |
Copyright (c) 2013 IETF Trust and the persons identified as the |
| 33 |
document authors. All rights reserved. |
| 34 |
|
| 35 |
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal |
| 36 |
Provisions Relating to IETF Documents |
| 37 |
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of |
| 38 |
publication of this document. Please review these documents |
| 39 |
carefully, as they describe your rights and restrictions with respect |
| 40 |
to this document. Code Components extracted from this document must |
| 41 |
include Simplified BSD License text as described in Section 4.e of |
| 42 |
the Trust Legal Provisions and are provided without warranty as |
| 43 |
described in the Simplified BSD License. |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
<span class="grey">Halwasia, et al. Standards Track [Page 1]</span></pre> |
| 53 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span> |
| 54 |
<span class="grey"><a href="./rfc6939">RFC 6939</a> DHCPv6 Client Link-Layer Address Option May 2013</span> |
| 55 |
|
| 56 |
|
| 57 |
Table of Contents |
| 58 |
|
| 59 |
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a> |
| 60 |
<a href="#section-2">2</a>. Requirements Language ...........................................<a href="#page-2">2</a> |
| 61 |
<a href="#section-3">3</a>. Problem Background and Scenario .................................<a href="#page-2">2</a> |
| 62 |
<a href="#section-4">4</a>. DHCPv6 Client Link-Layer Address Option .........................<a href="#page-4">4</a> |
| 63 |
<a href="#section-5">5</a>. DHCPv6 Relay Agent Behavior .....................................<a href="#page-4">4</a> |
| 64 |
<a href="#section-6">6</a>. DHCPv6 Server Behavior ..........................................<a href="#page-4">4</a> |
| 65 |
<a href="#section-7">7</a>. DHCPv6 Client Behavior ..........................................<a href="#page-5">5</a> |
| 66 |
<a href="#section-8">8</a>. IANA Considerations .............................................<a href="#page-5">5</a> |
| 67 |
<a href="#section-9">9</a>. Security Considerations .........................................<a href="#page-5">5</a> |
| 68 |
<a href="#section-10">10</a>. Acknowledgements ...............................................<a href="#page-6">6</a> |
| 69 |
<a href="#section-11">11</a>. References .....................................................<a href="#page-6">6</a> |
| 70 |
<a href="#section-11.1">11.1</a>. Normative References ......................................<a href="#page-6">6</a> |
| 71 |
<a href="#section-11.2">11.2</a>. Informative References ....................................<a href="#page-6">6</a> |
| 72 |
|
| 73 |
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span> |
| 74 |
|
| 75 |
This specification defines an optional mechanism and the related |
| 76 |
DHCPv6 option to allow first-hop DHCPv6 relay agents (relay agents |
| 77 |
that are connected to the same link as the client) to provide the |
| 78 |
client's link-layer address in the DHCPv6 messages being sent towards |
| 79 |
the server. |
| 80 |
|
| 81 |
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Requirements Language</span> |
| 82 |
|
| 83 |
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", |
| 84 |
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this |
| 85 |
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>]. |
| 86 |
|
| 87 |
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Problem Background and Scenario</span> |
| 88 |
|
| 89 |
The DHCPv4 specification [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>] provides a way to specify the |
| 90 |
client link-layer address in the DHCPv4 message header. A DHCPv4 |
| 91 |
message header has 'htype' and 'chaddr' fields to specify the client |
| 92 |
link-layer address type and the link-layer address, respectively. |
| 93 |
The client link-layer address thus learned can be used by the DHCPv4 |
| 94 |
server and the relay agent in different ways. In some of the |
| 95 |
deployments, DHCPv4 servers use 'chaddr' as a customer identifier and |
| 96 |
a key for lookup in the client lease database. |
| 97 |
|
| 98 |
With the incremental deployment of IPv6 to existing IPv4 networks, |
| 99 |
which results in a dual-stack network environment, there will be |
| 100 |
devices that act as both DHCPv4 and DHCPv6 clients. In service |
| 101 |
provider deployments, a typical DHCPv4 implementation will use the |
| 102 |
client link-layer address as one of the keys to build the DHCP client |
| 103 |
lease database. In dual-stack scenarios, operators need to be able |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
<span class="grey">Halwasia, et al. Standards Track [Page 2]</span></pre> |
| 109 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span> |
| 110 |
<span class="grey"><a href="./rfc6939">RFC 6939</a> DHCPv6 Client Link-Layer Address Option May 2013</span> |
| 111 |
|
| 112 |
|
| 113 |
to associate DHCPv4 and DHCPv6 messages with the same client |
| 114 |
interface, based on an identifier that is common to the interface. |
| 115 |
The client link-layer address is such an identifier. |
| 116 |
|
| 117 |
Currently, the DHCPv6 specification [<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>] does not define a way |
| 118 |
to communicate the client link-layer address to the DHCP server in |
| 119 |
cases where the DHCP server is not connected to the same network link |
| 120 |
as the DHCP client. The DHCPv6 specification mandates that all |
| 121 |
clients prepare and send a DHCP Unique Identifier (DUID) as the |
| 122 |
client identifier option in all the DHCPv6 message exchanges. |
| 123 |
However, none of these methods provide a simple way to extract a |
| 124 |
client's link-layer address. This presents a problem to an operator |
| 125 |
who is using an existing DHCPv4 system with the client link-layer |
| 126 |
address as the customer identifier and who desires to correlate |
| 127 |
DHCPv6 assignments using the same identifier. [<a href="./rfc4361" title=""Node-specific Client Identifiers for Dynamic Host Configuration Protocol Version Four (DHCPv4)"">RFC4361</a>] describes a |
| 128 |
mechanism for using the same DUID in both DHCPv4 and DHCPv6. |
| 129 |
Unfortunately, this specification requires modification of existing |
| 130 |
DHCPv4 clients, and has not seen broad adoption in the industry |
| 131 |
(indeed, we are not aware of any commercial implementations). |
| 132 |
|
| 133 |
Providing an option in DHCPv6 Relay-Forward messages to carry the |
| 134 |
client link-layer address explicitly will help the above mentioned |
| 135 |
scenarios. For example, it can be used along with other identifiers |
| 136 |
to associate DHCPv4 and DHCPv6 messages from a dual-stack client. |
| 137 |
Further, having the client link-layer address in DHCPv6 will help by |
| 138 |
providing additional information for event debugging and logging |
| 139 |
related to the client at the relay agent and the server. The |
| 140 |
proposed option may be used in a wide range of networks; two notable |
| 141 |
deployment models are service provider and enterprise network |
| 142 |
environments. |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
<span class="grey">Halwasia, et al. Standards Track [Page 3]</span></pre> |
| 165 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span> |
| 166 |
<span class="grey"><a href="./rfc6939">RFC 6939</a> DHCPv6 Client Link-Layer Address Option May 2013</span> |
| 167 |
|
| 168 |
|
| 169 |
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. DHCPv6 Client Link-Layer Address Option</span> |
| 170 |
|
| 171 |
The format of the DHCPv6 Client Link-Layer Address option is shown |
| 172 |
below. |
| 173 |
|
| 174 |
0 1 2 3 |
| 175 |
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 |
| 176 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 177 |
| OPTION_CLIENT_LINKLAYER_ADDR | option-length | |
| 178 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 179 |
| link-layer type (16 bits) | | |
| 180 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
| 181 |
| link-layer address (variable length) | |
| 182 |
| | |
| 183 |
| | |
| 184 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 185 |
|
| 186 |
option-code: OPTION_CLIENT_LINKLAYER_ADDR (79) |
| 187 |
option-length: 2 + length of link-layer address |
| 188 |
link-layer type: Client link-layer address type. The link-layer |
| 189 |
type MUST be a valid hardware type assigned |
| 190 |
by the IANA, as described in [<a href="./rfc0826" title=""Ethernet Address Resolution Protocol: Or converting network protocol addresses to 48.bit Ethernet address for transmission on Ethernet hardware"">RFC0826</a>] |
| 191 |
link-layer address: Client link-layer address |
| 192 |
|
| 193 |
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. DHCPv6 Relay Agent Behavior</span> |
| 194 |
|
| 195 |
DHCPv6 relay agents that receive messages originating from clients |
| 196 |
(for example, Solicit and Request, but not, for example, |
| 197 |
Relay-Forward or Advertise) MAY include the link-layer source address |
| 198 |
of the received DHCPv6 message in the Client Link-Layer Address |
| 199 |
option, in relayed DHCPv6 Relay-Forward messages. The DHCPv6 relay |
| 200 |
agent behavior can depend on configuration that decides whether the |
| 201 |
Client Link-Layer Address option needs to be included. |
| 202 |
|
| 203 |
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. DHCPv6 Server Behavior</span> |
| 204 |
|
| 205 |
If the DHCPv6 server is configured to store or use a client link- |
| 206 |
layer address, it SHOULD look for the Client Link-Layer Address |
| 207 |
option in the Relay-Forward DHCP message of the DHCPv6 relay agent |
| 208 |
closest to the client. The mechanism described in this document is |
| 209 |
not necessary in the case where the DHCPv6 server is connected to the |
| 210 |
same network link as the client, because the server can obtain the |
| 211 |
link-layer address from the link-layer header of the DHCPv6 message. |
| 212 |
If the DHCP server receives a Client Link-Layer Address option |
| 213 |
anywhere in any encapsulated message that is not a Relay-Forward DHCP |
| 214 |
message, the server MUST silently ignore that option. |
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
<span class="grey">Halwasia, et al. Standards Track [Page 4]</span></pre> |
| 221 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span> |
| 222 |
<span class="grey"><a href="./rfc6939">RFC 6939</a> DHCPv6 Client Link-Layer Address Option May 2013</span> |
| 223 |
|
| 224 |
|
| 225 |
There is no requirement that a server return this option and its data |
| 226 |
in a downstream DHCP message. |
| 227 |
|
| 228 |
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. DHCPv6 Client Behavior</span> |
| 229 |
|
| 230 |
The Client Link-Layer Address option is only exchanged between the |
| 231 |
relay agents and the servers. DHCPv6 clients are not aware of the |
| 232 |
usage of the Client Link-Layer Address option. The DHCPv6 client |
| 233 |
MUST NOT send the Client Link-Layer Address option, and MUST ignore |
| 234 |
the Client Link-Layer Address option if received. |
| 235 |
|
| 236 |
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span> |
| 237 |
|
| 238 |
IANA has assigned an option code (79) to OPTION_CLIENT_LINKLAYER_ADDR |
| 239 |
from the "DHCP Option Codes" registry |
| 240 |
(<a href="http://www.iana.org/assignments/dhcpv6-parameters/">http://www.iana.org/assignments/dhcpv6-parameters/</a>). |
| 241 |
|
| 242 |
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span> |
| 243 |
|
| 244 |
It is possible for a rogue DHCPv6 relay agent to insert an incorrect |
| 245 |
Client Link-Layer Address option for malicious purposes. A DHCPv6 |
| 246 |
client can also pose as a rogue DHCP relay agent by sending a |
| 247 |
Relay-Forward message containing an incorrect Client Link-Layer |
| 248 |
Address option. In either case, it would be possible for a DHCPv6 |
| 249 |
client to masquerade as the same device as a DHCPv4 client, when in |
| 250 |
fact the two are distinct. |
| 251 |
|
| 252 |
One possible attack that could be accomplished using this masquerade |
| 253 |
would be in the case where a DHCPv4 client is using DHCPv4 to do a |
| 254 |
Dynamic DNS update to install an A record so that it can be reached |
| 255 |
by other nodes [<a href="./rfc4702" title=""The Dynamic Host Configuration Protocol (DHCP) Client Fully Qualified Domain Name (FQDN) Option"">RFC4702</a>]. A masquerading DHCPv6 client could use |
| 256 |
DHCPv6 to install a AAAA record with the same name [<a href="./rfc4704" title=""The Dynamic Host Configuration Protocol for IPv6 (DHCPv6) Client Fully Qualified Domain Name (FQDN) Option"">RFC4704</a>]. Dual- |
| 257 |
stack nodes attempting to connect to the DHCPv4 client might then be |
| 258 |
tricked into connecting to the masquerading DHCPv6 client instead. |
| 259 |
|
| 260 |
It is possible that there are other attacks that could be |
| 261 |
accomplished using this masquerading technique, although the authors |
| 262 |
are not aware of any. To prevent masquerades of this sort, DHCP |
| 263 |
server administrators are strongly advised to configure DHCP servers |
| 264 |
that use this option to communicate with their relay agents using |
| 265 |
IPsec, as described in <a href="./rfc3315#section-21.1">Section 21.1 of [RFC3315]</a>. |
| 266 |
|
| 267 |
In some networks, it may be the case that the operator of the |
| 268 |
physical network and the provider of connectivity over that network |
| 269 |
are administratively separate, such that the Client Link-Layer |
| 270 |
Address option would reveal information to one or the other party |
| 271 |
that they do not need and could not otherwise obtain. It is also |
| 272 |
possible, in some cases, that a relay agent might communicate with a |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
<span class="grey">Halwasia, et al. Standards Track [Page 5]</span></pre> |
| 277 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span> |
| 278 |
<span class="grey"><a href="./rfc6939">RFC 6939</a> DHCPv6 Client Link-Layer Address Option May 2013</span> |
| 279 |
|
| 280 |
|
| 281 |
DHCP server over an open network where eavesdropping would be |
| 282 |
possible. In these cases, it is strongly recommended, in order to |
| 283 |
protect end-user privacy, that network operators use IPsec to provide |
| 284 |
confidentiality for messages between the relay agent and the DHCP |
| 285 |
server. |
| 286 |
|
| 287 |
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Acknowledgements</span> |
| 288 |
|
| 289 |
Many thanks to Ted Lemon, Bernie Volz, Hemant Singh, Simon Hobson, |
| 290 |
Tina TSOU, Andre Kostur, Chuck Anderson, Steinar Haug, Niall |
| 291 |
O'Reilly, Jarrod Johnson, Tomek Mrugalski, and Vincent Zimmer for |
| 292 |
their input and review. |
| 293 |
|
| 294 |
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. References</span> |
| 295 |
|
| 296 |
<span class="h3"><a class="selflink" id="section-11.1" href="#section-11.1">11.1</a>. Normative References</span> |
| 297 |
|
| 298 |
[<a id="ref-RFC0826">RFC0826</a>] Plummer, D., "Ethernet Address Resolution Protocol: Or |
| 299 |
converting network protocol addresses to 48.bit Ethernet |
| 300 |
address for transmission on Ethernet hardware", STD 37, |
| 301 |
<a href="./rfc826">RFC 826</a>, November 1982. |
| 302 |
|
| 303 |
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate |
| 304 |
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997. |
| 305 |
|
| 306 |
[<a id="ref-RFC3315">RFC3315</a>] Droms, R., Bound, J., Volz, B., Lemon, T., Perkins, C., |
| 307 |
and M. Carney, "Dynamic Host Configuration Protocol for |
| 308 |
IPv6 (DHCPv6)", <a href="./rfc3315">RFC 3315</a>, July 2003. |
| 309 |
|
| 310 |
[<a id="ref-RFC4361">RFC4361</a>] Lemon, T. and B. Sommerfeld, "Node-specific Client |
| 311 |
Identifiers for Dynamic Host Configuration Protocol |
| 312 |
Version Four (DHCPv4)", <a href="./rfc4361">RFC 4361</a>, February 2006. |
| 313 |
|
| 314 |
<span class="h3"><a class="selflink" id="section-11.2" href="#section-11.2">11.2</a>. Informative References</span> |
| 315 |
|
| 316 |
[<a id="ref-RFC2131">RFC2131</a>] Droms, R., "Dynamic Host Configuration Protocol", |
| 317 |
<a href="./rfc2131">RFC 2131</a>, March 1997. |
| 318 |
|
| 319 |
[<a id="ref-RFC4702">RFC4702</a>] Stapp, M., Volz, B., and Y. Rekhter, "The Dynamic Host |
| 320 |
Configuration Protocol (DHCP) Client Fully Qualified |
| 321 |
Domain Name (FQDN) Option", <a href="./rfc4702">RFC 4702</a>, October 2006. |
| 322 |
|
| 323 |
[<a id="ref-RFC4704">RFC4704</a>] Volz, B., "The Dynamic Host Configuration Protocol for |
| 324 |
IPv6 (DHCPv6) Client Fully Qualified Domain Name (FQDN) |
| 325 |
Option", <a href="./rfc4704">RFC 4704</a>, October 2006. |
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
<span class="grey">Halwasia, et al. Standards Track [Page 6]</span></pre> |
| 333 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span> |
| 334 |
<span class="grey"><a href="./rfc6939">RFC 6939</a> DHCPv6 Client Link-Layer Address Option May 2013</span> |
| 335 |
|
| 336 |
|
| 337 |
Authors' Addresses |
| 338 |
|
| 339 |
Gaurav Halwasia |
| 340 |
Cisco Systems |
| 341 |
Cessna Business Park, Sarjapura Marathalli Outer Ring Road |
| 342 |
Bangalore, KARNATAKA 560 087 |
| 343 |
India |
| 344 |
|
| 345 |
Phone: +91 80 4429 2703 |
| 346 |
EMail: [email protected] |
| 347 |
|
| 348 |
|
| 349 |
Shwetha Bhandari |
| 350 |
Cisco Systems |
| 351 |
Cessna Business Park, Sarjapura Marathalli Outer Ring Road |
| 352 |
Bangalore, KARNATAKA 560 087 |
| 353 |
India |
| 354 |
|
| 355 |
Phone: +91 80 4429 2627 |
| 356 |
EMail: [email protected] |
| 357 |
|
| 358 |
|
| 359 |
Wojciech Dec |
| 360 |
Cisco Systems |
| 361 |
Haarlerbergweg 13-19 |
| 362 |
1101 CH Amsterdam, Amsterdam 560 087 |
| 363 |
The Netherlands |
| 364 |
|
| 365 |
EMail: [email protected] |
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
Halwasia, et al. Standards Track [Page 7] |
| 389 |
</pre> |