Free tech learning for everyone, from basics to pro

/24 subnet (255.255.255.0)

Everything about a /24 network: mask, wildcard, number of hosts, example ranges and when to use it.

Prefix (CIDR)/24
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Total addresses256
Usable hosts254
Block size1 in the third octet
Mask in binary11111111.11111111.11111111.00000000

What is a /24 used for?

The classic LAN size: one office VLAN, a home network (192.168.1.0/24) or a server segment. The most common subnet in the world.

How the numbers are worked out

/24 means the first 24 bits of the address are the network part, leaving 8 bits for hosts. 28 = 256 addresses. Take away 2 for the network and broadcast addresses and you get 254 usable hosts.

The mask has 24 ones followed by 8 zeros. The wildcard mask is the opposite: 255.255.255.255 minus the subnet mask, 0.0.0.255.

Example /24 networks

NetworkUsable rangeBroadcast
192.168.1.0/24192.168.1.1 – 192.168.1.254192.168.1.255

Each next /24 network starts 256 addresses after the previous one. Work out any address with the free subnet calculator, or split a network into different sizes with the VLSM planner.

Frequently asked questions

How many hosts are in a /24 subnet?

A /24 has 256 addresses in total and 254 usable hosts. The first address is the network address and the last is the broadcast address.

What is the subnet mask for /24?

The subnet mask for /24 is 255.255.255.0, and the wildcard mask (used in Cisco ACLs and OSPF) is 0.0.0.255.

What is a /24 subnet used for?

The classic LAN size: one office VLAN, a home network (192.168.1.0/24) or a server segment. The most common subnet in the world.

Other prefix sizes

Learn more: subnetting in your head, subnetting step by step and the subnetting cheat sheet.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown