Skip to content
TR EN
7 min read · · UK Bilişim Network Engineering Team

Cisco CCNA Subnetting Practice Questions with Step-by-Step Solutions

Subnetting proficiency is the bedrock of passing the Cisco CCNA 200-301 exam. The five scenarios below are typical exam-level questions that test both speed and accuracy. Solve each one on paper before reading the step-by-step solution, and aim to complete any question in under a minute using the magic number method.

The Magic Number Method: Four Steps to Any Subnetting Question

Nearly every CCNA subnetting question can be answered without long binary conversions. The shortcut is the magic number, also called the block size:

  1. Find the interesting octet. This is the octet of the subnet mask that is neither 255 nor 0. For the /20 mask 255.255.240.0, it is the third octet.
  2. Calculate the magic number. Subtract the interesting octet from 256. For 240, the result is 16.
  3. Count in blocks. Network addresses are multiples of the magic number in that octet: 0, 16, 32, 48, and so on.
  4. Read off the answers. The block that contains the host address gives you the network address, the last address of the block is the broadcast, and everything in between is usable.
PrefixSubnet maskMagic numberTotal addressesUsable hosts
/25255.255.255.128128128126
/26255.255.255.192646462
/27255.255.255.224323230
/28255.255.255.240161614
/29255.255.255.248886
/30255.255.255.252442

For the underlying theory, work through the step-by-step subnetting tutorial and the primer on subnet masks and CIDR notation. A complete breakdown of host counts per prefix is available in the subnet host counts reference.

Practice Question 1: Find the Network and Broadcast Address

Question: A host is configured with 172.16.45.14/20. What are its network address and broadcast address?

Solution:

  1. The /20 mask is 255.255.240.0, so the interesting octet is the third one.
  2. Magic number: 256 - 240 = 16. Blocks advance by 16: 0, 16, 32, 48.
  3. The third octet, 45, falls between 32 and 47, so the host belongs to the block that starts at 32.
  4. The next block starts at 48, so the broadcast is the very last address before it.

Answer: Network address 172.16.32.0, broadcast address 172.16.47.255, usable host range 172.16.32.1 through 172.16.47.254. That is 4,094 usable hosts, exactly what the /20 row of the reference table predicts. You can confirm every value on the /20 subnet calculator page.

Practice Question 2: Identify the Valid Host Address

Question: Which of the following addresses can be assigned to a computer in the 192.168.1.64/27 subnet?

  • A) 192.168.1.64
  • B) 192.168.1.95
  • C) 192.168.1.90
  • D) 192.168.1.96

Solution:

  1. The /27 mask is 255.255.255.224. Magic number: 256 - 224 = 32, so the blocks are 0, 32, 64, 96.
  2. The subnet in question is 192.168.1.64, and the next block begins at .96, which makes 192.168.1.95 the broadcast address.
  3. The usable range is 192.168.1.65 through 192.168.1.94, a total of 30 hosts.
  4. Option A is the network address, option B is the broadcast address, and option D is the network address of the next subnet.

Answer: C) 192.168.1.90, the only option that falls inside the usable range.

Practice Question 3: Choose the Correct Mask for the Job

Question: Your company uses 192.168.10.0/24 and must create one subnet for each of four offices. Every office must support at least 50 hosts. Which subnet mask meets the requirement with the least waste?

Solution:

  1. Find the smallest block that still fits 50 usable hosts. A /27 provides only 30 usable hosts, which is too small. A /26 provides 62 usable hosts, which fits.
  2. Check the subnet count: borrowing 2 bits from a /24 produces 2 × 2 = 4 subnets, exactly one per office.
  3. The four subnets are 192.168.10.0/26, 192.168.10.64/26, 192.168.10.128/26, and 192.168.10.192/26.

Answer: 255.255.255.192 (/26), producing four subnets with 62 usable hosts each. A /25 would offer 126 usable hosts per subnet but only two subnets in total, which fails the requirement. Always verify both the host count and the subnet count before committing to an answer.

Practice Question 4: How Many Subnets Fit in a /16?

Question: A network engineer divides 172.16.0.0/16 into equal /20 subnets. How many subnets are created, and how many usable hosts does each contain?

Solution:

  1. Borrowed bits: 20 - 16 = 4.
  2. Number of subnets: 2 to the power of 4, which is 16.
  3. Each /20 block contains 4,096 total addresses, of which 4,094 are usable.

Answer: 16 subnets, each with 4,094 usable hosts. The first three are 172.16.0.0/20, 172.16.16.0/20, and 172.16.32.0/20, continuing in steps of 16 up to 172.16.240.0/20.

Question: Using VLSM, carve 192.168.100.0/24 into subnets that satisfy the following requirements with minimal waste: Sales needs 100 hosts, Engineering needs 50 hosts, Management needs 20 hosts, and a point-to-point WAN link connects two routers.

Solution: With VLSM, allocate the largest requirement first and begin each new subnet at the first free boundary:

  1. Sales, 100 hosts: a /26 holds only 62 usable hosts, so use a /25 with 126. Assign 192.168.100.0/25, usable .1 through .126, broadcast .127.
  2. Engineering, 50 hosts: a /26 with 62 usable hosts fits. Assign 192.168.100.128/26, usable .129 through .190, broadcast .191.
  3. Management, 20 hosts: a /27 with 30 usable hosts fits. Assign 192.168.100.192/27, usable .193 through .222, broadcast .223.
  4. WAN link, 2 hosts: a /30 with 2 usable hosts is the classic choice. Assign 192.168.100.224/30, usable .225 and .226, broadcast .227.

Addresses .228 through .255 remain free for future subnets. For a deeper treatment of variable-length design, read the VLSM calculator guide. Note that modern Cisco routers also accept a /31 on point-to-point links, which provides 2 usable addresses with no reserved network or broadcast overhead, but the /30 remains the safe, universally supported exam answer.

Common Mistakes That Cost Points

  • Forgetting the two reserved addresses. The network and broadcast addresses can never be assigned to hosts, so a /28 offers 14 usable addresses, not 16.
  • Miscounting subnets. Subnetting a /24 into /26s borrows 2 bits and yields 4 subnets, not 2.
  • Off-by-one broadcast errors. The broadcast is the last address of the block, not the first address of the next block.
  • Confusing the mask value with the block size. In a /20, the block size is 16 (256 - 240), not 240.
  • Sizing by total addresses. A block of 64 total addresses offers only 62 usable, so a requirement for 63 hosts forces you to the next larger prefix.

Real-World Subnetting: Offices, VLANs, and Cloud VPCs

The same arithmetic runs production networks every day. Office LANs are usually planned as one subnet per VLAN, sized with room for growth: a 100-user floor might receive a /24 even though a /25 would fit, simply to avoid re-addressing later. Router-to-router point-to-point links are configured as /30 or /31 so that two devices do not consume a /24. In cloud platforms such as AWS VPCs and Azure VNets, you define subnets in CIDR notation at creation time: a VPC built on 10.0.0.0/16 might place the web tier in 10.0.1.0/24 and the database tier in 10.0.2.0/24, and overlapping ranges are rejected just as they would be on a router. These designs almost always start from the RFC 1918 private ranges, 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16, covered in detail in the private IP ranges guide.

Whenever you want to check your work, plug any address from these questions into the subnet calculator and compare the output with your handwritten answer. Consistent agreement means you are ready for exam pace.

Frequently Asked Questions (FAQ)

How fast should I be able to solve subnetting questions on the CCNA exam? →

Aim to solve any subnetting question in under 30 to 45 seconds using mental block sizes. If you consistently need more than a minute, drill the magic number method until the block sizes for /25 through /30 are automatic.

Can I use a calculator on the CCNA exam? →

No. Calculators and subnet calculator tools are not permitted in the exam environment, so you must work out every subnetting answer mentally or on the erasable board provided at the test center.

Is binary conversion or the magic number method better for the exam? →

Both produce the same answer. Binary conversion builds a solid understanding of what the mask is actually doing and is worth learning first, while the magic number method is much faster under time pressure and is what most candidates rely on exam day.

What is the difference between /30 and /31 on point-to-point links? →

A /30 contains 4 total addresses with 2 usable after reserving the network and broadcast addresses. A /31 contains 2 addresses, both usable on point-to-point links, and is supported on Cisco routers. The /30 is the traditional exam answer; the /31 halves the address consumption.

Does the CCNA exam include IPv6 subnetting? →

Yes, IPv6 addressing is part of the CCNA 200-301 curriculum. The logic of dividing a prefix into smaller blocks is the same as in IPv4, but you work in hexadecimal and there is no need to reserve network or broadcast addresses.

How should I practice subnetting before the exam? →

Solve questions like the ones above on paper first, then verify each answer with an online subnet calculator. Short daily practice sessions build speed faster than occasional long ones.

Network Engineering Toolset

All calculations execute client-side in your browser.

11 tools