Put IP with cidr into form above and hit [Convert] button. For example if you enter IP address 127.0.0.1/24 you will get IP range: 127.0.0.1 - 127.0.0.255. Press here to test this example.
Classless Inter-Domain Routing (CIDR /ˈsaɪdər, ˈsɪ-/) is a method for allocating IP addresses and IP routing. The Internet Engineering Task Force introduced CIDR in 1993 to replace the previous addressing architecture of classful network design in the Internet. Its goal was to slow the growth of routing tables on routers across the Internet, and to help slow the rapid exhaustion of IPv4 addresses.
IP addresses are described as consisting of two groups of bits in the address: the most significant bits are the network prefix, which identifies a whole network or subnet, and the least significant set forms the host identifier, which specifies a particular interface of a host on that network. This division is used as the basis of traffic routing between IP networks and for address allocation policies.
Whereas classful network design for IPv4 sized the network prefix as one or more 8-bit groups, resulting in the blocks of Class A, B, or C addresses, Classless Inter-Domain Routing allocates address space to Internet service providers and end users on any address bit boundary. In IPv6, however, the interface identifier has a fixed size of 64 bits by convention, and smaller subnets are never allocated to end users.
CIDR encompasses several concepts. It is based on the variable-length subnet masking (VLSM) technique, which allows the specification of arbitrary-length prefixes. CIDR introduced a new method of representation for IP addresses, now commonly known as CIDR notation, in which an address or routing prefix is written with a suffix indicating the number of bits of the prefix, such as 192.0.2.0/24 for IPv4, and 2001:db8::/32 for IPv6. CIDR introduced an administrative process of allocating address blocks to organizations based on their actual and short-term projected needs. The aggregation of multiple contiguous prefixes resulted in supernets in the larger Internet, which whenever possible are advertised as aggregates, thus reducing the number of entries in the global routing table.
CIDR Length | Mask | # Networks | # Hosts |
---|---|---|---|
/32 | 255.255.255.255 | 1/256 C | 1 |
/31 | 255.255.255.254 | none | none |
/30 | 255.255.255.252 | 64 subnets | 2 |
/29 | 255.255.255.248 | 32 subnets | 6 |
/28 | 255.255.255.240 | 16 subnets | 14 |
/27 | 255.255.255.224 | 8 subnets | 30 |
/26 | 255.255.255.192 | 4 subnets | 62 |
/25 | 255.255.255.128 | 2 subnets | 124 |
/24 | 255.255.255.0 | 1 C | 254 |
/23 | 255.255.254.0 | 2 C | 508 |
/22 | 255.255.252.0 | 4 C | 1,016 |
/21 | 255.255.248.0 | 8 C | 2,032 |
/20 | 255.255.240.0 | 16 C | 4,064 |
/19 | 255.255.224.0 | 32 C | 8,128 |
/18 | 255.255.192.0 | 64 C | 16,256 |
/17 | 255.255.128.0 | 128 C | 32,512 |
/16 | 255.255.0.0 | 1 B | 65,024 |
/15 | 255.254.0.0 | 2 B | 131,068 |
/14 | 255.252.0.0 | 4 B | 262,136 |
/13 | 255.248.0.0 | 8 B | 524,272 |
/12 | 255.240.0.0 | 16 B | 1,048,544 |
/11 | 255.224.0.0 | 32 B | 2,097,088 |
/10 | 255.192.0.0 | 64 B | 4,194,176 |
/9 | 255.128.0.0 | 128 B | 8,388,352 |
/8 | 255.0.0.0 | 1 A | 16,777,214 |
/7 | 254.0.0.0 | 2 A | 33,554,428 |
/6 | 252.0.0.0 | 4 A | 67,108,856 |
/5 | 248.0.0.0 | 8 A | 134,217,712 |
/4 | 240.0.0.0 | 16 A | 268,435,424 |
/3 | 224.0.0.0 | 32 A | 536,870,848 |
/2 | 192.0.0.0 | 64 A | 1,073,741,696 |
/1 | 128.0.0.0 | 128 A | 2,147,483,392 |