Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. 200-301/
  4. 200-301 Learning Path/
  5. Study FAQs/
  6. How do I calculate the network, broadcast, and usable hosts from an IPv4 prefix?

Study FAQ

How do I calculate the network, broadcast, and usable hosts from an IPv4 prefix?

Exam · 200-301Knowledge domain · Network FundamentalsUpdated Nov 25, 2026
Also asked as 2
  • How can I find the network address, broadcast address, and host range from IPv4 CIDR notation?
  • Given an IPv4 address and prefix length, how do I work out the subnet boundaries and usable range?

Answer

In a conventional IPv4 LAN subnet, keep the prefix bits and set all host bits to zero for the network address. Set all host bits to one for the directed broadcast address. The addresses in between are normally usable by hosts.

For 192.0.2.70/27, the mask is 255.255.255.224. The five host bits produce blocks of 32 addresses. The last octet 70 falls in the block from 64 to 95, so the network is 192.0.2.64, the broadcast is 192.0.2.95, and the usable range is 192.0.2.65 through 192.0.2.94. A conventional subnet with h host bits has 2^h minus 2 usable addresses. A /31 on an IPv4 point-to-point link can use both addresses. A /32 identifies one address, with no separate broadcast or host range to calculate.

To size a LAN, pick enough host bits for its usable address requirement. To divide a network into equal-size subnets, extend its prefix by enough bits to produce the required number of blocks. To check whether two addresses are local to one another on a simple Ethernet LAN, apply each host’s configured mask and compare its view of the network for both addresses. If the views disagree, check the masks and each host’s default gateway against the address plan. On the gateway, confirm the intended LAN prefix is present as a connected route.

References

  • Cisco IPv4 addressing and subnetting guide
  • RFC 3021 on IPv4 point-to-point links
  • RFC 5737 on IPv4 documentation addresses

Full explanation

IPv4 Addressing, Subnetting, and Private Address Design

Study guide · 200-301

Read the full explanation →
← Back to 200-301 FAQsView learning path →

Related questions

How do two-tier and three-tier campus networks compare with spine-leaf fabrics? →How do I choose between copper, multimode fiber, and single-mode fiber for Ethernet? →What should I check when an Ethernet link is up but CRC errors keep increasing? →How do I compare IPv6 prefixes when the addresses use double-colon compression? →How do IPv6 global unicast, unique local, link-local, multicast, and anycast addresses differ? →How does an Ethernet switch learn MAC addresses and forward unknown unicasts? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.