Subnet Mask Table

The following table provides a quick reference guide for subnet masks and their corresponding CIDR notation from /30 up to /8. It helps determine the number of available IP addresses, total network size, and broadcast addresses within a subnet.

Table of Contents

IPv4

CIDRNetmaskTotal addressesUsable
/30255.255.255.25241
/29255.255.255.24885
/28255.255.255.2401613
/27255.255.255.2243229
/26255.255.255.1926461
/25255.255.255.128128125
/24255.255.255.0256253
/23255.255.254.0512509
/22255.255.252.01,0241,021
/21255.255.248.02,0482,045
/20255.255.240.04,0964,093
/19255.255.224.08,1928,189
/18255.255.192.016,38416,381
/17255.255.128.032,76832,765
/16255.255.0.065,53665,533
/12255.240.0.01,048,5441,048,541
/8255.0.0.016,777,21416,777,211

 

Example:

The subnet: 192.168.5.0/30 has 4 addresses

192.168.5.0 – Network Address

192.168.5.1 – Gateway

192.168.5.2 – Usable IP

192.168.5.3 – Broadcast

 

More information:

  1. Network Address: The network address represents the starting address of a subnet. It is used to identify the network itself and cannot be assigned to a host.
  2. CIDR Notation: CIDR (Classless Inter-Domain Routing) notation represents the subnet mask using a combination of an IP address and a slash (“/”) followed by the prefix length. For example, the CIDR notation “192.168.10.0/30” signifies a subnet with a prefix length of 30.
  3. Usable IP Addresses: The usable IP addresses are the range of IP addresses that can be assigned to devices within a subnet. These IP addresses exclude the network and broadcast addresses.
  4. Broadcast Address: The broadcast address represents the last address in a subnet and is used to send a message to all devices within that subnet. It cannot be assigned to a host.
  5. Total IP Addresses: The total IP addresses in a subnet refer to the sum of usable IP addresses, network address, and broadcast address. It provides an overview of the size of the subnet.
If you enjoyed this article, then you’ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! Check out our services.