Skip to content

Instantly share code, notes, and snippets.

@TehPeGaSuS
Last active June 17, 2024 09:32
Show Gist options
  • Save TehPeGaSuS/33a460edc8326c2bb1b515186973a3d6 to your computer and use it in GitHub Desktop.
Save TehPeGaSuS/33a460edc8326c2bb1b515186973a3d6 to your computer and use it in GitHub Desktop.
CIDR Masks
CIDR Notation Prefix Length Subnet Mask (Decimal) Network Address Address Range Total Hosts
/8 8 255.0.0.0 167.0.0.0/8 167.0.0.0 - 167.255.255.255 16,777,216
/16 16 255.255.0.0 167.94.0.0/16 167.94.0.0 - 167.94.255.255 65,536
/24 24 255.255.255.0 167.94.138.0/24 167.94.138.0 - 167.94.138.255 256
/32 32 255.255.255.255 167.94.138.125/32 167.94.138.125 1

Details

CIDR Notation Explanation
/8 This subnet mask allows for 24 bits for host addresses within the IP address range 0.0.0.0 to 255.255.255.255, providing a total of 16,777,216 possible host addresses.
/16 With a subnet mask allowing 16 bits for host addresses, it covers the IP address range 0.0.0.0 to 0.255.255.255, offering 65,536 possible host addresses.
/24 This subnet mask provides 8 bits for host addresses, covering the IP address range 0.0.0.0 to 0.0.0.255, with 256 possible host addresses.
/32 This represents a point-to-point link or a single host, as it includes only one IP address (0.0.0.0).
CIDR Notation Prefix Length Subnet Mask (Hexadecimal) Network Address Address Range Total Hosts
/48 48 ffff:ffff:ffff:: 2001:4860:4860::/48 2001:4860:4860:0000:0000:0000:0000:0000 - 2001:4860:4860:ffff:ffff:ffff:ffff:ffff 1.20892582 × 10^24 (~1.2 undecillion)
/56 56 ffff:ffff:ffff:ff00:: 2001:4860:4860:0000::/56 2001:4860:4860:0000:0000:0000:0000:0000 - 2001:4860:4860:00ff:ffff:ffff:ffff:ffff 4.72236648 × 10^21 (~4.7 sextillion)
/64 64 ffff:ffff:ffff:ffff:: 2001:4860:4860:0000::/64 2001:4860:4860:0000:0000:0000:0000:0000 - 2001:4860:4860:0000:ffff:ffff:ffff:ffff 1.84467441 × 10^19 (~18.4 quintillion)
/96 96 ffff:ffff:ffff:ffff:ffff:ffff:: 2001:4860:4860:0000:0000:0000::/96 2001:4860:4860:0000:0000:0000:0000:0000 - 2001:4860:4860:0000:0000:0000:ffff:ffff 4.29496730 × 10^9 (~4.3 billion)
/112 112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00 2001:4860:4860:0000:0000:0000:0000:8800/112 2001:4860:4860:0000:0000:0000:0000:8800 - 2001:4860:4860:0000:0000:0000:0000:88ff 65,536
/120 120 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 2001:4860:4860:0000:0000:0000:0000:8880/120 2001:4860:4860:0000:0000:0000:0000:8880 - 2001:4860:4860:0000:0000:0000:0000:888f 256
/128 128 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2001:4860:4860:0000:0000:0000:0000:8888/128 2001:4860:4860:0000:0000:0000:0000:8888 - 2001:4860:4860:0000:0000:0000:0000:8888 1

Details

CIDR Notation Explanation
/48 Provides a vast number of possible subnets and is typically used for very large organizations or service providers.
/56 Used for smaller organizations or larger branches within a larger network.
/64 The standard subnet size for local area networks (LANs) and is commonly used for end-user assignments.
/96 Often used for point-to-point links between routers.
/112 Used for very small subnets within larger networks or for specialized purposes.
/120 Used for very small subnets or point-to-point links within a larger network.
/128 Represents a single IPv6 address, typically used for loopback or specific device assignments.
@d3xt3r01
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment