ex.IPv6 address with CIDR: 2620:0:2d0:200::7/32 out put Start Range: 2620:0:0:0:0:0:0:0 End Range: 2620:0:ffff:ffff:ffff:ffff:ffff:ffff
how to calculate with PL/SQL ?
ex.IPv6 address with CIDR: 2620:0:2d0:200::7/32 out put Start Range: 2620:0:0:0:0:0:0:0 End Range: 2620:0:ffff:ffff:ffff:ffff:ffff:ffff
how to calculate with PL/SQL ?
Once I wrote a general PL/SQL Package where you can do such conversions. It works for both, IPv4 and IPv6.
Then you can use it for example like this:
If you prefer
2620:0:0:0:0:0:0:0
then useHowever, according RFC 5952
2620::
would be the preferred format.Here are a few examples how this package can be used:
Or a more complex one which translates an IPv4 into IPv6 or vice versa using 6to4 and 6RD Network Prefix: