Skip to content

IP Address Classes and Subnet Mask: Network vs Host Portions Explained

Key Outcomes of This Session

  • Recall the various classes of IPv4 addresses
  • Understand the purpose of a subnet mask
  • Identify whether nodes belong to the same network or different networks

IPv4 Address Classes Recap

  • Class A: First octet 0-127 (network portion: 1 octet; host portion: 3 octets)
  • Class B: First octet 128-191 (network: first 2 octets; host: last 2 octets)
  • Class C: First octet 192-223 (network: first 3 octets; host: last octet)
  • Class D: First octet 224-239 (used for multicast)
  • Class E: First octet 240-255 (experimental/research)

For a more detailed breakdown of how these ranges are structured, explore our IPv4 Address Classes Explained: Class A, B, C, D, E Identification Guide. To understand why such fixed classes were historically necessary and the issues they caused, see Why We're Out of IP Addresses: Classful Addressing Explained.

What is a Subnet Mask?

  • Function: The subnet mask works with an IP address to define which bits represent the network and which represent the host.
  • Analogy:
    • IP address = identity of a device
    • Subnet mask = tells you who your neighbors are (the network)
  • Default Subnet Masks (Classful):
    • Class A: 255.0.0.0 (or /8)
    • Class B: 255.255.0.0 (or /16)
    • Class C: 255.255.255.0 (or /24)
  • Format: Can be written in decimal, binary, or slash (prefix) notation.

Understanding Network vs. Host Portions

  • Rule: A '255' in an octet of the subnet mask means that corresponding octet in the IP address is the network portion.
  • Example: IP 192.168.10.10 with mask 255.255.255.0 means:
    • Network: 192.168.10.x
    • Host: The last octet (.10)
    • Any device starting with 192.168.10. is on the same network.

How to Identify Networks

  • Same Network: If the network portion of their IPs matches (based on the subnet mask).
  • Different Network: If the network portion differs. Communication between different networks requires a router.

For a deeper dive into the mechanics of identifying network boundaries and subnetting beyond fixed class limits, refer to IP Addresses Explained: Master Subnetting Basics for IT Pros.

Host Capacity per Class

  • Class A: 2^24 - 2 = ~16 million usable hosts (per network)
  • Class B: 2^16 - 2 = 65,534 usable hosts
  • Class C: 2^8 - 2 = 254 usable hosts
  • Tip: Subtract 2 from total possible hosts (one for network ID, one for broadcast address).

Key Takeaways

  1. Every IP address must be accompanied by a subnet mask.
  2. The subnet mask does not contain the network info; it tells you which part of the IP to look at.
  3. In classful addressing, classes A, B, and C have fixed default masks.

To learn how modern networking overcomes the rigid limitations of classful addressing through Variable Length Subnet Masks (VLSM), see Mastering CCNA Subnetting: CIDR and Efficient IP Addressing. For a companion guide on CIDR notation, check out Mastering CIDR and Subnetting: Essential CCNA Network Skills.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Related summaries

IPv4 Address Classes Explained: Class A, B, C, D, E Identification Guide

IPv4 Address Classes Explained: Class A, B, C, D, E Identification Guide

This tutorial provides a comprehensive breakdown of the five classes of IPv4 addresses (A, B, C, D, and E). Learn how to identify each class using binary notation and dotted decimal format, with clear examples and a practical activity to test your understanding.

IP Addresses Explained: Master Subnetting Basics for IT Pros

IP Addresses Explained: Master Subnetting Basics for IT Pros

This beginner-friendly video explains what an IP address is, how devices get one, and the role of subnet masks and default gateways. Learn the fundamentals of network communication, including how devices talk within a network versus the internet, using a simple house address analogy.

Mastering CCNA Subnetting: CIDR and Efficient IP Addressing

Mastering CCNA Subnetting: CIDR and Efficient IP Addressing

This video provides a clear, step-by-step introduction to subnetting for the CCNA, focusing on CIDR (Classless Inter-Domain Routing) and the efficient allocation of IPv4 addresses. Learn the fundamentals of IPv4 classes, how subnetting solves IP address waste, and practice calculating subnet sizes to optimize network design.

Why We're Out of IP Addresses: Classful Addressing Explained

Why We're Out of IP Addresses: Classful Addressing Explained

Discover the reasons behind the IPv4 address shortage, from mismanaged classful addressing to wasted IP ranges. Learn about Class A, B, C, D, E networks, loopback addresses, and how subnetting offers a band-aid solution.

Mastering CIDR and Subnetting: Essential CCNA Network Skills

Mastering CIDR and Subnetting: Essential CCNA Network Skills

Explore the fundamentals of CIDR (Classless Inter-Domain Routing) and subnetting, vital for CCNA certification and network engineering. This guide breaks down IPv4 address classes, the limitations of classful addressing, and detailed subnetting techniques to maximize IP address efficiency.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes