Subnet Masks


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.

IPv4

CIDR Netmask Total addresses Usable
/30 255.255.255.252 4 1
/29 255.255.255.248 8 5
/28 255.255.255.240 16 13
/27 255.255.255.224 32 29
/26 255.255.255.192 64 61
/25 255.255.255.128 128 125
/24 255.255.255.0 256 253
/23 255.255.254.0 512 509
/22 255.255.252.0 1,024 1,021
/21 255.255.248.0 2,048 2,045
/20 255.255.240.0 4,096 4,093
/19 255.255.224.0 8,192 8,189
/18 255.255.192.0 16,384 16,381
/17 255.255.128.0 32,768 32,765
/16 255.255.0.0 65,536 65,533
/12 255.240.0.0 1,048,544 1,048,541
/8 255.0.0.0 16,777,214 16,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.

  • ipv4, ip address
  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Related Articles

Forcefully Delete an IP Address from SolusVM

If at any point you find you have an orphaned ipaddress, you can delete it by running the...

Do You Offer a Hardware Firewall Solution?

Yes, we have a very limited selection of hardware firewalls available. We appreciate the specific...

What Server Virtualization Are Your Hypervisors?

All VPS hypervisors use KVM virtualization technology. Order here: KVM VPS servers

Video: How to Check Whether the VPS Status is Online or Offline in Virtualizor

This video tutorial provides Step-by-Step instructions for how to check whether the VPS status is...

Video: How to Check VPS RAM, IP, Disk Capacity and the Virtualization Details in Virtualizor

This video tutorial provides Step-by-Step instructions for how to check VPS RAM, IP, disk...