<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ipv4 tp Ipv6 conversion script in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Ipv4-tp-Ipv6-conversion-script/m-p/269560#M1428</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Here is basic script that converts ipv4 IPs/subnets to ipv6.&lt;/P&gt;
&lt;P&gt;lab example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[Expert@CP-GW:0]# ./v4to6.sh 10.0.0.0/8&lt;BR /&gt;Input: 10.0.0.0/8&lt;/P&gt;
&lt;P&gt;IPv4 subnet:&lt;BR /&gt;network: 10.0.0.0/8&lt;BR /&gt;last: 10.255.255.255&lt;/P&gt;
&lt;P&gt;IPv4-mapped IPv6 subnet form (prefix length = 96 + IPv4 mask):&lt;BR /&gt;dotted: ::ffff:10.0.0.0/104&lt;BR /&gt;hex: ::ffff:a00:0/104 (full: ::ffff:0a00:0000/104)&lt;/P&gt;
&lt;P&gt;NAT64 IPv4-embedded IPv6 subnet form (prefix length = 96 + IPv4 mask):&lt;BR /&gt;dotted: 64:ff9b::10.0.0.0/104&lt;BR /&gt;hex: 64:ff9b::a00:0/104 (full: 64:ff9b::0a00:0000/104)&lt;/P&gt;
&lt;P&gt;Range (first/last) in NAT64 form:&lt;BR /&gt;first: 64:ff9b::10.0.0.0 (hex: 64:ff9b::0a00:0000)&lt;BR /&gt;last: 64:ff9b::10.255.255.255 (hex: 64:ff9b::0aff:ffff)&lt;BR /&gt;[Expert@CP-GW:0]# ./v4to6.sh 8.8.8.8&lt;BR /&gt;Input: 8.8.8.8&lt;/P&gt;
&lt;P&gt;IPv4-mapped IPv6 (RFC4291 ::ffff:0:0/96):&lt;BR /&gt;dotted: ::ffff:8.8.8.8&lt;BR /&gt;hex: ::ffff:808:808 (full: ::ffff:0808:0808)&lt;/P&gt;
&lt;P&gt;NAT64 IPv4-embedded IPv6 (RFC6052 /96 prefix):&lt;BR /&gt;dotted: 64:ff9b::8.8.8.8&lt;BR /&gt;hex: 64:ff9b::808:808 (full: 64:ff9b::0808:0808)&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 13:30:03 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2026-02-03T13:30:03Z</dc:date>
    <item>
      <title>Ipv4 tp Ipv6 conversion script</title>
      <link>https://community.checkpoint.com/t5/Scripts/Ipv4-tp-Ipv6-conversion-script/m-p/269560#M1428</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Here is basic script that converts ipv4 IPs/subnets to ipv6.&lt;/P&gt;
&lt;P&gt;lab example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[Expert@CP-GW:0]# ./v4to6.sh 10.0.0.0/8&lt;BR /&gt;Input: 10.0.0.0/8&lt;/P&gt;
&lt;P&gt;IPv4 subnet:&lt;BR /&gt;network: 10.0.0.0/8&lt;BR /&gt;last: 10.255.255.255&lt;/P&gt;
&lt;P&gt;IPv4-mapped IPv6 subnet form (prefix length = 96 + IPv4 mask):&lt;BR /&gt;dotted: ::ffff:10.0.0.0/104&lt;BR /&gt;hex: ::ffff:a00:0/104 (full: ::ffff:0a00:0000/104)&lt;/P&gt;
&lt;P&gt;NAT64 IPv4-embedded IPv6 subnet form (prefix length = 96 + IPv4 mask):&lt;BR /&gt;dotted: 64:ff9b::10.0.0.0/104&lt;BR /&gt;hex: 64:ff9b::a00:0/104 (full: 64:ff9b::0a00:0000/104)&lt;/P&gt;
&lt;P&gt;Range (first/last) in NAT64 form:&lt;BR /&gt;first: 64:ff9b::10.0.0.0 (hex: 64:ff9b::0a00:0000)&lt;BR /&gt;last: 64:ff9b::10.255.255.255 (hex: 64:ff9b::0aff:ffff)&lt;BR /&gt;[Expert@CP-GW:0]# ./v4to6.sh 8.8.8.8&lt;BR /&gt;Input: 8.8.8.8&lt;/P&gt;
&lt;P&gt;IPv4-mapped IPv6 (RFC4291 ::ffff:0:0/96):&lt;BR /&gt;dotted: ::ffff:8.8.8.8&lt;BR /&gt;hex: ::ffff:808:808 (full: ::ffff:0808:0808)&lt;/P&gt;
&lt;P&gt;NAT64 IPv4-embedded IPv6 (RFC6052 /96 prefix):&lt;BR /&gt;dotted: 64:ff9b::8.8.8.8&lt;BR /&gt;hex: 64:ff9b::808:808 (full: 64:ff9b::0808:0808)&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 13:30:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Ipv4-tp-Ipv6-conversion-script/m-p/269560#M1428</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-03T13:30:03Z</dc:date>
    </item>
  </channel>
</rss>

