Skip to the content

/24 Subnet (255.255.255.0)

A /24 network has 256 addresses, 254 of them usable, and the subnet mask 255.255.255.0. It is the usual size of a home or office network.

With or without a prefix: 192.168.1.10/24

/24

Network in CIDR notation

192.168.1.0/24

254 usable hosts, from 192.168.1.1 to 192.168.1.254.

Network address
192.168.1.0
Broadcast address
192.168.1.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Usable hosts
254
Total addresses
256
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
IP class
C, default mask /24
Address type
Private (RFC 1918), in 192.168.0.0/16

In binary

Address
11000000.10101000.00000001.00000000
Mask
11111111.11111111.11111111.00000000
Network
11000000.10101000.00000001.00000000
Broadcast
11000000.10101000.00000001.11111111

The line marks where the network part ends: 24 network bits to its left, 8 host bits to its right.

Split into smaller subnets

4 subnets of /26, 62 usable hosts each.

  1. 192.168.1.0/26Hosts 192.168.1.1 – 192.168.1.62Broadcast 192.168.1.63
  2. 192.168.1.64/26Hosts 192.168.1.65 – 192.168.1.126Broadcast 192.168.1.127
  3. 192.168.1.128/26Hosts 192.168.1.129 – 192.168.1.190Broadcast 192.168.1.191
  4. 192.168.1.192/26Hosts 192.168.1.193 – 192.168.1.254Broadcast 192.168.1.255
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

/24 at a glance

Subnet mask
255.255.255.0
Mask in binary
11111111.11111111.11111111.00000000
Wildcard mask
0.0.0.255
Addresses in one network
256
Usable for hosts
254
Networks of this size
256 in a /16, 65,536 in a /8

Where /24 networks begin

The mask ends exactly on a dot, so no arithmetic is needed: the first three numbers name the network and the rest names the host. Every value of the third number is a network of its own.

192.168.0.0/22 divided into 4 networks of /24

  1. 192.168.0.0/24Hosts 192.168.0.1 – 192.168.0.254Broadcast 192.168.0.255
  2. 192.168.1.0/24Hosts 192.168.1.1 – 192.168.1.254Broadcast 192.168.1.255
  3. 192.168.2.0/24Hosts 192.168.2.1 – 192.168.2.254Broadcast 192.168.2.255
  4. 192.168.3.0/24Hosts 192.168.3.1 – 192.168.3.254Broadcast 192.168.3.255

In practice

Home routers ship with a /24, most often 192.168.0.0/24 or 192.168.1.0/24, and in the old class system it was class C. The router usually takes the first usable address (.1) or the last (.254). That is a habit, not a rule.

On the internet a /24 is the smallest block that providers generally accept from each other in routing. Anything smaller has to be announced as part of a larger block.

The subnet calculator takes any address with any prefix or mask, explains the address classes and the private ranges, and splits a network into subnets.