CIDR Subnet Reference

Detailed information about IPv4 and IPv6 CIDR notation

CIDR (Classless Inter-Domain Routing) notation is a compact method for specifying IP addresses and their routing suffix. Select a CIDR prefix below to view detailed information about that specific subnet size.

What is CIDR?

CIDR (Classless Inter-Domain Routing) is a method for allocating IP addresses and IP routing. It replaced the previous classful network addressing architecture and helps address the scarcity of IPv4 addresses.

The CIDR notation combines the network address with a suffix that indicates the number of bits in the prefix, for example 192.168.1.0/24.

The suffix "/24" indicates that the first 24 bits are used for the network part, leaving the remaining 8 bits for host addresses within that network.

IPv4 Subnet Reference

This comprehensive table shows all IPv4 CIDR notations from /0 to /32 with their corresponding subnet masks, number of usable hosts, and available IPs for different cloud providers.

CIDRSubnet MaskUsable HostsAWS IPsAzure IPsGCP IPs
/00.0.0.04,294,967,2944,294,967,2894,294,967,2894,294,967,290
/1128.0.0.02,147,483,6462,147,483,6412,147,483,6412,147,483,642
/2192.0.0.01,073,741,8221,073,741,8171,073,741,8171,073,741,818
/3224.0.0.0536,870,910536,870,905536,870,905536,870,906
/4240.0.0.0268,435,454268,435,449268,435,449268,435,450
/5248.0.0.0134,217,726134,217,721134,217,721134,217,722
/6252.0.0.067,108,86267,108,85767,108,85767,108,858
/7254.0.0.033,554,43033,554,42533,554,42533,554,426
/8255.0.0.016,777,21416,777,20916,777,20916,777,210
/9255.128.0.08,388,6068,388,6018,388,6018,388,602
/10255.192.0.04,194,3024,194,2974,194,2974,194,298
/11255.224.0.02,097,1502,097,1452,097,1452,097,146
/12255.240.0.01,048,5741,048,5691,048,5691,048,570
/13255.248.0.0524,286524,281524,281524,282
/14255.252.0.0262,142262,137262,137262,138
/15255.254.0.0131,070131,065131,065131,066
/16255.255.0.065,53465,52965,52965,530
/17255.255.128.032,76632,76132,76132,762
/18255.255.192.016,38216,37716,37716,378
/19255.255.224.08,1908,1858,1858,186
/20255.255.240.04,0944,0894,0894,090
/21255.255.248.02,0462,0412,0412,042
/22255.255.252.01,0221,0171,0171,018
/23255.255.254.0510505505506
/24255.255.255.0254249249250
/25255.255.255.128126121121122
/26255.255.255.19262575758
/27255.255.255.22430252526
/28255.255.255.240149910
/29255.255.255.2486112
/30255.255.255.2522000
/31255.255.255.2540 (point-to-point)000
/32255.255.255.2551 (single host)000

IPv6 Address Types

IPv6 introduces several types of addresses, each serving a specific purpose in the network. Understanding these types is crucial for proper network design and implementation.

Address TypePrefixDescriptionExample
Global Unicast2000::/3Globally routable addresses2001:db8::
Unique Localfc00::/7Private addresses (similar to IPv4 private ranges)fd12:3456:789a::
Link-Localfe80::/10Addresses for communication within a single network segmentfe80::1
Multicastff00::/8One-to-many communicationff02::1
Loopback::1/128Localhost address::1
Unspecified::/128Used when no address is specified::

IPv6 Address Structure

IPv6 addresses are structured into three main parts, each serving a specific purpose in network routing and host identification.

Global Routing Prefix
48 bits
Subnet ID
16 bits
Interface ID
64 bits

Global Routing Prefix (48 bits)

Assigned by your ISP, identifies your organization's network on the global internet.

Subnet ID (16 bits)

Used by organizations to create up to 65,536 subnets within their allocated prefix.

Interface ID (64 bits)

Identifies individual interfaces on a subnet, often generated using EUI-64 or randomly.

IPv6 CIDR Reference

IPv6 uses a 128-bit address space and CIDR notation from /0 to /128. Here is a comprehensive reference of common IPv6 prefix lengths and their uses.

CIDRDescriptionNumber of /64 SubnetsCommon Usage
/0Entire IPv6 address space2^64Default route
/31/8 of the IPv6 address space2^61IANA allocation
/12Regional Internet Registry allocation2^52RIR allocation
/16Large ISP allocation2^48Major ISP
/24Medium ISP allocation2^40Medium ISP
/32ISP allocation2^32ISP allocation
/40Large organization allocation2^24Large enterprise
/48Organization/Site allocation2^16 (65,536)Enterprise network
/52Medium organization allocation2^12 (4,096)Medium business
/56Small organization/Home network2^8 (256)Small business/Home
/60Small office allocation2^4 (16)Small office
/64Standard subnet size1Individual subnet
/80Small subnet allocation2^-16Specialized networks
/96IPv4-mapped IPv6 addresses2^-32IPv4/IPv6 translation
/112Very small subnet2^-48Point-to-point links
/126Point-to-point links2^-62Router interconnects
/127Point-to-point links2^-63Router interconnects
/128Single host address2^-64Loopback, anycast