Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Ipv4 tp Ipv6 conversion script

the_rock
MVP Diamond
MVP Diamond

Hey guys,

Here is basic script that converts ipv4 IPs/subnets to ipv6.

lab example:

 


[Expert@CP-GW:0]# ./v4to6.sh 10.0.0.0/8
Input: 10.0.0.0/8

IPv4 subnet:
network: 10.0.0.0/8
last: 10.255.255.255

IPv4-mapped IPv6 subnet form (prefix length = 96 + IPv4 mask):
dotted: ::ffff:10.0.0.0/104
hex: ::ffff:a00:0/104 (full: ::ffff:0a00:0000/104)

NAT64 IPv4-embedded IPv6 subnet form (prefix length = 96 + IPv4 mask):
dotted: 64:ff9b::10.0.0.0/104
hex: 64:ff9b::a00:0/104 (full: 64:ff9b

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




0 Kudos
0 Replies