Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. HPE6-A86/
  4. HPE6-A86 Learning Path/
  5. Study FAQs/
  6. How do I calculate an IPv4 subnet mask, broadcast address and usable host range?

Study FAQ

How do I calculate an IPv4 subnet mask, broadcast address and usable host range?

Exam · HPE6-A86Knowledge domain · Identify, describe, and apply foundational networking architectures and technologies.Updated Nov 25, 2026
Also asked as 2
  • How can I derive the network and usable addresses from an IPv4 CIDR prefix?
  • How do I find the IPv4 subnet boundaries from a host address and prefix length?

Answer

Write the prefix length as that many leading binary ones in a 32-bit mask. A bitwise AND between the address and mask gives the network address. Set all host bits to one to get the broadcast address for an ordinary IPv4 subnet. Usable host values fall between those two boundaries.

For 192.0.2.77/26, the 26 network bits leave six host bits. The mask is 255.255.255.192, with 11000000 in the last octet. The block size in the last octet is 256 − 192 = 64, so the blocks begin at .0, .64, .128 and .192. Address .77 lies in the block beginning at .64.

Value Result
Network 192.0.2.64/26
Broadcast 192.0.2.127
Usable host addresses 192.0.2.65 through 192.0.2.126
Usable host count 2^6 − 2 = 62

Keep the ordinary host count rule scoped to conventional subnets such as this one. A /31 point-to-point prefix and a /32 host route have different purposes. Address eligibility also leaves assignment and uniqueness to check in the actual network.

References

  • RFC 4632, CIDR address assignment and aggregation
  • RFC 1122, Requirements for Internet Hosts
  • RFC 3021, 31-bit prefixes on IPv4 point-to-point links

Full explanation

HPE6-A86: IPv4 Subnetting, ARP and the Next-Hop Decision

Study guide · HPE6-A86

Read the full explanation →
← Back to HPE6-A86 FAQsView learning path →

Related questions

Which address does an IPv4 host resolve with ARP for local and remote traffic? →What happens to an Ethernet frame and its IP packet when traffic crosses a router? →How does an Ethernet switch learn MAC addresses and handle an unknown destination? →What do TCP and UDP provide on a switched and routed IP network? →How do I tell whether a copper or fiber Ethernet link is compatible? →When does an IPv4 static routing design need a default route? →
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.