| Internet-Draft | v4-via-v6 Routes in IPv6 Route Protos | December 2026 |
| Smith | Expires 7 June 2027 | [Page] |
IPv4 routes with IPv6 next hops can be carried in existing IPv6 routing protocols with implementation modifications only. This memo describes how this can be achieved.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 7 June 2027.¶
Copyright (c) 2026 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.¶
[draft-ietf-intarea-v4-via-v6-12] discusses the use of IPv6 next hop addresses for IPv4 routes as a method of carrying IPv4 traffic across a network without assigning IPv4 addresses to each hop along IPv4 paths. This simplifies network configuration while continuing to support carrying IPv4 packets across the network.¶
[draft-ietf-intarea-v4-via-v6-12] states that IPv6 routing protocols need to be extended to support carrying IPv4 routes with IPv6 next hops and provides some examples of where this has already occurred.¶
This memo describes a method of carrying IPv4 routes with IPv6 next hops in IPv6 routing protocols without routing protocol modification. Instead, only IPv6 routing protocol implementations need to be minimally modified.¶
[RFC4291] specifies IPv4-Mapped IPv6 addresses that are used to represent IPv4 node addresses as IPv6 addresses. These IPv4-Mapped IPv6 addresses have a well known IPv6 prefix of ::ffff:0:0:0:0/96, with the final 32 bits carrying the IPv4 address.¶
These IPv4-Mapped IPv6 addresses could be carried within IPv6 routing protocols with prefix lengths of /96 through to /128, representing the IPv4 route prefix length plus 96 bits, conveying IPv4 routes with IPv6 next hops within the unmodified IPv6 routing protocol.¶
For the remainder of this memo, these IPv4-Mapped IPv6 addresses with IPv6 prefix lengths derived from the IPv4 prefix's length will be known as "IPv4-Mapped IPv6 prefixes".¶
An IPv6 routing protocol implementation will need to be modified to select IPv4 routes to be distributed as IPv4-Mapped IPv6 prefixes.¶
The options for how the IPv6 routing protocol selects IPv4 routes for distribution is an implementation decision, and will likely be similar to how native IPv6 prefixes are selected for distribution in the IPv6 routing protocol.¶
Some examples of mechanisms might be:¶
Selection of the IPv4 routes to install into the local IPv4 route table (that supports IPv6 next hops) follows conventional IPv6 route selection using the longest match rule against the IPv4-Mapped IPv6 prefixes, with one exception.¶
Prior to the best route selection process, the candidate IPv4-Mapped IPv6 prefix lengths MUST be validated as ranging from /96 through to /128. An IPv4-Mapped IPv6 prefix length shorter/smaller than a /96 would result in an IPv4 default route of 0.0.0.0/0. Should this default route be installed in the local IPv4 route table, all non-local network IPv4 traffic would be sent towards an unintended destination, or to one that is intended by a malicious actor who has successfully managed to insert this invalid IPv4-Mapped IPv6 prefix into the routing protocol.¶
To assist the operator of a router that is using IPv4-Mapped IPv6 prefixes for IPv4 routing information, IPv4-Mapped IPv6 prefixes should normally be displayed with the lower 32 bits of the address in IPv4 address format [RFC5952].¶
Furthermore, both the IPv6 and derived IPv4 prefix length should be shown. The IPv6 prefix length would be shown conventionally, with a suffix showing the derived IPv4 prefix length.¶
As an example of the previous two recommendations, the IPv4-Mapped IPv6 prefix for the IPv4 prefix 203.0.113.0/24 would be displayed as something like:¶
An exception to the above would be when debugging the operation of the IPv6 routing protocol. In this case, the IPv4-Mapped IPv6 prefix should be displayed as both a native IPv6 prefix and prefix length as well as the above IPv4-Mapped IPv6 prefix format. For example, for the above "::ffff:203.0.113.0/120 (IPv4: /24)", the debugging output would be something like:¶
Implementations MUST ensure that IPv4-Mapped IPv6 prefix lengths range from /96 through to /128, to ensure that an invalid IPv4 0.0.0.0/0 default route is not installed in the router's IPv4 route table.¶
Review and comments were provided by YOUR NAME HERE!¶
This memo was prepared using the xml2rfc tool.¶