<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [

<!ENTITY RFC4291 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4291.xml">

<!ENTITY RFC5952 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5952.xml">

]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc updates="3493" category="info" docName="draft-smith-intarea-v4-via-v6-no-rp-mods-00" ipr="trust200902">

  <front>

    <title abbrev="v4-via-v6 Routes in IPv6 Route Protos">Carrying IPv4 routes with IPv6 Next Hops in IPv6 Routing Protocols without Modification</title>

    <author fullname="Mark Smith" initials="M.R." surname="Smith">

      <address>
        <postal>
          <street>PO BOX 521</street>

          <city>HEIDELBERG</city>

          <region>VIC</region>

          <code>3084</code>

          <country>AU</country>
        </postal>

        <email>markzzzsmith@gmail.com</email>

      </address>
    </author>

    <date year="2026" />

    <area>General</area>

    <workgroup>Internet Engineering Task Force</workgroup>

    <keyword>ipv6</keyword>
    <keyword>ipv4</keyword>
    <keyword>v4-via-v6</keyword>
    <keyword>routing-protocols</keyword>
    <keyword>ospf</keyword>
    <keyword>is-is</keyword>

    <abstract>
	    <t>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.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="Intro" title="Introduction">
	    <t>[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.</t>
	    <t>[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.</t>
	    <t>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.</t>
    </section>

    <section title="Carrying IPv4 routes in IPv6 Routing Protocols">
	    <t><xref target="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.</t>
	    <t>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.</t>
	    <t>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".</t>
    </section>

    <section title="Implementation Options and Consideratons">
    	<section title="IPv4 Route Origin">
		<t>An IPv6 routing protocol implementation will need to be modified to select IPv4 routes to be distributed as IPv4-Mapped IPv6 prefixes.</t>
		<t>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.</t>

		<t>Some examples of mechanisms might be:</t>
		<t>
		<ul>
			<li>Specify an IPv4 enabled interface where all IPv4 configured prefixes are distributed into the IPv6 routing protocol after conversion to IPv4-Mapped IPv6 prefixes.</li>
		<li>A simple configuration option to enable all IPv4 prefixes configured on all of the router's IPv4 enabled interfaces to be distributed into the IPv6 routing protocol after conversion to IPv4-Mapped IPv6 prefixes.</li>
		<li>Redistribution of some or all of the IPv4 routes from a locally running IPv4 routing protocol into the IPv6 routing protocol after conversion to IPv4-Mapped IPv6 prefixes.</li>
		</ul>
		</t>
    	</section>

    	<section title="At IPv4 Path Hops">
		<t>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.</t>
		<t>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.</t>
    	</section>

    	<section title="Router Operator User Interface">
		<t>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 <xref target="RFC5952" />.</t>
		<t>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.</t>
		<t>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:</t>
		<t>
		<ul empty="true">
		<li>::ffff:203.0.113.0/120 (IPv4: /24)</li>
		</ul>
		</t>
		<t>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:</t>
		<t>
		<ul empty="true">
			<li>::ffff:cb00:7100/120 (::ffff:203.0.113.0/120 (IPv4: /24))</li>
		</ul>
		</t>
    	</section>

    </section>


    <section anchor="Security" title="Security Considerations">

	    <t>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.</t>

    </section>

    <section anchor="acknowledgements" title="Acknowledgements">

	<t>Review and comments were provided by YOUR NAME HERE!</t>

	<t>This memo was prepared using the xml2rfc tool.</t>

    </section>

  </middle>

  <back>

    <references title="Normative References">


    </references>

    <references title="Informative References">


      &RFC4291;

      &RFC5952;

    </references>

  </back>
</rfc>
