{
  "id": 13686903,
  "title": "CIDR and Subnet Mask",
  "url": "https://urgent.news/2026/10/11/cidr-and-subnet-mask",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-11T09:29:33.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/frnd4gan/cidr-and-subnet-mask-1ki3"
  },
  "original_language": "en",
  "account": "To grasp CIDR notation and subnet masks, one must first convert decimal IP addresses into binary format, as computers process binary data (bits). Each octet of an IP address consists of 8 bits, with place values of 128, 64, 32, 16, 8, 4, 2, and 1. For instance, the decimal value 192 converts to binary as 11000000 by comparing it against the place values and writing either a 1 or a 0 based on whether the remaining number is greater than or equal to the column value.\n\nWhen dealing with a CIDR notation like /18, this indicates that the first 18 bits of the IP address are designated for the network portion. This translates to a subnet mask of 255.255.192.0 in dotted decimal format. To determine the network and broadcast addresses of a subnet, one must perform a bitwise AND operation between the IP address and the subnet mask. This operation compares the binary representations of the IP address and subnet mask, resulting in a new binary number where the network bits remain unchanged, and the host bits are set to zero.\n\nBy converting this binary result back to dotted decimal format, we obtain the network address (192.168.0.0), which is the first address in the subnet. The broadcast address, the last address in the subnet, is found by setting all host bits to 1, leading to a broadcast address of 192.168.63.255. The usable host range within this subnet then spans from 192.168.0.1 to 192.168.63.254, excluding the network and broadcast addresses.",
  "summary": "Hello All, I would like to share something I learned while preparing for the AWS Certified Advanced Networking - Specialty (ANS-C01) certification. One of the topics that took me some time to fully understand was: Decimal-to-binary conversion How CIDR notation works How to determine the network and broadcast address of a subnet This may be a topic that others have already covered, but I thought…",
  "key_points": [
    "CIDR notation indicates network portion bits, e.g., /18",
    "Subnet mask 255.255.192.0 corresponds to /18 CIDR",
    "Perform bitwise AND to find subnet network and broadcast addresses"
  ],
  "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."
}