knowledge

Overview

Subnetting divides a network into smaller, manageable segments, improving efficiency, security, and routing. Using a subnet mask, subnetting defines network boundaries and limits the number of hosts per subnet — making it essential for network segmentation, IP address organization, and routing design.


Terminology

TermDefinition
Subnet Mask32-bit value separating the network and host portions of an IP address (e.g., 255.255.255.0)
Network AddressIdentifies the start of a subnet; not assignable to a host (e.g., 192.168.1.0)
Host AddressIdentifies an individual device within the subnet (e.g., 192.168.1.100)
Default GatewayDevice that routes traffic outside the local subnet (e.g., 192.168.1.1)
RFC 1918Standard defining private IP address ranges not routable on the public internet
CIDRClassless Inter-Domain Routing; shorthand notation for subnet masks (e.g., /24)

Core Concepts

Subnet Mask

  • 32-bit value written as four bytes (e.g., 255.255.255.0)
  • Defines which bits belong to the network portion and which to the host portion
  • Devices on the same subnet share the same network portion

Subnet Components

ComponentPurposeExample
Network AddressIdentifies the subnet itself; not assignable to hosts192.168.1.0
Host AddressesAssignable to individual devices on the subnet192.168.1.1192.168.1.253
Default GatewayRoutes traffic destined for other networks192.168.1.254 or 192.168.1.1
Broadcast AddressSends data to all hosts on the subnet; not assignable192.168.1.255

RFC 1918 Private IP Ranges

Private addresses are not routable on the public internet — used within local networks only.

ClassRangeCIDR
A10.0.0.0 – 10.255.255.25510.0.0.0/8
B172.16.0.0 – 172.31.255.255172.16.0.0/12
C192.168.0.0 – 192.168.255.255192.168.0.0/16

Why Subnet?

  • Efficiency — reduces unnecessary broadcast traffic
  • Security — isolates network segments from each other
  • Routing — enables more precise and efficient routing decisions
  • Management — organizes devices into logical groups


References / Images

  • RFC 1918: Private IP Addressing Standards
  • Subnet mask diagrams and CIDR notation examples