Official source: Cisco CCNA certification page ↗ · Always confirm exam details with Cisco

CCNA subnetting explained, step by step

Updated October 2026 · Independent guide, not affiliated with Cisco

Subnetting is the skill that trips up most CCNA candidates, and Cisco itself calls it one of the hardest parts for people new to IT. The good news: it is a fixed method you can practise until it is automatic.

What subnetting is

An IPv4 address has 32 bits, written as four decimal numbers (octets). The subnet mask (or CIDR prefix such as /26) says how many of those bits identify the network. The remaining bits identify hosts inside that network. Subnetting means borrowing host bits to split one network into several smaller ones.

The three numbers you must know

Quick reference table

PrefixMaskBlock sizeUsable hosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242

Worked example: 192.168.10.77/26

  1. The prefix is /26, so the mask is 255.255.255.192 and the block size is 64.
  2. Subnets in the last octet start at 0, 64, 128, 192.
  3. 77 falls between 64 and 128, so the network address is 192.168.10.64.
  4. The next subnet starts at 128, so the broadcast address is 192.168.10.127.
  5. Usable hosts run from 192.168.10.65 to 192.168.10.126 (62 hosts).

Check your answer with the free subnet calculator, which also shows the binary view.

How to split a network for a requirement

If you need 5 subnets from 192.168.1.0/24, find the smallest power of two that is at least 5. That is 8 (23), so borrow 3 bits: /24 becomes /27. Each subnet has 32 addresses and 30 usable hosts. If you instead need 50 hosts per subnet, you need 6 host bits (26 − 2 = 62), so use /26.

VLSM in one paragraph

Variable-length subnet masking lets you use different prefix lengths inside one address block so little is wasted. Sort requirements from largest to smallest, give the largest its subnet first, then carve the next from the space that remains. Point-to-point router links usually get a /30.

Special cases CCNA likes to test

How to practise

Do ten problems a day for two weeks and time yourself. Use the subnet trainer, watch the free Subnetting Mastery playlist by Practical Networking, then test yourself in the CCNA practice quiz.

Frequently asked questions

What is the fastest way to subnet for the CCNA?

Memorise the block sizes (128, 64, 32, 16, 8, 4) and find which multiple of the block size your address falls into. That gives the network address, and the next block minus one gives the broadcast address.

How many usable hosts are in a /27?

A /27 has 5 host bits, so 2^5 = 32 addresses and 30 usable hosts.

Do I need to know binary for the CCNA?

Yes, at least to convert octets quickly and understand masks. Most questions can then be solved with the block-size method.

Facts about the exam come from Cisco's CCNA page; always confirm there before booking.