{"id":1006,"date":"2022-09-29T16:15:12","date_gmt":"2022-09-29T06:15:12","guid":{"rendered":"https:\/\/catharsis.net.au\/blog\/?p=1006"},"modified":"2026-11-03T21:43:39","modified_gmt":"2026-11-03T10:43:39","slug":"subnet-mask-reference-table","status":"publish","type":"post","link":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/","title":{"rendered":"Subnet Mask Reference Table &#038; Subnet Calculator (CIDR)"},"content":{"rendered":"\n<p class=\"has-pale-cyan-blue-background-color has-background wp-block-paragraph\">Free subnet calculator and a subnet mask cheat sheet for every prefix from \/8 to \/32. Jump straight in, or scroll down for how it all works.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"#calculator\">Open the subnet calculator \u2193<\/a><\/div>\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link wp-element-button\" href=\"#reference-table\">Jump to the reference table \u2193<\/a><\/div>\n\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"calculator\">Subnet calculator<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Five tools in one: work out any subnet, split a network into smaller ones, size a subnet for a number of devices, turn an IP range into CIDR blocks, or work out an IPv6 prefix. Results update as you type.<\/p>\n\n\n\n<div id=\"cat-subnet-calc\">\n<style>\n#cat-subnet-calc #cat-v6-out{table-layout:fixed}\n#cat-subnet-calc{background:#f4f6f8;border-radius:12px;padding:20px;margin:8px 0 24px}\n#cat-subnet-calc *{box-sizing:border-box}\n#cat-subnet-calc [role=tablist]{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;border-bottom:2px solid #dde3ea;padding-bottom:10px}\n#cat-subnet-calc [role=tab]{font-size:15px;padding:8px 14px;border:1px solid #c5ced8;border-radius:999px;background:#fff;color:#32373c;cursor:pointer}\n#cat-subnet-calc [role=tab][aria-selected=true]{background:#32373c;color:#fff;border-color:#32373c}\n#cat-subnet-calc .cat-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}\n#cat-subnet-calc label{display:block;font-size:15px;font-weight:600;margin:0 0 6px}\n#cat-subnet-calc input[type=text],#cat-subnet-calc input:not([type]){width:100%;font-size:17px;padding:10px 12px;border:1px solid #b8c2cc;border-radius:8px;background:#fff;font-family:ui-monospace,Menlo,Consolas,monospace}\n#cat-subnet-calc input:focus,#cat-subnet-calc button:focus-visible{outline:3px solid #0a66c2;outline-offset:1px}\n#cat-subnet-calc .cat-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}\n#cat-subnet-calc .cat-chips button,#cat-subnet-calc .cat-copy{background:#fff;color:#32373c;border:1px solid #b8c2cc;border-radius:999px;padding:4px 11px;font-size:13px;cursor:pointer}\n#cat-subnet-calc .cat-copy{margin-left:8px;vertical-align:middle}\n#cat-subnet-calc .cat-err{color:#a4002b;font-weight:600;margin:12px 0 0}\n#cat-subnet-calc .cat-note{font-size:14px;color:#55606b;margin:10px 0 0}\n#cat-subnet-calc table{width:100%;border-collapse:collapse;margin-top:14px;background:#fff;font-size:15px}\n#cat-subnet-calc th,#cat-subnet-calc td{padding:7px 10px;border-bottom:1px solid #e3e8ee;text-align:left;vertical-align:top}\n#cat-subnet-calc .cat-out th{width:36%;font-weight:600}\n#cat-subnet-calc td{font-family:ui-monospace,Menlo,Consolas,monospace;overflow-wrap:anywhere}\n#cat-subnet-calc .cat-net{color:#0a5fb4;font-weight:700}\n#cat-subnet-calc .cat-host{color:#a35200}\n#cat-subnet-calc .cat-legend{font-size:13px;color:#55606b}\n#cat-subnet-calc .cat-check-out{font-weight:600;margin:8px 0 0;min-height:1.4em}\n#cat-subnet-calc .cat-good{color:#1d7a3a}\n#cat-subnet-calc .cat-bad{color:#a4002b}\n#cat-subnet-calc .cat-modes{display:flex;gap:16px;flex-wrap:wrap;margin:10px 0}\n#cat-subnet-calc .cat-modes label{font-weight:400;display:inline-flex;gap:6px;align-items:center;margin:0}\n#cat-subnet-calc .cat-scroll{max-height:420px;overflow:auto;margin-top:6px}\n#cat-subnet-calc .cat-blocks{font-family:ui-monospace,Menlo,Consolas,monospace;columns:2;margin:12px 0 0;padding-left:20px}\n#cat-subnet-calc .cat-summary{font-weight:600;margin:12px 0 0}\n@media (max-width:640px){#cat-subnet-calc .cat-row{grid-template-columns:1fr}#cat-subnet-calc .cat-blocks{columns:1}}\n<\/style>\n<div role=\"tablist\" aria-label=\"Subnet tools\">\n<button type=\"button\" role=\"tab\" id=\"cat-tab-calc\" aria-controls=\"cat-panel-calc\" aria-selected=\"true\">Subnet calculator<\/button>\n<button type=\"button\" role=\"tab\" id=\"cat-tab-split\" aria-controls=\"cat-panel-split\" aria-selected=\"false\" tabindex=\"-1\">Split a network<\/button>\n<button type=\"button\" role=\"tab\" id=\"cat-tab-size\" aria-controls=\"cat-panel-size\" aria-selected=\"false\" tabindex=\"-1\">Size for hosts<\/button>\n<button type=\"button\" role=\"tab\" id=\"cat-tab-range\" aria-controls=\"cat-panel-range\" aria-selected=\"false\" tabindex=\"-1\">Range to CIDR<\/button>\n<button type=\"button\" role=\"tab\" id=\"cat-tab-ipv6\" aria-controls=\"cat-panel-ipv6\" aria-selected=\"false\" tabindex=\"-1\">IPv6<\/button>\n<\/div>\n\n<div role=\"tabpanel\" id=\"cat-panel-calc\" aria-labelledby=\"cat-tab-calc\">\n<form id=\"cat-calc-form\" novalidate>\n<div class=\"cat-row\">\n<div><label for=\"cat-ip\">IP address (or paste IP\/prefix)<\/label><input id=\"cat-ip\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"31\" value=\"192.168.10.25\"><\/div>\n<div><label for=\"cat-prefix\">Prefix or subnet mask<\/label><input id=\"cat-prefix\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"15\" value=\"\/24\"><\/div>\n<\/div>\n<\/form>\n<div class=\"cat-chips\" role=\"group\" aria-label=\"Common prefixes\"><button type=\"button\" data-prefix=\"30\">\/30<\/button><button type=\"button\" data-prefix=\"29\">\/29<\/button><button type=\"button\" data-prefix=\"28\">\/28<\/button><button type=\"button\" data-prefix=\"27\">\/27<\/button><button type=\"button\" data-prefix=\"26\">\/26<\/button><button type=\"button\" data-prefix=\"25\">\/25<\/button><button type=\"button\" data-prefix=\"24\">\/24<\/button><button type=\"button\" data-prefix=\"23\">\/23<\/button><button type=\"button\" data-prefix=\"22\">\/22<\/button><button type=\"button\" data-prefix=\"16\">\/16<\/button><\/div>\n<p id=\"cat-calc-error\" class=\"cat-err\" role=\"alert\" hidden><\/p>\n<table id=\"cat-calc-out\" class=\"cat-out\" aria-live=\"polite\"><tbody>\n<tr><th scope=\"row\">Network (CIDR)<\/th><td><span data-k=\"cidr\"><\/span><button type=\"button\" class=\"cat-copy\" data-copy=\"cidr\" aria-label=\"Copy network (cidr)\">Copy<\/button><\/td><\/tr><tr><th scope=\"row\">Network address<\/th><td><span data-k=\"network\"><\/span><\/td><\/tr><tr><th scope=\"row\">Broadcast address<\/th><td><span data-k=\"broadcast\"><\/span><\/td><\/tr><tr><th scope=\"row\">Usable host range<\/th><td><span data-k=\"range\"><\/span><button type=\"button\" class=\"cat-copy\" data-copy=\"range\" aria-label=\"Copy usable host range\">Copy<\/button><\/td><\/tr>\n<tr><th scope=\"row\">Usable hosts<\/th><td><span data-k=\"usable\"><\/span><\/td><\/tr><tr><th scope=\"row\">Total addresses<\/th><td><span data-k=\"total\"><\/span><\/td><\/tr><tr><th scope=\"row\">Subnet mask<\/th><td><span data-k=\"mask\"><\/span><button type=\"button\" class=\"cat-copy\" data-copy=\"mask\" aria-label=\"Copy subnet mask\">Copy<\/button><\/td><\/tr><tr><th scope=\"row\">Wildcard mask<\/th><td><span data-k=\"wildcard\"><\/span><button type=\"button\" class=\"cat-copy\" data-copy=\"wildcard\" aria-label=\"Copy wildcard mask\">Copy<\/button><\/td><\/tr>\n<tr><th scope=\"row\">Address type<\/th><td><span data-k=\"type\"><\/span><\/td><\/tr><tr><th scope=\"row\">Class (historical)<\/th><td><span data-k=\"klass\"><\/span><\/td><\/tr><tr><th scope=\"row\">Previous subnet<\/th><td><span data-k=\"prev\"><\/span><\/td><\/tr><tr><th scope=\"row\">Next subnet<\/th><td><span data-k=\"next\"><\/span><\/td><\/tr><tr><th scope=\"row\">Reverse DNS zone<\/th><td><span data-k=\"reverse\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">IP in binary<\/th><td id=\"cat-bin-ip\"><\/td><\/tr>\n<tr><th scope=\"row\">Mask in binary<\/th><td id=\"cat-bin-mask\"><\/td><\/tr>\n<\/tbody><\/table>\n<p class=\"cat-legend\"><span class=\"cat-net\">Blue<\/span> bits are the network part; <span class=\"cat-host\">orange<\/span> bits are the host part.<\/p>\n<div style=\"margin-top:14px\"><label for=\"cat-check\">Is this address in the subnet?<\/label><input id=\"cat-check\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"15\" placeholder=\"e.g. 192.168.10.200\"><\/div>\n<p id=\"cat-check-out\" class=\"cat-check-out\" aria-live=\"polite\"><\/p>\n<\/div>\n\n<div role=\"tabpanel\" id=\"cat-panel-split\" aria-labelledby=\"cat-tab-split\" hidden>\n<form id=\"cat-split-form\" novalidate>\n<div class=\"cat-row\">\n<div><label for=\"cat-split-net\">Network to split (IP\/prefix)<\/label><input id=\"cat-split-net\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"31\" value=\"10.0.0.0\/22\"><\/div>\n<div><label for=\"cat-split-value\">Number of subnets, or new prefix<\/label><input id=\"cat-split-value\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"6\" value=\"4\"><\/div>\n<\/div>\n<div class=\"cat-modes\" role=\"radiogroup\" aria-label=\"Split by\">\n<label><input type=\"radio\" name=\"cat-split-mode\" value=\"count\" checked> Number of subnets<\/label>\n<label><input type=\"radio\" name=\"cat-split-mode\" value=\"prefix\"> New prefix (for example 26)<\/label>\n<\/div>\n<\/form>\n<p id=\"cat-split-error\" class=\"cat-err\" role=\"alert\" hidden><\/p>\n<p id=\"cat-split-summary\" class=\"cat-summary\" aria-live=\"polite\"><\/p>\n<div class=\"cat-scroll\"><table id=\"cat-split-out\" hidden><thead><tr><th>Subnet<\/th><th>Usable range<\/th><th>Broadcast<\/th><th>Hosts<\/th><\/tr><\/thead><tbody><\/tbody><\/table><\/div>\n<\/div>\n\n<div role=\"tabpanel\" id=\"cat-panel-size\" aria-labelledby=\"cat-tab-size\" hidden>\n<form id=\"cat-size-form\" novalidate>\n<div class=\"cat-row\">\n<div><label for=\"cat-hosts\">Devices that need an address<\/label><input id=\"cat-hosts\" autocomplete=\"off\" inputmode=\"numeric\" maxlength=\"10\" value=\"60\"><\/div>\n<div><label for=\"cat-growth\">Allow for growth (%)<\/label><input id=\"cat-growth\" autocomplete=\"off\" inputmode=\"numeric\" maxlength=\"3\" value=\"25\"><\/div>\n<\/div>\n<\/form>\n<p id=\"cat-size-error\" class=\"cat-err\" role=\"alert\" hidden><\/p>\n<table id=\"cat-size-out\" class=\"cat-out\" aria-live=\"polite\"><tbody>\n<tr><th scope=\"row\">Addresses to plan for<\/th><td><span data-k=\"target\"><\/span><\/td><\/tr><tr><th scope=\"row\">Recommended prefix<\/th><td><span data-k=\"prefix\"><\/span><\/td><\/tr><tr><th scope=\"row\">Subnet mask<\/th><td><span data-k=\"mask\"><\/span><\/td><\/tr><tr><th scope=\"row\">Usable hosts<\/th><td><span data-k=\"usable\"><\/span><\/td><\/tr><tr><th scope=\"row\">Spare addresses<\/th><td><span data-k=\"spare\"><\/span><\/td><\/tr><tr><th scope=\"row\">Note<\/th><td><span data-k=\"note\"><\/span><\/td><\/tr>\n<\/tbody><\/table>\n<\/div>\n\n<div role=\"tabpanel\" id=\"cat-panel-range\" aria-labelledby=\"cat-tab-range\" hidden>\n<form id=\"cat-range-form\" novalidate>\n<div class=\"cat-row\">\n<div><label for=\"cat-range-start\">Start address<\/label><input id=\"cat-range-start\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"15\" value=\"10.0.0.5\"><\/div>\n<div><label for=\"cat-range-end\">End address<\/label><input id=\"cat-range-end\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"15\" value=\"10.0.0.20\"><\/div>\n<\/div>\n<\/form>\n<p id=\"cat-range-error\" class=\"cat-err\" role=\"alert\" hidden><\/p>\n<p class=\"cat-note\">The smallest set of CIDR blocks that covers exactly this range. Handy for firewall rules and access lists.<\/p>\n<ul id=\"cat-range-out\" class=\"cat-blocks\" aria-live=\"polite\"><\/ul>\n<\/div>\n\n<div role=\"tabpanel\" id=\"cat-panel-ipv6\" aria-labelledby=\"cat-tab-ipv6\" hidden>\n<form id=\"cat-v6-form\" novalidate>\n<div class=\"cat-row\">\n<div><label for=\"cat-v6-addr\">IPv6 address (or paste address\/prefix)<\/label><input id=\"cat-v6-addr\" autocomplete=\"off\" spellcheck=\"false\" autocapitalize=\"off\" maxlength=\"49\" value=\"2001:db8:abcd:12::1\"><\/div>\n<div><label for=\"cat-v6-prefix\">Prefix length<\/label><input id=\"cat-v6-prefix\" autocomplete=\"off\" spellcheck=\"false\" maxlength=\"4\" value=\"\/64\"><\/div>\n<\/div>\n<\/form>\n<div class=\"cat-chips\" role=\"group\" aria-label=\"Common IPv6 prefixes\"><button type=\"button\" data-v6-prefix=\"32\">\/32<\/button><button type=\"button\" data-v6-prefix=\"48\">\/48<\/button><button type=\"button\" data-v6-prefix=\"56\">\/56<\/button><button type=\"button\" data-v6-prefix=\"60\">\/60<\/button><button type=\"button\" data-v6-prefix=\"64\">\/64<\/button><button type=\"button\" data-v6-prefix=\"127\">\/127<\/button><button type=\"button\" data-v6-prefix=\"128\">\/128<\/button><\/div>\n<p id=\"cat-v6-error\" class=\"cat-err\" role=\"alert\" hidden><\/p>\n<table id=\"cat-v6-out\" class=\"cat-out\" aria-live=\"polite\"><tbody>\n<tr><th scope=\"row\">Network (CIDR)<\/th><td><span data-v6k=\"cidr\"><\/span><button type=\"button\" class=\"cat-copy\" data-v6-copy=\"cidr\" aria-label=\"Copy network\">Copy<\/button><\/td><\/tr>\n<tr><th scope=\"row\">Address, compressed<\/th><td><span data-v6k=\"compressed\"><\/span><button type=\"button\" class=\"cat-copy\" data-v6-copy=\"compressed\" aria-label=\"Copy compressed address\">Copy<\/button><\/td><\/tr>\n<tr><th scope=\"row\">Address, expanded<\/th><td><span data-v6k=\"expanded\"><\/span><button type=\"button\" class=\"cat-copy\" data-v6-copy=\"expanded\" aria-label=\"Copy expanded address\">Copy<\/button><\/td><\/tr>\n<tr><th scope=\"row\">Network prefix (expanded)<\/th><td><span data-v6k=\"network\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">First address<\/th><td><span data-v6k=\"first\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Last address<\/th><td><span data-v6k=\"last\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Number of addresses<\/th><td><span data-v6k=\"count\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Number of \/64 subnets<\/th><td><span data-v6k=\"count64\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Previous prefix<\/th><td><span data-v6k=\"prev\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Next prefix<\/th><td><span data-v6k=\"next\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Address type<\/th><td><span data-v6k=\"type\"><\/span><\/td><\/tr>\n<tr><th scope=\"row\">Reverse DNS zone (ip6.arpa)<\/th><td><span data-v6k=\"reverse\"><\/span><button type=\"button\" class=\"cat-copy\" data-v6-copy=\"reverse\" aria-label=\"Copy reverse DNS zone\">Copy<\/button><\/td><\/tr>\n<tr><th scope=\"row\">Note<\/th><td><span data-v6k=\"note\"><\/span><\/td><\/tr>\n<\/tbody><\/table>\n<p class=\"cat-note\">IPv6 has no broadcast address, so every address in the prefix can be used. The first address is also the Subnet-Router anycast address (RFC 4291), so most networks start hosts at ::1.<\/p>\n<\/div>\n\n<p class=\"cat-note\">Everything is calculated in your browser; nothing you type is sent anywhere. Share a result by copying the page address (it ends with the network, for example #10.0.0.0\/22). IPv6 links work too, for example #2001:db8::\/48.<\/p>\n<script>(function () {\n  'use strict';\n  \/\/ Catharsis subnet toolkit. Runs entirely in the browser: no network requests, no storage, no eval.\n  \/\/ Every value shown is written with textContent or createTextNode (never innerHTML), all input is validated\n  \/\/ against strict patterns, and generated lists are capped so a large request can't freeze the page.\n  \/\/ Plain arithmetic only (no bitwise operators): WordPress rewrites the ampersand character in post content.\n  var TWO32 = 4294967296;\n  var MAX_ROWS = 256;\n  var OCTET = '(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])';\n  var IPV4 = new RegExp('^' + OCTET + '\\\\.' + OCTET + '\\\\.' + OCTET + '\\\\.' + OCTET + '$');\n\n  function toInt(ip) { var p = ip.split('.'); return ((+p[0] * 256 + +p[1]) * 256 + +p[2]) * 256 + +p[3]; }\n  function toIp(n) { return [Math.floor(n \/ 16777216) % 256, Math.floor(n \/ 65536) % 256, Math.floor(n \/ 256) % 256, n % 256].join('.'); }\n  function maskFromPrefix(p) { return TWO32 - Math.pow(2, 32 - p); }\n  function blockSize(p) { return Math.pow(2, 32 - p); }\n  function prefixFromMask(m) { for (var p = 0; p <= 32; p++) { if (maskFromPrefix(p) === m) return p; } return -1; }\n  function bits(n) { var s = n.toString(2); while (s.length < 32) s = '0' + s; return s; }\n  function dotted(b) { return b.slice(0, 8) + '.' + b.slice(8, 16) + '.' + b.slice(16, 24) + '.' + b.slice(24); }\n  function fmt(n) { return n.toLocaleString('en-AU'); }\n  function inRange(n, base, prefix) { var s = blockSize(prefix); return Math.floor(n \/ s) === Math.floor(toInt(base) \/ s); }\n  function usableHosts(p) { if (p === 32) return 1; if (p === 31) return 2; return blockSize(p) - 2; }\n\n  function addressType(n) {\n    if (inRange(n, '10.0.0.0', 8) || inRange(n, '172.16.0.0', 12) || inRange(n, '192.168.0.0', 16)) return 'Private (RFC 1918)';\n    if (inRange(n, '100.64.0.0', 10)) return 'Shared address space \/ carrier-grade NAT (RFC 6598)';\n    if (inRange(n, '127.0.0.0', 8)) return 'Loopback';\n    if (inRange(n, '169.254.0.0', 16)) return 'Link-local (APIPA)';\n    if (inRange(n, '192.0.2.0', 24) || inRange(n, '198.51.100.0', 24) || inRange(n, '203.0.113.0', 24)) return 'Documentation only (RFC 5737)';\n    if (inRange(n, '224.0.0.0', 4)) return 'Multicast';\n    if (inRange(n, '240.0.0.0', 4)) return 'Reserved';\n    if (inRange(n, '0.0.0.0', 8)) return '\"This network\" (0.0.0.0\/8)';\n    return 'Public';\n  }\n  function ipClass(n) {\n    var a = Math.floor(n \/ 16777216);\n    if (a < 128) return 'A'; if (a < 192) return 'B'; if (a < 224) return 'C'; if (a < 240) return 'D (multicast)'; return 'E (reserved)';\n  }\n\n  \/** Parse \"IP\", \"IP\/prefix\" or \"IP mask\" from the address box, plus an optional separate prefix\/mask. *\/\n  function parsePrefix(text) {\n    var pf = String(text || '').trim();\n    var pm = \/^\\\/?([0-9]{1,2})$\/.exec(pf);\n    if (pm) { var p = +pm[1]; if (p > 32) return { error: 'The prefix must be between \/0 and \/32.' }; return { prefix: p }; }\n    if (IPV4.test(pf)) {\n      var q = prefixFromMask(toInt(pf));\n      if (q < 0) return { error: 'That mask is not valid: a subnet mask is a run of 1s followed by 0s, like 255.255.255.0.' };\n      return { prefix: q };\n    }\n    return { error: 'Enter a prefix like \/24 or a mask like 255.255.255.0.' };\n  }\n  function parseInput(ipText, prefixText) {\n    var raw = String(ipText || '').trim();\n    var parts = raw.split(\/[\\\/\\s]+\/);\n    var ip = parts[0];\n    if (!IPV4.test(ip)) return { error: 'Enter an IPv4 address like 192.168.10.25 (you can also paste 192.168.10.25\/24).' };\n    var pr = parts.length > 1 ? parts.slice(1).join(' ') : prefixText;\n    var r = parsePrefix(pr);\n    if (r.error) return r;\n    return { n: toInt(ip), prefix: r.prefix };\n  }\n\n  function calculate(ipText, prefixText) {\n    var inp = parseInput(ipText, prefixText);\n    if (inp.error) return inp;\n    var n = inp.n, prefix = inp.prefix;\n    var size = blockSize(prefix);\n    var network = n - (n % size);\n    var broadcast = network + size - 1;\n    var first, last;\n    if (prefix >= 31) { first = network; last = broadcast; } else { first = network + 1; last = broadcast - 1; }\n    return {\n      n: n, prefix: prefix, networkInt: network, size: size,\n      cidr: toIp(network) + '\/' + prefix,\n      network: toIp(network),\n      broadcast: prefix >= 31 ? 'None (' + (prefix === 32 ? 'single host' : 'point-to-point, RFC 3021') + ')' : toIp(broadcast),\n      range: toIp(first) + ' \u2013 ' + toIp(last),\n      usable: fmt(usableHosts(prefix)),\n      total: fmt(size),\n      mask: toIp(maskFromPrefix(prefix)),\n      wildcard: toIp(size - 1),\n      type: addressType(n),\n      klass: ipClass(n),\n      next: network + size < TWO32 ? toIp(network + size) + '\/' + prefix : 'None (end of the IPv4 space)',\n      prev: network > 0 ? toIp(network - size) + '\/' + prefix : 'None (start of the IPv4 space)',\n      reverse: prefix >= 24 ? toIp(network).split('.').slice(0, 3).reverse().join('.') + '.in-addr.arpa' : prefix >= 16 ? toIp(network).split('.').slice(0, 2).reverse().join('.') + '.in-addr.arpa' : toIp(network).split('.')[0] + '.in-addr.arpa',\n      binIp: bits(n), binMask: bits(maskFromPrefix(prefix))\n    };\n  }\n\n  function contains(netText, prefixText, ipText) {\n    var r = calculate(netText, prefixText);\n    if (r.error) return r;\n    var t = String(ipText || '').trim();\n    if (t === '') return { empty: true };\n    if (!IPV4.test(t)) return { error: 'Enter an IPv4 address to check.' };\n    var x = toInt(t);\n    var inside = x >= r.networkInt;\n    if (inside) inside = x <= r.networkInt + r.size - 1;\n    var role = '';\n    if (inside) {\n      if (r.prefix < 31) { if (x === r.networkInt) role = ' (it is the network address)'; else if (x === r.networkInt + r.size - 1) role = ' (it is the broadcast address)'; }\n    }\n    return { inside: inside, text: t + (inside ? ' is inside ' : ' is not inside ') + r.cidr + role };\n  }\n\n  function split(netText, prefixText, mode, value) {\n    var r = calculate(netText, prefixText);\n    if (r.error) return r;\n    var v = String(value || '').trim().replace(\/^\\\/\/, '');\n    if (!\/^[0-9]{1,5}$\/.test(v)) return { error: mode === 'count' ? 'Enter how many subnets you need, for example 4.' : 'Enter the new prefix, for example 26.' };\n    var newP;\n    if (mode === 'count') {\n      var want = +v; if (want < 1) return { error: 'Ask for at least one subnet.' };\n      newP = r.prefix; while (Math.pow(2, newP - r.prefix) < want) newP++;\n    } else { newP = +v; }\n    if (newP > 32) return { error: 'That would need a prefix longer than \/32. Ask for fewer or larger subnets.' };\n    if (newP < r.prefix) return { error: 'The new prefix must be \/' + r.prefix + ' or longer to fit inside ' + r.cidr + '.' };\n    var count = Math.pow(2, newP - r.prefix), step = blockSize(newP), rows = [];\n    for (var i = 0; i < count; i++) {\n      if (rows.length >= MAX_ROWS) break;\n      var net = r.networkInt + i * step, bc = net + step - 1;\n      var f = newP >= 31 ? net : net + 1, l = newP >= 31 ? bc : bc - 1;\n      rows.push([toIp(net) + '\/' + newP, toIp(f) + ' \u2013 ' + toIp(l), newP >= 31 ? 'None' : toIp(bc), fmt(usableHosts(newP))]);\n    }\n    return { parent: r.cidr, newPrefix: newP, count: count, shown: rows.length, rows: rows };\n  }\n\n  function sizeFor(hostsText, growthText) {\n    var h = String(hostsText || '').trim().replace(\/,\/g, '');\n    if (!\/^[0-9]{1,10}$\/.test(h)) return { error: 'Enter how many devices need an address, for example 60.' };\n    var need = +h;\n    if (need < 1) return { error: 'Enter at least one device.' };\n    var g = String(growthText || '0').trim().replace('%', '');\n    if (!\/^[0-9]{1,3}$\/.test(g)) return { error: 'Growth should be a percentage from 0 to 999.' };\n    var target = Math.ceil(need * (1 + +g \/ 100));\n    if (target > TWO32 - 2) return { error: 'That is more addresses than IPv4 has.' };\n    var best = -1;\n    for (var p = 32; p >= 0; p--) { if (usableHosts(p) >= target) { best = p; break; } }\n    if (best < 0) return { error: 'That is more addresses than IPv4 has.' };\n    var note = best === 31 ? 'A \/31 suits a point-to-point link only. For a LAN, use a \/30 or larger.' : best === 32 ? 'A \/32 is a single address, such as a host route or loopback.' : 'Remember to count the gateway, printers and DHCP reservations.';\n    return { target: fmt(target), prefix: '\/' + best, mask: toIp(maskFromPrefix(best)), usable: fmt(usableHosts(best)), spare: fmt(usableHosts(best) - target), note: note };\n  }\n\n  function rangeToCidr(startText, endText) {\n    var a = String(startText || '').trim(), b = String(endText || '').trim();\n    if (!IPV4.test(a)) return { error: 'Enter a start address, for example 10.0.0.5.' };\n    if (!IPV4.test(b)) return { error: 'Enter an end address, for example 10.0.0.20.' };\n    var s = toInt(a), e = toInt(b);\n    if (s > e) return { error: 'The start address must not be after the end address.' };\n    var out = [];\n    while (s <= e) {\n      if (out.length >= 64) break;\n      var p = 0;\n      for (; p <= 32; p++) { var sz = blockSize(p); if (s % sz === 0) { if (s + sz - 1 <= e) break; } }\n      out.push(toIp(s) + '\/' + p);\n      s += blockSize(p);\n    }\n    return { blocks: out };\n  }\n\n  \/\/ ===== BEGIN v6-logic (paste this section into calc2.js when merging; see MERGE.md) =====\n  var V6_ZERO = BigInt(0);\n  var V6_ONE = BigInt(1);\n  var V6_TWO = BigInt(2);\n  var V6_G = BigInt(65536);\n  var V6_SPACE = V6_TWO ** BigInt(128);\n  var V6_OCTET = '(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])';\n  var V6_IPV4 = new RegExp('^' + V6_OCTET + '\\\\.' + V6_OCTET + '\\\\.' + V6_OCTET + '\\\\.' + V6_OCTET + '$');\n  var V6_HEXGROUP = \/^[0-9A-Fa-f]{1,4}$\/;\n  var V6_MAX_ZONES = 8;\n\n  function v6Pow2(bits) { return V6_TWO ** BigInt(bits); }\n\n  \/\/ Group the digits of a non-negative integer string with commas, for example 18446744073709551616 -> 18,446,744,073,709,551,616.\n  function v6Group(s) {\n    var out = '', c = 0;\n    for (var i = s.length - 1; i >= 0; i--) {\n      out = s.charAt(i) + out;\n      c++;\n      if (c % 3 === 0) { if (i > 0) out = ',' + out; }\n    }\n    return out;\n  }\n\n  \/\/ Parse an IPv6 address (no prefix). Returns { n: BigInt } or { error: string }.\n  function v6ParseAddress(text) {\n    var s = String(text === undefined || text === null ? '' : text).trim();\n    if (s === '') return { error: 'Enter an IPv6 address, for example 2001:db8:abcd:12::1.' };\n    if (s.length > 45) return { error: 'That is too long for an IPv6 address (45 characters at most).' };\n    if (s.indexOf('%') >= 0) return { error: 'Zone IDs (the %eth0 part) are not supported. Remove it and try again.' };\n    if (!\/^[0-9A-Fa-f:.]+$\/.test(s)) return { error: 'An IPv6 address uses only the digits 0 to 9, the letters a to f, colons, and (for an embedded IPv4 address) dots.' };\n    if (s.indexOf(':') < 0) {\n      if (V6_IPV4.test(s)) return { error: 'That is an IPv4 address. Use the IPv4 calculator, or write it as ::ffff:' + s + '.' };\n      return { error: 'An IPv6 address needs colons, for example 2001:db8::1.' };\n    }\n    \/\/ An embedded IPv4 address may only appear as the last 32 bits, for example ::ffff:192.0.2.1.\n    if (s.indexOf('.') >= 0) {\n      var cut = s.lastIndexOf(':');\n      var v4 = s.slice(cut + 1);\n      if (!V6_IPV4.test(v4)) return { error: 'An embedded IPv4 address must be the last part and look like 192.0.2.1.' };\n      var o = v4.split('.');\n      var hi = (+o[0]) * 256 + (+o[1]), lo = (+o[2]) * 256 + (+o[3]);\n      s = s.slice(0, cut + 1) + hi.toString(16) + ':' + lo.toString(16);\n    }\n    var dbl = s.indexOf('::');\n    var groups;\n    if (dbl < 0) {\n      groups = s.split(':');\n      if (groups.length !== 8) return { error: 'A full IPv6 address has 8 groups separated by colons; use :: to shorten runs of zeros.' };\n    } else {\n      if (s.indexOf('::', dbl + 1) >= 0) return { error: ':: can appear only once in an address.' };\n      var head = s.slice(0, dbl), tail = s.slice(dbl + 2);\n      var hg = head === '' ? [] : head.split(':');\n      var tg = tail === '' ? [] : tail.split(':');\n      if (hg.length + tg.length > 7) return { error: 'Too many groups: with :: there can be at most 7 other groups.' };\n      groups = hg.slice();\n      for (var z = 0; z < 8 - hg.length - tg.length; z++) groups.push('0');\n      for (var t = 0; t < tg.length; t++) groups.push(tg[t]);\n    }\n    var n = V6_ZERO;\n    for (var i = 0; i < 8; i++) {\n      if (!V6_HEXGROUP.test(groups[i])) return { error: 'Each group is 1 to 4 hexadecimal digits (0-9, a-f); check for a stray colon or a group that is too long.' };\n      n = n * V6_G + BigInt(parseInt(groups[i], 16));\n    }\n    return { n: n };\n  }\n\n  function v6ParsePrefix(text) {\n    var p = String(text === undefined || text === null ? '' : text).trim();\n    var m = \/^\\\/?(0|[1-9][0-9]{0,2})$\/.exec(p);\n    if (!m) return { error: 'Enter a prefix from \/0 to \/128, for example \/64.' };\n    var v = +m[1];\n    if (v > 128) return { error: 'The prefix must be between \/0 and \/128.' };\n    return { prefix: v };\n  }\n\n  function v6Groups(n) {\n    var out = [], x = n;\n    for (var i = 0; i < 8; i++) { out.unshift(Number(x % V6_G)); x = x \/ V6_G; }\n    return out;\n  }\n  function v6Hex32(n) { var h = n.toString(16); while (h.length < 32) h = '0' + h; return h; }\n  function v6Expanded(n) { var h = v6Hex32(n), out = []; for (var i = 0; i < 8; i++) out.push(h.slice(i * 4, i * 4 + 4)); return out.join(':'); }\n\n  \/\/ RFC 5952 canonical text form: lower case, no leading zeros, the longest run (2 or more) of zero groups shortened to ::.\n  function v6Compressed(n) {\n    var g = v6Groups(n);\n    var bestStart = -1, bestLen = 0, curStart = -1, curLen = 0;\n    for (var i = 0; i < 8; i++) {\n      if (g[i] === 0) {\n        if (curStart < 0) { curStart = i; curLen = 0; }\n        curLen++;\n        if (curLen > bestLen) { bestLen = curLen; bestStart = curStart; }\n      } else { curStart = -1; curLen = 0; }\n    }\n    var hex = g.map(function (x) { return x.toString(16); });\n    if (bestLen < 2) return hex.join(':');\n    return hex.slice(0, bestStart).join(':') + '::' + hex.slice(bestStart + bestLen).join(':');\n  }\n  function v6Embedded4(n) { var v = Number(n % v6Pow2(32)); return [Math.floor(v \/ 16777216) % 256, Math.floor(v \/ 65536) % 256, Math.floor(v \/ 256) % 256, v % 256].join('.'); }\n\n  function v6In(n, base, len) { var size = v6Pow2(128 - len); return n \/ size === v6ParseAddress(base).n \/ size; }\n\n  var V6_TYPES = [\n    ['::', 128, 'Unspecified address (::\/128)'],\n    ['::1', 128, 'Loopback (::1\/128)'],\n    ['::ffff:0:0', 96, 'IPv4-mapped address (::ffff:0:0\/96)'],\n    ['64:ff9b::', 96, 'IPv4\/IPv6 translation, NAT64 (64:ff9b::\/96, RFC 6052)'],\n    ['64:ff9b:1::', 48, 'Local-use IPv4\/IPv6 translation (64:ff9b:1::\/48, RFC 8215)'],\n    ['100::', 64, 'Discard-only (100::\/64, RFC 6666)'],\n    ['2001:db8::', 32, 'Documentation only (2001:db8::\/32, RFC 3849)'],\n    ['3fff::', 20, 'Documentation only (3fff::\/20, RFC 9637)'],\n    ['2001:2::', 48, 'Benchmarking (2001:2::\/48, RFC 5180)'],\n    ['2001::', 32, 'Teredo tunnelling (2001::\/32, RFC 4380)'],\n    ['2002::', 16, '6to4 (2002::\/16, RFC 3056)'],\n    ['2000::', 3, 'Global unicast (2000::\/3)'],\n    ['5f00::', 16, 'Segment Routing (SRv6) SIDs (5f00::\/16, RFC 9602)'],\n    ['fc00::', 7, 'Unique local address, ULA (fc00::\/7, RFC 4193)'],\n    ['fe80::', 10, 'Link-local unicast (fe80::\/10)'],\n    ['fec0::', 10, 'Site-local (fec0::\/10, deprecated by RFC 3879)'],\n    ['ff00::', 8, 'Multicast (ff00::\/8)']\n  ];\n  var V6_SCOPES = { 1: 'interface-local', 2: 'link-local', 4: 'admin-local', 5: 'site-local', 8: 'organisation-local', 14: 'global' };\n\n  function v6Type(n) {\n    for (var i = 0; i < V6_TYPES.length; i++) {\n      if (v6In(n, V6_TYPES[i][0], V6_TYPES[i][1])) {\n        var label = V6_TYPES[i][2];\n        if (V6_TYPES[i][1] === 8) {\n          var scope = V6_SCOPES[Number((n \/ v6Pow2(112)) % BigInt(16))];\n          if (scope) label += ', ' + scope + ' scope';\n        }\n        return label;\n      }\n    }\n    return 'Reserved by the IETF (not allocated for use)';\n  }\n\n  function v6ReverseZone(net, prefix) {\n    if (prefix === 0) return 'ip6.arpa';\n    var nib = v6Hex32(net).slice(0, prefix \/ 4).split('').reverse().join('.');\n    return nib + '.ip6.arpa';\n  }\n  function v6Reverse(net, prefix) {\n    if (prefix % 4 === 0) return { text: v6ReverseZone(net, prefix), zones: [v6ReverseZone(net, prefix)] };\n    var q = Math.ceil(prefix \/ 4) * 4, count = Math.pow(2, q - prefix), step = v6Pow2(128 - q), zones = [];\n    for (var i = 0; i < count; i++) { if (zones.length >= V6_MAX_ZONES) break; zones.push(v6ReverseZone(net + BigInt(i) * step, q)); }\n    return { text: '\/' + prefix + ' is not on a 4-bit (nibble) boundary, so it needs ' + count + ' reverse zones: ' + zones.join(', '), zones: zones };\n  }\n\n  function v6Note(prefix) {\n    if (prefix === 128) return 'A single address, such as a host route or a loopback.';\n    if (prefix === 127) return 'A point-to-point link between two routers (RFC 6164).';\n    if (prefix === 64) return 'The standard size for one LAN or VLAN. SLAAC (automatic addressing) needs a \/64.';\n    if (prefix > 64) return 'Smaller than a \/64. Fine for links and loopbacks, but SLAAC will not work on a LAN this size.';\n    if (prefix === 56) return 'A common allocation for a small site: 256 LAN-sized \/64 subnets.';\n    if (prefix === 48) return 'A typical allocation for a business site: 65,536 LAN-sized \/64 subnets.';\n    return 'Split it into \/64s for each LAN or VLAN.';\n  }\n\n  \/\/ Parse \"address\", \"address\/prefix\", plus an optional separate prefix box.\n  function v6Input(addrText, prefixText) {\n    var raw = String(addrText === undefined || addrText === null ? '' : addrText).trim();\n    var parts = raw.split('\/');\n    if (parts.length > 2) return { error: 'Use one slash only, for example 2001:db8::\/48.' };\n    var a = v6ParseAddress(parts[0]);\n    if (a.error) return a;\n    var p = v6ParsePrefix(parts.length === 2 ? parts[1] : prefixText);\n    if (p.error) return p;\n    return { n: a.n, prefix: p.prefix };\n  }\n\n  function v6Calculate(addrText, prefixText) {\n    var inp = v6Input(addrText, prefixText);\n    if (inp.error) return inp;\n    var n = inp.n, prefix = inp.prefix;\n    var size = v6Pow2(128 - prefix);\n    var net = n - (n % size);\n    var last = net + size - V6_ONE;\n    var type = v6Type(n);\n    var compressed = v6Compressed(n);\n    if (v6In(n, '::ffff:0:0', 96)) compressed = '::ffff:' + v6Embedded4(n);\n    var rev = v6Reverse(net, prefix);\n    return {\n      n: n, prefix: prefix, net: net, size: size,\n      cidr: v6Compressed(net) + '\/' + prefix,\n      expanded: v6Expanded(n),\n      compressed: compressed,\n      network: v6Expanded(net),\n      first: v6Compressed(net),\n      last: v6Compressed(last),\n      firstFull: v6Expanded(net),\n      lastFull: v6Expanded(last),\n      count: v6Group(size.toString()) + ' (2^' + (128 - prefix) + ')',\n      count64: prefix <= 64 ? v6Group(v6Pow2(64 - prefix).toString()) : 'Less than one (a \/' + prefix + ' fits inside a single \/64)',\n      next: net + size < V6_SPACE ? v6Compressed(net + size) + '\/' + prefix : 'None (end of the IPv6 space)',\n      prev: net > V6_ZERO ? v6Compressed(net - size) + '\/' + prefix : 'None (start of the IPv6 space)',\n      type: type,\n      reverse: rev.text,\n      zones: rev.zones,\n      note: v6Note(prefix)\n    };\n  }\n  \/\/ ===== END v6-logic =====\n\nif (typeof module !== 'undefined') { if (module.exports) { module.exports = { v6Calculate: v6Calculate, v6ParseAddress: v6ParseAddress, v6Compressed: v6Compressed, calculate: calculate, contains: contains, split: split, sizeFor: sizeFor, rangeToCidr: rangeToCidr }; return; } }\n\n  \/\/ ---------- page wiring (DOM only via textContent \/ createElement) ----------\n  function el(tag, text) { var e = document.createElement(tag); if (text !== undefined) e.textContent = text; return e; }\n  function clear(node) { while (node.firstChild) node.removeChild(node.firstChild); }\n  function show(node, yes) { node.hidden = !yes; }\n\n  \/\/ ===== BEGIN v6-wiring (paste this section into calc2.js when merging; see MERGE.md) =====\n  \/\/ Wires the IPv6 panel inside root. options.useHash: read and write #address\/prefix. options.onHash: called when a valid hash was applied.\n  function v6Wire(root, options) {\n    var opts = options || {};\n    var q = function (s) { return root.querySelector(s); };\n    var addrIn = q('#cat-v6-addr'), pfIn = q('#cat-v6-prefix'), err = q('#cat-v6-error'), out = q('#cat-v6-out'), form = q('#cat-v6-form');\n    if (!addrIn) return;\n    var timer = null;\n    function render(updateHash) {\n      var r = v6Calculate(addrIn.value, pfIn.value);\n      if (r.error) { err.textContent = r.error; err.hidden = false; out.hidden = true; return; }\n      err.hidden = true; err.textContent = '';\n      var cells = out.querySelectorAll('[data-v6k]');\n      for (var i = 0; i < cells.length; i++) cells[i].textContent = r[cells[i].getAttribute('data-v6k')];\n      out.hidden = false;\n      if (updateHash) { if (opts.useHash) { try { history.replaceState(null, '', '#' + r.cidr); } catch (e) { \/* ignore *\/ } } }\n    }\n    function soon() { clearTimeout(timer); timer = setTimeout(function () { render(true); }, 150); }\n    addrIn.addEventListener('input', soon); pfIn.addEventListener('input', soon);\n    form.addEventListener('submit', function (e) { e.preventDefault(); render(true); });\n    var chips = root.querySelectorAll('[data-v6-prefix]');\n    for (var c = 0; c < chips.length; c++) chips[c].addEventListener('click', function (e) {\n      addrIn.value = String(addrIn.value).trim().split('\/')[0];\n      pfIn.value = '\/' + e.currentTarget.getAttribute('data-v6-prefix');\n      render(true);\n    });\n    var copies = root.querySelectorAll('[data-v6-copy]');\n    for (var k = 0; k < copies.length; k++) copies[k].addEventListener('click', function (e) {\n      var btn = e.currentTarget, cell = out.querySelector('[data-v6k=\"' + btn.getAttribute('data-v6-copy') + '\"]');\n      if (!cell) return;\n      var text = cell.textContent;\n      var done = function () { var o = btn.textContent; btn.textContent = 'Copied'; setTimeout(function () { btn.textContent = o; }, 1200); };\n      if (navigator.clipboard) navigator.clipboard.writeText(text).then(done, function () {});\n    });\n    \/\/ A shared link (#2001:db8::\/48) pre-fills the form, validated like typed input.\n    if (opts.useHash) {\n      var h = '';\n      try { h = decodeURIComponent(String(location.hash || '').slice(1)); } catch (e) { h = ''; }\n      if (h.length <= 49) {\n        if (\/^[0-9A-Fa-f:.]+\\\/[0-9]{1,3}$\/.test(h)) {\n          if (!v6Calculate(h, '').error) {\n            addrIn.value = h.split('\/')[0]; pfIn.value = '\/' + h.split('\/')[1];\n            if (opts.onHash) opts.onHash();\n          }\n        }\n      }\n    }\n    render(false);\n  }\n  \/\/ ===== END v6-wiring =====\n\nfunction init() {\n    var root = document.getElementById('cat-subnet-calc');\n    if (!root) return;\n    var q = function (s) { return root.querySelector(s); };\n\n    \/\/ Tabs\n    var tabs = root.querySelectorAll('[role=\"tab\"]');\n    function selectTab(btn) {\n      for (var i = 0; i < tabs.length; i++) {\n        var on = tabs[i] === btn;\n        tabs[i].setAttribute('aria-selected', on ? 'true' : 'false');\n        tabs[i].tabIndex = on ? 0 : -1;\n        show(document.getElementById(tabs[i].getAttribute('aria-controls')), on);\n      }\n    }\n    for (var t = 0; t < tabs.length; t++) {\n      tabs[t].addEventListener('click', function (e) { selectTab(e.currentTarget); });\n      tabs[t].addEventListener('keydown', function (e) {\n        var i = Array.prototype.indexOf.call(tabs, e.currentTarget), j = -1;\n        if (e.key === 'ArrowRight') j = (i + 1) % tabs.length; else if (e.key === 'ArrowLeft') j = (i - 1 + tabs.length) % tabs.length;\n        if (j >= 0) { e.preventDefault(); tabs[j].focus(); selectTab(tabs[j]); }\n      });\n    }\n\n    \/\/ Calculator\n    var ipIn = q('#cat-ip'), pfIn = q('#cat-prefix'), err = q('#cat-calc-error'), out = q('#cat-calc-out');\n    var chkIn = q('#cat-check'), chkOut = q('#cat-check-out'), binIp = q('#cat-bin-ip'), binMask = q('#cat-bin-mask');\n    var last = null;\n    function renderBinary(target, b, prefix) {\n      \/\/ Colour each bit by whether it belongs to the network or the host part.\n      clear(target);\n      for (var i = 0; i < 32; i++) {\n        if (i > 0) { if (i % 8 === 0) target.appendChild(document.createTextNode('.')); }\n        var s = el('span', b.charAt(i)); s.className = i < prefix ? 'cat-net' : 'cat-host'; target.appendChild(s);\n      }\n    }\n    function renderCalc(updateHash) {\n      var r = calculate(ipIn.value, pfIn.value);\n      if (r.error) { err.textContent = r.error; show(err, true); show(out, false); last = null; renderCheck(); return; }\n      show(err, false); err.textContent = '';\n      var cells = out.querySelectorAll('[data-k]');\n      for (var i = 0; i < cells.length; i++) cells[i].textContent = r[cells[i].getAttribute('data-k')];\n      renderBinary(binIp, r.binIp, r.prefix); renderBinary(binMask, r.binMask, r.prefix);\n      show(out, true); last = r; renderCheck();\n      if (updateHash) { try { history.replaceState(null, '', '#' + toIp(r.n) + '\/' + r.prefix); } catch (e) { \/* ignore *\/ } }\n    }\n    function renderCheck() {\n      if (!chkIn) return;\n      var c = contains(ipIn.value, pfIn.value, chkIn.value);\n      chkOut.className = 'cat-check-out';\n      if (c.empty) { chkOut.textContent = ''; return; }\n      if (c.error) { chkOut.textContent = c.error; chkOut.className = 'cat-check-out cat-bad'; return; }\n      chkOut.textContent = (c.inside ? '\u2713 ' : '\u2717 ') + c.text; chkOut.className = 'cat-check-out ' + (c.inside ? 'cat-good' : 'cat-bad');\n    }\n    var timer = null;\n    function soon() { clearTimeout(timer); timer = setTimeout(function () { renderCalc(true); }, 150); }\n    ipIn.addEventListener('input', soon); pfIn.addEventListener('input', soon);\n    if (chkIn) chkIn.addEventListener('input', renderCheck);\n    q('#cat-calc-form').addEventListener('submit', function (e) { e.preventDefault(); renderCalc(true); });\n    var chips = root.querySelectorAll('[data-prefix]');\n    for (var c = 0; c < chips.length; c++) chips[c].addEventListener('click', function (e) {\n      var ip = String(ipIn.value).trim().split(\/[\\\/\\s]+\/)[0]; ipIn.value = ip; pfIn.value = '\/' + e.currentTarget.getAttribute('data-prefix'); renderCalc(true);\n    });\n    var copies = root.querySelectorAll('[data-copy]');\n    for (var k = 0; k < copies.length; k++) copies[k].addEventListener('click', function (e) {\n      var btn = e.currentTarget, cell = out.querySelector('[data-k=\"' + btn.getAttribute('data-copy') + '\"]');\n      if (!cell) return;\n      var text = cell.textContent, done = function () { var o = btn.textContent; btn.textContent = 'Copied'; setTimeout(function () { btn.textContent = o; }, 1200); };\n      if (navigator.clipboard) { navigator.clipboard.writeText(text).then(done, function () {}); }\n    });\n\n    \/\/ Split\n    var spForm = q('#cat-split-form'), spOut = q('#cat-split-out'), spErr = q('#cat-split-error'), spSum = q('#cat-split-summary');\n    function renderSplit() {\n      var mode = q('input[name=\"cat-split-mode\"]:checked').value;\n      var r = split(q('#cat-split-net').value, '', mode, q('#cat-split-value').value);\n      var body = spOut.querySelector('tbody'); clear(body);\n      if (r.error) { spErr.textContent = r.error; show(spErr, true); show(spOut, false); spSum.textContent = ''; return; }\n      show(spErr, false);\n      spSum.textContent = r.parent + ' splits into ' + fmt(r.count) + ' \u00d7 \/' + r.newPrefix + ' subnets' + (r.shown < r.count ? ' (showing the first ' + r.shown + ').' : '.');\n      for (var i = 0; i < r.rows.length; i++) { var tr = el('tr'); for (var j = 0; j < 4; j++) tr.appendChild(el('td', r.rows[i][j])); body.appendChild(tr); }\n      show(spOut, true);\n    }\n    spForm.addEventListener('submit', function (e) { e.preventDefault(); renderSplit(); });\n    spForm.addEventListener('input', function () { clearTimeout(timer); timer = setTimeout(renderSplit, 200); });\n\n    \/\/ Size for hosts\n    var szForm = q('#cat-size-form'), szOut = q('#cat-size-out'), szErr = q('#cat-size-error');\n    function renderSize() {\n      var r = sizeFor(q('#cat-hosts').value, q('#cat-growth').value);\n      if (r.error) { szErr.textContent = r.error; show(szErr, true); show(szOut, false); return; }\n      show(szErr, false);\n      var cells = szOut.querySelectorAll('[data-k]');\n      for (var i = 0; i < cells.length; i++) cells[i].textContent = r[cells[i].getAttribute('data-k')];\n      show(szOut, true);\n    }\n    szForm.addEventListener('submit', function (e) { e.preventDefault(); renderSize(); });\n    szForm.addEventListener('input', renderSize);\n\n    \/\/ Range to CIDR\n    var rgForm = q('#cat-range-form'), rgOut = q('#cat-range-out'), rgErr = q('#cat-range-error');\n    function renderRange() {\n      var r = rangeToCidr(q('#cat-range-start').value, q('#cat-range-end').value);\n      clear(rgOut);\n      if (r.error) { rgErr.textContent = r.error; show(rgErr, true); return; }\n      show(rgErr, false);\n      for (var i = 0; i < r.blocks.length; i++) rgOut.appendChild(el('li', r.blocks[i]));\n    }\n    rgForm.addEventListener('submit', function (e) { e.preventDefault(); renderRange(); });\n    rgForm.addEventListener('input', function () { clearTimeout(timer); timer = setTimeout(renderRange, 200); });\n\n    \/\/ Start from a shared link (#IP\/prefix), validated like any other input.\n    var h = '';\n    try { h = decodeURIComponent(String(location.hash || '').slice(1)); } catch (e) { h = ''; }\n    if (\/^[0-9.]{7,15}\\\/[0-9]{1,2}$\/.test(h)) { if (!calculate(h, '').error) { ipIn.value = h.split('\/')[0]; pfIn.value = '\/' + h.split('\/')[1]; } }\n    v6Wire(root, { useHash: true, onHash: function () { selectTab(q('#cat-tab-ipv6')); } });\n    renderCalc(false); renderSplit(); renderSize(); renderRange();\n  }\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init); else init();\n})();\n<\/script>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-background\" style=\"background-color:#f4f6f8;padding-top:28px;padding-right:32px;padding-bottom:28px;padding-left:32px\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-40de7cf3 wp-block-group-is-layout-constrained\">\n\n<h3 class=\"wp-block-heading\">In this post<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"#calculator\">Subnet calculator<\/a><\/li>\n\n\n<li><a href=\"#reference-table\">Subnet mask reference table (\/8 to \/32)<\/a><\/li>\n\n\n<li><a href=\"#read-a-mask\">How to read a subnet mask<\/a><\/li>\n\n\n<li><a href=\"#worked-example\">Worked example: 192.168.10.25\/26<\/a><\/li>\n\n\n<li><a href=\"#choose-a-size\">Which subnet size should you use?<\/a><\/li>\n\n\n<li><a href=\"#special-ranges\">Private and special IPv4 ranges<\/a><\/li>\n\n\n<li><a href=\"#slash-31-32\">\/31 and \/32: the exceptions<\/a><\/li>\n\n\n<li><a href=\"#wildcard\">Wildcard masks<\/a><\/li>\n\n\n<li><a href=\"#ipv6\">IPv6 in one minute<\/a><\/li>\n\n\n<li><a href=\"#security\">Subnetting as a security control<\/a><\/li>\n\n\n<li><a href=\"#mistakes\">Common subnetting mistakes<\/a><\/li>\n\n\n<li><a href=\"#faq\">FAQ<\/a><\/li>\n\n<\/ul>\n\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"reference-table\">Subnet mask reference table (\/8 to \/32)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Usable hosts are the total addresses minus two, because the first address names the network and the last is the broadcast. \/31 and \/32 are the exceptions (see below). The last column shows how many \/24 networks (the familiar 255.255.255.0) each size equals.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>CIDR<\/th><th>Subnet mask<\/th><th>Wildcard mask<\/th><th>Total addresses<\/th><th>Usable hosts<\/th><th>Number of \/24s<\/th><\/tr><\/thead><tbody><tr><td><strong>\/32<\/strong><\/td><td>255.255.255.255<\/td><td>0.0.0.0<\/td><td>1<\/td><td>1<\/td><td>1\/256<\/td><\/tr><tr><td><strong>\/31<\/strong><\/td><td>255.255.255.254<\/td><td>0.0.0.1<\/td><td>2<\/td><td>2<\/td><td>1\/128<\/td><\/tr><tr><td><strong>\/30<\/strong><\/td><td>255.255.255.252<\/td><td>0.0.0.3<\/td><td>4<\/td><td>2<\/td><td>1\/64<\/td><\/tr><tr><td><strong>\/29<\/strong><\/td><td>255.255.255.248<\/td><td>0.0.0.7<\/td><td>8<\/td><td>6<\/td><td>1\/32<\/td><\/tr><tr><td><strong>\/28<\/strong><\/td><td>255.255.255.240<\/td><td>0.0.0.15<\/td><td>16<\/td><td>14<\/td><td>1\/16<\/td><\/tr><tr><td><strong>\/27<\/strong><\/td><td>255.255.255.224<\/td><td>0.0.0.31<\/td><td>32<\/td><td>30<\/td><td>1\/8<\/td><\/tr><tr><td><strong>\/26<\/strong><\/td><td>255.255.255.192<\/td><td>0.0.0.63<\/td><td>64<\/td><td>62<\/td><td>1\/4<\/td><\/tr><tr><td><strong>\/25<\/strong><\/td><td>255.255.255.128<\/td><td>0.0.0.127<\/td><td>128<\/td><td>126<\/td><td>1\/2<\/td><\/tr><tr><td><strong>\/24<\/strong><\/td><td>255.255.255.0<\/td><td>0.0.0.255<\/td><td>256<\/td><td>254<\/td><td>1<\/td><\/tr><tr><td><strong>\/23<\/strong><\/td><td>255.255.254.0<\/td><td>0.0.1.255<\/td><td>512<\/td><td>510<\/td><td>2<\/td><\/tr><tr><td><strong>\/22<\/strong><\/td><td>255.255.252.0<\/td><td>0.0.3.255<\/td><td>1,024<\/td><td>1,022<\/td><td>4<\/td><\/tr><tr><td><strong>\/21<\/strong><\/td><td>255.255.248.0<\/td><td>0.0.7.255<\/td><td>2,048<\/td><td>2,046<\/td><td>8<\/td><\/tr><tr><td><strong>\/20<\/strong><\/td><td>255.255.240.0<\/td><td>0.0.15.255<\/td><td>4,096<\/td><td>4,094<\/td><td>16<\/td><\/tr><tr><td><strong>\/19<\/strong><\/td><td>255.255.224.0<\/td><td>0.0.31.255<\/td><td>8,192<\/td><td>8,190<\/td><td>32<\/td><\/tr><tr><td><strong>\/18<\/strong><\/td><td>255.255.192.0<\/td><td>0.0.63.255<\/td><td>16,384<\/td><td>16,382<\/td><td>64<\/td><\/tr><tr><td><strong>\/17<\/strong><\/td><td>255.255.128.0<\/td><td>0.0.127.255<\/td><td>32,768<\/td><td>32,766<\/td><td>128<\/td><\/tr><tr><td><strong>\/16<\/strong><\/td><td>255.255.0.0<\/td><td>0.0.255.255<\/td><td>65,536<\/td><td>65,534<\/td><td>256<\/td><\/tr><tr><td><strong>\/15<\/strong><\/td><td>255.254.0.0<\/td><td>0.1.255.255<\/td><td>131,072<\/td><td>131,070<\/td><td>512<\/td><\/tr><tr><td><strong>\/14<\/strong><\/td><td>255.252.0.0<\/td><td>0.3.255.255<\/td><td>262,144<\/td><td>262,142<\/td><td>1,024<\/td><\/tr><tr><td><strong>\/13<\/strong><\/td><td>255.248.0.0<\/td><td>0.7.255.255<\/td><td>524,288<\/td><td>524,286<\/td><td>2,048<\/td><\/tr><tr><td><strong>\/12<\/strong><\/td><td>255.240.0.0<\/td><td>0.15.255.255<\/td><td>1,048,576<\/td><td>1,048,574<\/td><td>4,096<\/td><\/tr><tr><td><strong>\/11<\/strong><\/td><td>255.224.0.0<\/td><td>0.31.255.255<\/td><td>2,097,152<\/td><td>2,097,150<\/td><td>8,192<\/td><\/tr><tr><td><strong>\/10<\/strong><\/td><td>255.192.0.0<\/td><td>0.63.255.255<\/td><td>4,194,304<\/td><td>4,194,302<\/td><td>16,384<\/td><\/tr><tr><td><strong>\/9<\/strong><\/td><td>255.128.0.0<\/td><td>0.127.255.255<\/td><td>8,388,608<\/td><td>8,388,606<\/td><td>32,768<\/td><\/tr><tr><td><strong>\/8<\/strong><\/td><td>255.0.0.0<\/td><td>0.255.255.255<\/td><td>16,777,216<\/td><td>16,777,214<\/td><td>65,536<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"read-a-mask\">How to read a subnet mask<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An IPv4 address is 32 bits, written as four numbers from 0 to 255. A subnet mask splits those 32 bits into two parts: the <strong>network<\/strong> part, which every device on the same subnet shares, and the <strong>host<\/strong> part, which is unique to each device.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In binary, a mask is always a run of 1s followed by 0s. The 1s mark the network bits. <strong>CIDR notation<\/strong> simply counts the 1s: 255.255.255.0 is twenty-four 1s, so it is written \/24. That leaves 8 host bits, which is 2\u2078 = 256 addresses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>255.255.255.0   = 11111111.11111111.11111111.00000000   = \/24\n255.255.255.192 = 11111111.11111111.11111111.11000000   = \/26\n255.255.240.0   = 11111111.11111111.11110000.00000000   = \/20<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Each extra network bit halves the subnet: a \/25 is half a \/24, a \/26 is a quarter, and so on. Each bit you take away doubles it: a \/23 is two \/24s side by side.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"worked-example\">Worked example: 192.168.10.25\/26<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>Block size:<\/strong> a \/26 has 32 \u2212 26 = 6 host bits, so each subnet holds 2\u2076 = 64 addresses.<\/li>\n\n\n<li><strong>Network address:<\/strong> subnets of 64 start at .0, .64, .128 and .192. The address .25 falls in the first block, so the network is <code>192.168.10.0<\/code>.<\/li>\n\n\n<li><strong>Broadcast:<\/strong> the last address in the block, <code>192.168.10.63<\/code>.<\/li>\n\n\n<li><strong>Usable hosts:<\/strong> <code>192.168.10.1<\/code> to <code>192.168.10.62<\/code>, which is 62 devices.<\/li>\n\n\n<li><strong>Next subnet:<\/strong> <code>192.168.10.64\/26<\/code>.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">A shortcut that works for any prefix in the last octet: block size = 256 minus the last number of the mask. For 255.255.255.192 that is 256 \u2212 192 = 64.<\/p>\n\n\n\n<div class=\"wp-block-group has-pale-cyan-blue-background-color has-background\" style=\"padding-top:28px;padding-right:32px;padding-bottom:28px;padding-left:32px;margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-40de7cf3 wp-block-group-is-layout-constrained\">\n\n<p class=\"wp-block-paragraph\"><strong>Planning a new network or untangling an old one?<\/strong> We design, build and look after secure business networks in Sydney: VLANs and segmentation, firewalls, Wi-Fi and remote access.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/catharsis.net.au\/network-services\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=subnet-reference&amp;utm_content=mid-network\" target=\"_blank\" rel=\"noreferrer noopener\">Explore network services<\/a><\/div>\n\n<\/div>\n\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"choose-a-size\">Which subnet size should you use?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Size each subnet for the devices it will hold in a few years, not today, and keep broadcast domains modest. These are sensible starting points for a small or mid-sized business:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Use<\/th><th>Typical size<\/th><th>Why<\/th><\/tr><\/thead><tbody><tr><td>Link between two routers or firewalls<\/td><td>\/31 (or \/30)<\/td><td>Only two addresses are needed<\/td><\/tr><tr><td>Network devices and management<\/td><td>\/27 to \/26<\/td><td>Few devices, easy to firewall tightly<\/td><\/tr><tr><td>Servers<\/td><td>\/26 to \/24<\/td><td>Room to grow without renumbering<\/td><\/tr><tr><td>Staff computers (one office)<\/td><td>\/24<\/td><td>254 hosts covers most single sites<\/td><\/tr><tr><td>Guest Wi-Fi<\/td><td>\/24 to \/23<\/td><td>Phones and laptops come and go; leases pile up<\/td><\/tr><tr><td>Cameras, printers and other devices (IoT)<\/td><td>\/25 to \/24<\/td><td>Keep them apart from staff and servers<\/td><\/tr><tr><td>A larger site, one flat network<\/td><td>\/22 or smaller<\/td><td>Bigger than this, split it into VLANs<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A common pattern is to give each site a \/16 from the private 10.0.0.0\/8 range and carve it into \/24s per purpose. Plan the scheme once and write it down; renumbering later is far more work than planning now.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"special-ranges\">Private and special IPv4 ranges<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Range<\/th><th>What it is for<\/th><\/tr><\/thead><tbody><tr><td>10.0.0.0\/8<\/td><td>Private addresses (RFC 1918): 16.7 million addresses, ideal for multi-site businesses<\/td><\/tr><tr><td>172.16.0.0\/12<\/td><td>Private addresses (RFC 1918): 172.16.0.0 to 172.31.255.255<\/td><\/tr><tr><td>192.168.0.0\/16<\/td><td>Private addresses (RFC 1918): common in homes and small offices<\/td><\/tr><tr><td>100.64.0.0\/10<\/td><td>Shared address space for carrier-grade NAT (RFC 6598); not for your LAN<\/td><\/tr><tr><td>127.0.0.0\/8<\/td><td>Loopback: the device itself<\/td><\/tr><tr><td>169.254.0.0\/16<\/td><td>Link-local (APIPA): a device that couldn't get an address from DHCP<\/td><\/tr><tr><td>192.0.2.0\/24, 198.51.100.0\/24, 203.0.113.0\/24<\/td><td>Reserved for documentation and examples (RFC 5737)<\/td><\/tr><tr><td>224.0.0.0\/4<\/td><td>Multicast<\/td><\/tr><tr><td>240.0.0.0\/4<\/td><td>Reserved<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If two sites or a VPN partner use the same private range, they can't route to each other cleanly. Avoid 192.168.0.0\/24 and 192.168.1.0\/24 for business networks: they clash with almost every home router your remote staff connect from.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"slash-31-32\">\/31 and \/32: the exceptions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>\/32<\/strong> is a single address. It is used for host routes, loopback interfaces on routers, and firewall rules that match one machine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>\/31<\/strong> has two addresses and no broadcast. RFC 3021 allows it on point-to-point links, so both addresses are usable. It saves half the addresses of the older \/30 habit, and most modern routers and firewalls support it.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wildcard\">Wildcard masks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A wildcard mask is the subnet mask inverted: every 1 becomes 0 and every 0 becomes 1. 255.255.255.0 becomes 0.0.0.255. Some router access lists and routing protocols (for example OSPF network statements) use wildcards instead of masks. A 0 bit means \"must match\" and a 1 bit means \"any value\". The reference table and the calculator above show the wildcard for every size.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ipv6\">IPv6 in one minute<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Every IPv6 LAN segment should be a <strong>\/64<\/strong>. Features such as SLAAC (automatic addressing) depend on it, so don't make LAN subnets smaller.<\/li>\n\n\n<li>A site usually receives a \/56 or \/48 from its provider, which gives 256 or 65,536 \/64 subnets.<\/li>\n\n\n<li>There is no broadcast in IPv6, and no \"minus two\" for usable hosts.<\/li>\n\n\n<li>Plan IPv6 with the same segmentation you use for IPv4: one \/64 per VLAN, same firewall rules between them.<\/li>\n\n\n<li>Use the IPv6 tab in the <a href=\"#calculator\">calculator above<\/a> to check any prefix.<\/li>\n\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"security\">Subnetting as a security control<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Subnets are not just about addresses. They are one of the cheapest and most effective security controls a business has. When staff laptops, servers, guest Wi-Fi, cameras and printers all share one flat network, a single compromised device can reach everything. Separate them into their own subnets or VLANs, and put a firewall between them, and an attacker has to break through again at every step.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Put servers, staff devices, guests, cameras and IoT, and management interfaces in separate subnets.<\/li>\n\n\n<li>Allow only the traffic each group needs between subnets, and block the rest by default.<\/li>\n\n\n<li>Keep management interfaces (switches, firewalls, hypervisors) on a subnet only administrators can reach.<\/li>\n\n\n<li>Put guest Wi-Fi on its own subnet with internet access only.<\/li>\n\n\n<li>Log traffic between subnets, so unusual connections stand out.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is also the kind of control frameworks such as ASD Essentials and ISO\/IEC 27001 expect to see: networks divided by purpose and risk, with documented rules between them.<\/p>\n\n\n\n<div class=\"wp-block-group has-pale-cyan-blue-background-color has-background\" style=\"padding-top:28px;padding-right:32px;padding-bottom:28px;padding-left:32px;margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-40de7cf3 wp-block-group-is-layout-constrained\">\n\n<p class=\"wp-block-paragraph\"><strong>Want to know what an attacker can see from the internet?<\/strong> An external network penetration test checks your public IP addresses, open services and firewall rules the way an attacker would.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/catharsis.net.au\/pentesting-services\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=subnet-reference&amp;utm_content=mid-pentest\" target=\"_blank\" rel=\"noreferrer noopener\">See penetration testing<\/a><\/div>\n\n<\/div>\n\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mistakes\">Common subnetting mistakes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Using the network or broadcast address as a host address.<\/li>\n\n\n<li>Overlapping subnets across sites, so VPN routes conflict.<\/li>\n\n\n<li>One huge flat \/16 for everything, which makes broadcast storms and lateral movement easy.<\/li>\n\n\n<li>Picking 192.168.0.0\/24 or 192.168.1.0\/24, which clash with home networks over VPN.<\/li>\n\n\n<li>Forgetting the gateway and DHCP reservations when counting how many hosts fit.<\/li>\n\n\n<li>Not writing the plan down, so the next person guesses.<\/li>\n\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How many usable hosts are in a \/24?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">254. A \/24 has 256 addresses; the first is the network address and the last is the broadcast.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between a subnet mask and CIDR?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">They describe the same thing. 255.255.255.0 is the mask written as four numbers; \/24 is the same mask written as the count of network bits.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What subnet mask is 255.255.255.0?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is a \/24: 256 addresses, 254 usable hosts, wildcard 0.0.0.255.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why do we subtract two from the host count?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In a normal IPv4 subnet the first address identifies the network and the last is the broadcast address, so neither can be assigned to a device. \/31 and \/32 are the exceptions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is a \/31 safe to use?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, on point-to-point links between two devices that support RFC 3021, which most modern routers and firewalls do. Don't use it for a LAN.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What size subnet do I need for 100 devices?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A \/25 gives 126 usable hosts, but a \/24 (254 hosts) leaves room to grow and is easier to read. Use the calculator above to check any size.<\/p>\n\n\n\n<div class=\"wp-block-group has-light-green-cyan-background-color has-background\" style=\"padding-top:28px;padding-right:32px;padding-bottom:28px;padding-left:32px;margin-top:40px;margin-bottom:32px\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-40de7cf3 wp-block-group-is-layout-constrained\">\n\n<h2 class=\"wp-block-heading\">Need help with your network?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Catharsis Cyber Security is a Sydney cyber security company. We design and secure business networks, test them the way an attacker would, and can look after them for you as part of managed IT.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/catharsis.net.au\/contact-us\/?type=contact&amp;service=network-services&amp;utm_source=blog&amp;utm_medium=article&amp;utm_campaign=subnet-reference&amp;utm_content=contact\" target=\"_blank\" rel=\"noreferrer noopener\">Talk to us about your network<\/a><\/div>\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--2\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/catharsis.net.au\/network-services\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=subnet-reference&amp;utm_content=end-network\" target=\"_blank\" rel=\"noreferrer noopener\">Network services<\/a><\/div>\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--3\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/catharsis.net.au\/managed-it-support\/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=subnet-reference&amp;utm_content=end-managed-it\" target=\"_blank\" rel=\"noreferrer noopener\">Managed IT support<\/a><\/div>\n\n<\/div>\n\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A subnet mask reference table for every prefix from \/8 to \/32, with usable hosts and wildcard masks, plus a free subnet calculator and practical advice on sizing and securing subnets.<\/p>\n","protected":false},"author":2,"featured_media":1010,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,7],"tags":[127,128,61,44,129,62,59,126,60,130],"class_list":["post-1006","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cyber-security-explained","category-networking","tag-cidr","tag-ipv4","tag-mask","tag-network","tag-network-segmentation","tag-networking","tag-subnet","tag-subnet-calculator","tag-subnet-mask","tag-subnetting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Subnet Mask Reference Table &amp; Subnet Calculator (CIDR) - Catharsis | Blog<\/title>\n<meta name=\"description\" content=\"Subnet mask cheat sheet for \/8 to \/32 with usable hosts and wildcard masks, plus a free subnet calculator, private IP ranges and how to size subnets.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Subnet Mask Reference Table &amp; Subnet Calculator (CIDR) - Catharsis | Blog\" \/>\n<meta property=\"og:description\" content=\"Subnet mask cheat sheet for \/8 to \/32 with usable hosts and wildcard masks, plus a free subnet calculator, private IP ranges and how to size subnets.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/\" \/>\n<meta property=\"og:site_name\" content=\"Catharsis | Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-29T06:15:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-03T10:43:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2022\/09\/subnet-mask-catharsis.png\" \/>\n\t<meta property=\"og:image:width\" content=\"968\" \/>\n\t<meta property=\"og:image:height\" content=\"425\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sajal Jain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sajal Jain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/\"},\"author\":{\"name\":\"Sajal Jain\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#\\\/schema\\\/person\\\/f0826efb92a7aaf8d46b24715990e099\"},\"headline\":\"Subnet Mask Reference Table &#038; Subnet Calculator (CIDR)\",\"datePublished\":\"2022-09-29T06:15:12+00:00\",\"dateModified\":\"2026-11-03T10:43:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/\"},\"wordCount\":1595,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/subnet-mask-catharsis.png\",\"keywords\":[\"CIDR\",\"IPv4\",\"mask\",\"network\",\"network segmentation\",\"networking\",\"subnet\",\"subnet calculator\",\"subnet mask\",\"subnetting\"],\"articleSection\":[\"Cyber Security Explained\",\"Networking\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/\",\"name\":\"Subnet Mask Reference Table & Subnet Calculator (CIDR) - Catharsis | Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/subnet-mask-catharsis.png\",\"datePublished\":\"2022-09-29T06:15:12+00:00\",\"dateModified\":\"2026-11-03T10:43:39+00:00\",\"description\":\"Subnet mask cheat sheet for \\\/8 to \\\/32 with usable hosts and wildcard masks, plus a free subnet calculator, private IP ranges and how to size subnets.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#primaryimage\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/subnet-mask-catharsis.png\",\"contentUrl\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/subnet-mask-catharsis.png\",\"width\":968,\"height\":425},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/subnet-mask-reference-table\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subnet Mask Reference Table &#038; Subnet Calculator (CIDR)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/\",\"name\":\"Catharsis | Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#organization\",\"name\":\"Catharsis | Blog\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/catharsis_au.jpg\",\"contentUrl\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/catharsis_au.jpg\",\"width\":215,\"height\":60,\"caption\":\"Catharsis | Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/#\\\/schema\\\/person\\\/f0826efb92a7aaf8d46b24715990e099\",\"name\":\"Sajal Jain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Sajal-copy-96x96.jpg\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Sajal-copy-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Sajal-copy-96x96.jpg\",\"caption\":\"Sajal Jain\"},\"description\":\"Cyber Security Enthusiast | OSCP | CEH | CHFI | CNSS | Master of IT Security &amp; Master of IT Management\",\"url\":\"https:\\\/\\\/catharsis.net.au\\\/blog\\\/author\\\/sajal-jain\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Subnet Mask Reference Table & Subnet Calculator (CIDR) - Catharsis | Blog","description":"Subnet mask cheat sheet for \/8 to \/32 with usable hosts and wildcard masks, plus a free subnet calculator, private IP ranges and how to size subnets.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/","og_locale":"en_US","og_type":"article","og_title":"Subnet Mask Reference Table & Subnet Calculator (CIDR) - Catharsis | Blog","og_description":"Subnet mask cheat sheet for \/8 to \/32 with usable hosts and wildcard masks, plus a free subnet calculator, private IP ranges and how to size subnets.","og_url":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/","og_site_name":"Catharsis | Blog","article_published_time":"2022-09-29T06:15:12+00:00","article_modified_time":"2026-11-03T10:43:39+00:00","og_image":[{"width":968,"height":425,"url":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2022\/09\/subnet-mask-catharsis.png","type":"image\/png"}],"author":"Sajal Jain","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sajal Jain","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#article","isPartOf":{"@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/"},"author":{"name":"Sajal Jain","@id":"https:\/\/catharsis.net.au\/blog\/#\/schema\/person\/f0826efb92a7aaf8d46b24715990e099"},"headline":"Subnet Mask Reference Table &#038; Subnet Calculator (CIDR)","datePublished":"2022-09-29T06:15:12+00:00","dateModified":"2026-11-03T10:43:39+00:00","mainEntityOfPage":{"@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/"},"wordCount":1595,"commentCount":0,"publisher":{"@id":"https:\/\/catharsis.net.au\/blog\/#organization"},"image":{"@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#primaryimage"},"thumbnailUrl":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2022\/09\/subnet-mask-catharsis.png","keywords":["CIDR","IPv4","mask","network","network segmentation","networking","subnet","subnet calculator","subnet mask","subnetting"],"articleSection":["Cyber Security Explained","Networking"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/","url":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/","name":"Subnet Mask Reference Table & Subnet Calculator (CIDR) - Catharsis | Blog","isPartOf":{"@id":"https:\/\/catharsis.net.au\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#primaryimage"},"image":{"@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#primaryimage"},"thumbnailUrl":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2022\/09\/subnet-mask-catharsis.png","datePublished":"2022-09-29T06:15:12+00:00","dateModified":"2026-11-03T10:43:39+00:00","description":"Subnet mask cheat sheet for \/8 to \/32 with usable hosts and wildcard masks, plus a free subnet calculator, private IP ranges and how to size subnets.","breadcrumb":{"@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#primaryimage","url":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2022\/09\/subnet-mask-catharsis.png","contentUrl":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2022\/09\/subnet-mask-catharsis.png","width":968,"height":425},{"@type":"BreadcrumbList","@id":"https:\/\/catharsis.net.au\/blog\/subnet-mask-reference-table\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/catharsis.net.au\/blog\/"},{"@type":"ListItem","position":2,"name":"Subnet Mask Reference Table &#038; Subnet Calculator (CIDR)"}]},{"@type":"WebSite","@id":"https:\/\/catharsis.net.au\/blog\/#website","url":"https:\/\/catharsis.net.au\/blog\/","name":"Catharsis | Blog","description":"","publisher":{"@id":"https:\/\/catharsis.net.au\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/catharsis.net.au\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/catharsis.net.au\/blog\/#organization","name":"Catharsis | Blog","url":"https:\/\/catharsis.net.au\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/catharsis.net.au\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2019\/01\/catharsis_au.jpg","contentUrl":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2019\/01\/catharsis_au.jpg","width":215,"height":60,"caption":"Catharsis | Blog"},"image":{"@id":"https:\/\/catharsis.net.au\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/catharsis.net.au\/blog\/#\/schema\/person\/f0826efb92a7aaf8d46b24715990e099","name":"Sajal Jain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2019\/01\/Sajal-copy-96x96.jpg","url":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2019\/01\/Sajal-copy-96x96.jpg","contentUrl":"https:\/\/catharsis.net.au\/blog\/wp-content\/uploads\/2019\/01\/Sajal-copy-96x96.jpg","caption":"Sajal Jain"},"description":"Cyber Security Enthusiast | OSCP | CEH | CHFI | CNSS | Master of IT Security &amp; Master of IT Management","url":"https:\/\/catharsis.net.au\/blog\/author\/sajal-jain\/"}]}},"_links":{"self":[{"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/posts\/1006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/comments?post=1006"}],"version-history":[{"count":11,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/posts\/1006\/revisions"}],"predecessor-version":[{"id":1276,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/posts\/1006\/revisions\/1276"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/media\/1010"}],"wp:attachment":[{"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/media?parent=1006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/categories?post=1006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/catharsis.net.au\/blog\/wp-json\/wp\/v2\/tags?post=1006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}