ip - Getting number of IPv6 addresses from Ipv6 CIDR in PHP -


is there way number of ipv6 addresses ipv6 cidr?

for example: cidr: 2403:3e00::/32 => need number of ipv6 addresses: 79228162514264337593543950336

an ipv6 address has 128 bits, of (slightly simplified) number dedicated network address, , rest dedicated host addresses.

in case, 32 bits dedicated network part (/32), other 96 dedicated host addresses.

2^(128-32) = 2^96 = 79228162514264337593543950336 hosts 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo