{
  "id": 10130577,
  "title": "Stop Guessing Subnet Sizes: A Practical Mental Model for IPv4 Subnetting",
  "url": "https://urgent.news/2026/09/27/stop-guessing-subnet-sizes-a-practical-mental-model-for-ipv4",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-27T03:00:08.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/yuanke215/stop-guessing-subnet-sizes-a-practical-mental-model-for-ipv4-subnetting-5f9n"
  },
  "original_language": "en",
  "account": "Most people learn subnetting through formulas and memorization, but this approach breaks down in real-world scenarios. A mental model can simplify the process, allowing you to perform subnetting calculations mentally. An IPv4 address consists of 32 bits, with a prefix like /26 indicating that the first 26 bits represent the network, and the remaining 6 bits signify the host. From this, you can determine that there are 64 total addresses and 62 usable hosts per subnet, as the first address is the network ID and the last one is the broadcast.\n\nA shortcut to simplify subnetting is the block size, calculated as 256 minus the last non-255 octet of the mask. For instance, a /26 mask ending in .192 translates to a block size of 64. This block size helps identify subnet boundaries, which must be multiples of the block size. Using the example of 10.0.5.130/27, you can determine that the network address is 10.0.5.128/27, with a usable range from .129 to .158 and a broadcast address at .159.\n\nWhen allocating subnets, it's crucial to size for future growth, typically adding 30-50% headroom to the current need. With 28 devices, for example, a /27 prefix is insufficient, while a /26 prefix offers 62 usable hosts, which is adequate. However, remember that wasted space is cheap, while renumbering a live network is not.\n\nCommon mistakes leading to network outages include misaligned boundaries, mask mismatches after migration, and overlooking reserved addresses (0 and 255). To avoid these issues, ensure every network address is a multiple of the block size, change masks during maintenance windows, and allocate all addresses properly. To verify subnet designs, check for alignment, no overlaps, and sufficient capacity.",
  "summary": "Most people learn subnetting as a pile of formulas: count the bits, subtract two, memorize the table. That works for exams, but it falls apart the moment you are standing in front of a real network with an IP like 10.0.5.130/27 and someone asks \"what network is this on?\" This article is the version I wish someone had given me: a single mental model that turns every subnetting question into…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}