| RFC 9844 | IPv6 Zone IDs in UIs | August 2025 |
| Carpenter & Hinden | Standards Track | [Page] |
This document describes how the zone identifier of an IPv6 scoped address, definedin the IPv6 Scoped Address Architecture specification (RFC 4007), should beentered into a user interface. This document obsoletes RFC 6874 and updates RFCs 4007, 7622, and 8089.¶
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained athttps://www.rfc-editor.org/info/rfc9844.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
A number of software tools require or permit the user to enter an IPv6 address via a user interface (UI). The standard literal text format for an IPv6 address is defined by[RFC4291] and[RFC5952]. The IPv6 Scoped Address Architecture specification[RFC4007] extends the text representation of limited-scope IPv6 addresses, in particular link-local unicast addresses and multicast addresses with less than global scope, such that a zone identifier may be concatenated to an address. Note that[RFC5952] does not mention this extension.¶
Zone identifiers are especially useful in contexts in which literal addresses are typically used, for example, during fault diagnosis or device configuration (where a device may be physical or virtual) when it may be essential to specify which interface is used for sending to a link-local address. It should be noted that zone identifiers have purely local meaning within the node in which they are defined, usually being the same as IPv6 interface names. They are completely meaningless for any other node. At the time of writing, they are meaningful only when attached to link-local unicast and scoped multicast addresses, but it is possible that other uses might be defined in the future.¶
Examples of a link-local unicast address qualified by a zone identifier are "fe80::1234%eth0" on a Linux host or "fe80::4321%7" on a Microsoft Windows host.¶
Such addresses are directly supported by socket API calls including "getaddrinfo()"[RFC3493].¶
Devices whose network stack does not support the model of a human-readable zone identifier described in[RFC4007] are out of scope for this document.¶
Some examples of use cases for entering an address that includes a zone identifier into a UI are as follows:¶
Such requirements have already spawnedhacks to work around current limitations (e.g., the hack described in[LL-HACK],which is no longer maintained and has been archived).¶
For all such use cases, it is highly desirable that a complete IPv6 link-localaddress can be cut and pasted from one UI (such as the outputfrom a system command) to another. Since suchaddresses may include quite long hexadecimal strings, for example, "fe80::8d0f:7f26:f5c8:780b%enx525400d5e0fb", any solution exceptcut-and-paste is highly error prone.¶
The use cases listed above apply to relatively simple actionson end systems. The zone identifiers that can be used are limitedby the host operating system, since[RFC4007] only specifiesthat they are text strings, without specifying a maximum length or syntax.As[RFC4007] explains, each zone identifier corresponds to anumerical zone index that qualifies a link-local address.¶
It should be noted that whereas some operating systems and network APIssupport a default zone identifier as recommended by[RFC4007],others, including Linux, do not, and for them a solution isparticularly important, since a link-local address withouta zone index cannot be used in the Linux socket API.¶
The model in[RFC4007] assumes that the human-readable zone identifieris mapped by the operating system into a numeric interface index.Typically, this mapping is performed by the socket API, e.g., by"getaddrinfo()". The mapping between the human-readable zone identifierstring and the numericvalue is a host-specific function that varies between operating systems. Thepresent document is concerned only with the human-readable string that istypically displayed in an operating system's user interface. However, inmost operating systems, it is possible to use the underlying interface number,represented as a decimal integer, as an equivalent to the human-readable string.This is recommended bySection 11.2 of [RFC4007], but it is not required.This possibility does not affect the UI requirement given in this document.¶
As IPv6 deployment becomes more widespread, the lack of a solution forhandling complete link-local addresses in all tools is becoming an acuteproblem for increasing numbers of operational and support personnel.It will become critical as IPv6-only or IPv6-mostly networks[RFC8925][IPv6-MOSTLY], with nodes lacking nativeIPv4 support, appear. For example, the NMEA use case mentioned above isan immediate requirement. This is the principal reason for documentingthis requirement now.¶
This document completely obsoletes[RFC6874], which implementorsof web browsers have determined is impracticable to support[LINK-LOCAL-URI], and replaces itwith a generic UI requirement. Note that obsoleting[RFC6874] reverts the change that it made to the URI syntax defined by[RFC3986], so[RFC3986] is no longer updated by[RFC6874].As far as is known, this change will have no significant impact onnon-browser deployments of URIs.¶
This document also updates[RFC7622] and[RFC8089]by deleting their references to[RFC6874].¶
It also updates[RFC4007] by adding a new requirement thatuser interfaces support the zone identifier as described inSection 5.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14[RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.¶
A user interface (UI) that allows or requires the user to enter an IPv6 address other than a global unicast addressMUST provide a means for entering a link-local address or a scoped multicast address and selecting a zone identifier as specified by[RFC4007] (typically, an interface identifier as defined by the operating system).¶
In this case, the UISHOULD support the complete format specified by[RFC4007] (e.g., "fe80::1%eth0").¶
If this is impossible for practical reasons, the UIMAYsupport an alternative delimiter in place of "%".The hyphen ("-") is suggested (e.g., "fe80::1-eth0").¶
If this too is impossible for practical reasons, the UIMAY provide two separate input fields (e.g., "fe80::1" inone box and "eth0" in another), selection from a list ofactive zone identifiers,or a separate command-line parameter for the zone identifier.¶
The program providing the UI will then store the addressand the zone identifier, converting the latterto an interface index (typically via the socket API).A faulty zone identifier will be detected when attempting to convertit, and this should be reported to the user as an error. Theresulting interface index will be used for any subsequent socket calls using the link-local address.¶
Note that an address string such as "fe80::1%eth0" cannot beconverted to binary by the POSIX socket API function "inet_pton()"[POSIX].It must be converted either by using "getaddrinfo()" orby splitting it into two strings and using "inet_pton()"and "if_nametoindex()" successively, in order to obtainthe required interface index value.¶
In this model, the zone identifier is considered independently ofthe IPv6 address itself. However, this does not in itself resolvethe difficulties in considering the zone identifier as part of the HTTP origin model[RFC6454]. Therefore, this approachdoes not resolve the issue of how browsers should support link-localaddresses, which is discussed further in[LINK-LOCAL-URI].Because of this, the recommendations and normative statements in thisdocument do not apply to URIs fetched by web browsers.¶
As explained in[RFC4007], zone identifiers are of local significance only and must not be sent on the wire. In particular, see the final security consideration of[RFC4007], which indicates that software should not trust packets that contain textual non-global addresses as data. Therefore, software that obtains a zone identifier through a UI should not transmit it further.¶
There is no formal limit on the length of the zone identifier string in[RFC4007]. A UI implementation should apply an appropriate length limit when inputting a zone identifier, in order to minimize the risk of a buffer overrun. Typically, this limit would be the same as the host operating system's limit on interface names.¶
[RFC4007] does not specify or restrict the character set allowed in a zone identifier. Therefore, each implementation processing zone identifiers needs to make checks appropriate for the environment it is used in. For example, a UI implementation should not allow ASCII NUL characters in a zone identifier string as this could cause inconsistencies in subsequent string processing.¶
This document has no IANA actions.¶
This document owes a lot to the previous discussions that led to[RFC6874] and to the expired Internet-Draft[RFC6874bis].¶
Useful comments were received fromErik Auerswald,Nick Buraglio,Martin J. Dürst,Toerless Eckert,David Farmer,Brian Haberman,Nate Karstens,Tero Kivinen,Erik Kline,Jen Linkova,Eduard Metz,Gyan Mishra,David Schinazi,Jürgen Schönwälder,Michael Sweet,Martin Thomson,Ole Troan,Éric Vyncke,Magnus Westerlund, and other participants in the 6MAN WG.¶