What is the use-case of including the IPv4 address in IPv6 address?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












It is possible to include the IPv4 address into IPv6 address. For example, 2001:db8::c0a8:6301 where last 32 bits are IPv4 address 192.168.99.1. There is even a special notation of IPv6 address where last 32 bits are in dot-decimal notation. Example from Juniper router:



root@mx> show configuration interfaces ge-0/0/0 unit 0 family inet6
address 2001:db8::192.168.99.1/64;

root@mx>


Under which circumstances it makes sense to include the IPv4 address into IPv6 address? Has anyone seen this in practice?










share|improve this question

























    up vote
    3
    down vote

    favorite












    It is possible to include the IPv4 address into IPv6 address. For example, 2001:db8::c0a8:6301 where last 32 bits are IPv4 address 192.168.99.1. There is even a special notation of IPv6 address where last 32 bits are in dot-decimal notation. Example from Juniper router:



    root@mx> show configuration interfaces ge-0/0/0 unit 0 family inet6
    address 2001:db8::192.168.99.1/64;

    root@mx>


    Under which circumstances it makes sense to include the IPv4 address into IPv6 address? Has anyone seen this in practice?










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      It is possible to include the IPv4 address into IPv6 address. For example, 2001:db8::c0a8:6301 where last 32 bits are IPv4 address 192.168.99.1. There is even a special notation of IPv6 address where last 32 bits are in dot-decimal notation. Example from Juniper router:



      root@mx> show configuration interfaces ge-0/0/0 unit 0 family inet6
      address 2001:db8::192.168.99.1/64;

      root@mx>


      Under which circumstances it makes sense to include the IPv4 address into IPv6 address? Has anyone seen this in practice?










      share|improve this question













      It is possible to include the IPv4 address into IPv6 address. For example, 2001:db8::c0a8:6301 where last 32 bits are IPv4 address 192.168.99.1. There is even a special notation of IPv6 address where last 32 bits are in dot-decimal notation. Example from Juniper router:



      root@mx> show configuration interfaces ge-0/0/0 unit 0 family inet6
      address 2001:db8::192.168.99.1/64;

      root@mx>


      Under which circumstances it makes sense to include the IPv4 address into IPv6 address? Has anyone seen this in practice?







      ipv6 ip-address






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Martin

      13711330




      13711330




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          There are some common use cases:




          • ::ffff:192.168.0.1



            This is used in software that uses IPv6 sockets even for handling IPv4 connections. That makes it easier to write software because everything looks like IPv6.




          • 64:ff9b::192.168.0.1



            This is the NAT64 well-known-prefix. These addresses are NATed to IPv4 by a NAT64 gateway. It is used to let devices that only have IPv6 reach IPv4 destinations.



          It can be used with other prefixes as well. For example not all NAT64 gateways use the well-known-prefix. And there are other protocols that embed IPv4 addresses in IPv6 addresses or prefixes. The two mentioned above are the most common though.






          share|improve this answer
















          • 1




            Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
            – Michael Hampton
            1 hour ago










          • Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
            – Martin
            1 min ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "496"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f54575%2fwhat-is-the-use-case-of-including-the-ipv4-address-in-ipv6-address%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote













          There are some common use cases:




          • ::ffff:192.168.0.1



            This is used in software that uses IPv6 sockets even for handling IPv4 connections. That makes it easier to write software because everything looks like IPv6.




          • 64:ff9b::192.168.0.1



            This is the NAT64 well-known-prefix. These addresses are NATed to IPv4 by a NAT64 gateway. It is used to let devices that only have IPv6 reach IPv4 destinations.



          It can be used with other prefixes as well. For example not all NAT64 gateways use the well-known-prefix. And there are other protocols that embed IPv4 addresses in IPv6 addresses or prefixes. The two mentioned above are the most common though.






          share|improve this answer
















          • 1




            Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
            – Michael Hampton
            1 hour ago










          • Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
            – Martin
            1 min ago














          up vote
          4
          down vote













          There are some common use cases:




          • ::ffff:192.168.0.1



            This is used in software that uses IPv6 sockets even for handling IPv4 connections. That makes it easier to write software because everything looks like IPv6.




          • 64:ff9b::192.168.0.1



            This is the NAT64 well-known-prefix. These addresses are NATed to IPv4 by a NAT64 gateway. It is used to let devices that only have IPv6 reach IPv4 destinations.



          It can be used with other prefixes as well. For example not all NAT64 gateways use the well-known-prefix. And there are other protocols that embed IPv4 addresses in IPv6 addresses or prefixes. The two mentioned above are the most common though.






          share|improve this answer
















          • 1




            Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
            – Michael Hampton
            1 hour ago










          • Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
            – Martin
            1 min ago












          up vote
          4
          down vote










          up vote
          4
          down vote









          There are some common use cases:




          • ::ffff:192.168.0.1



            This is used in software that uses IPv6 sockets even for handling IPv4 connections. That makes it easier to write software because everything looks like IPv6.




          • 64:ff9b::192.168.0.1



            This is the NAT64 well-known-prefix. These addresses are NATed to IPv4 by a NAT64 gateway. It is used to let devices that only have IPv6 reach IPv4 destinations.



          It can be used with other prefixes as well. For example not all NAT64 gateways use the well-known-prefix. And there are other protocols that embed IPv4 addresses in IPv6 addresses or prefixes. The two mentioned above are the most common though.






          share|improve this answer












          There are some common use cases:




          • ::ffff:192.168.0.1



            This is used in software that uses IPv6 sockets even for handling IPv4 connections. That makes it easier to write software because everything looks like IPv6.




          • 64:ff9b::192.168.0.1



            This is the NAT64 well-known-prefix. These addresses are NATed to IPv4 by a NAT64 gateway. It is used to let devices that only have IPv6 reach IPv4 destinations.



          It can be used with other prefixes as well. For example not all NAT64 gateways use the well-known-prefix. And there are other protocols that embed IPv4 addresses in IPv6 addresses or prefixes. The two mentioned above are the most common though.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Sander Steffann

          5,7601126




          5,7601126







          • 1




            Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
            – Michael Hampton
            1 hour ago










          • Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
            – Martin
            1 min ago












          • 1




            Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
            – Michael Hampton
            1 hour ago










          • Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
            – Martin
            1 min ago







          1




          1




          Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
          – Michael Hampton
          1 hour ago




          Then there are the network admins who manually assign IPv6 addresses that have the host-part equal to the host's IPv4 address....
          – Michael Hampton
          1 hour ago












          Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
          – Martin
          1 min ago




          Thanks! Is there a valid use-case to manually assign IPv6 addresses that have the host-part equal to the hosts IPv4 address? I can clearly see a benefit of using the penultimate byte of the IPv4 address in IPv6 address network portion(this works only in case of /24 IPv4 networks), but I hardly see a benefit of putting the IPv4 address into host-portion of the IPv6 address. Even if there are multiple IPv4 addresses on the interface(for example 192.0.2.22/24 and 192.0.2.25/24) and same amount of IPv6 addresses are needed, then it would make sense to take those from the beginning of the network.
          – Martin
          1 min ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f54575%2fwhat-is-the-use-case-of-including-the-ipv4-address-in-ipv6-address%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          One-line joke