Track my ip

CIDR Cheat Sheet

Classless Inter-Domain Routing (CIDR) notation is a method for specifying IP addresses and their associated network masks. It simplifies the address format by using a suffix (e.g., /24) to indicate how many bits are used for the network portion of the address, with the remaining bits reserved for host addresses.

Below is a table summarizing CIDR prefixes, potential hosts, netmasks, and the number of subnets.

CIDR PrefixPotential HostsNetmaskNumber of Subnets
/312255.255.255.254128
/304255.255.255.25264
/298255.255.255.24832
/2816255.255.255.24016
/2732255.255.255.2248
/2664255.255.255.1924
/25128255.255.255.1282
/24256255.255.255.01
/23512255.255.254.0128
/221,024255.255.252.064
/212,048255.255.248.032
/204,096255.255.240.016
/198,192255.255.224.08
/1816,384255.255.192.04
/1732,768255.255.128.02
/1665,536255.255.0.01
/15131,072255.254.0.0128
/14262,144255.252.0.064
/13524,288255.248.0.032
/121,048,576255.240.0.016
/112,097,152255.224.0.08
/104,194,304255.192.0.04
/98,388,608255.128.0.02
/816,777,216255.0.0.01
/733,554,432254.0.0.0128
/667,108,864252.0.0.064
/5134,217,728248.0.0.032
/4268,435,456240.0.0.016
/3536,870,912224.0.0.08
/21,073,741,824192.0.0.04
/12,147,483,648128.0.0.02
/04,294,967,2960.0.0.01

Key Concepts

  • CIDR Notation: The / suffix in CIDR notation (e.g., /24) indicates the number of bits used for the network portion of the address. The remaining bits are used for host addresses.
  • Netmask: The netmask is a 32-bit number that masks an IP address, dividing it into the network and host portions.
  • Potential Hosts: Represents the total number of IP addresses available within the subnet, including the network and broadcast addresses.
  • Number of Subnets: Represents the possible number of subnets when the corresponding prefix is applied to a larger network.

Example

  • 192.168.1.12/24: The /24 indicates a 24-bit network mask (255.255.255.0), meaning the first 24 bits are used for the network address, leaving the remaining 8 bits for host addresses. Therefore, 192.168.1.12 is part of the 192.168.1.0/24 network.

This cheat sheet provides a quick reference to understanding CIDR notation, helping you determine the size of a subnet and the potential number of hosts it can support.


Categories:

About The Author: