Black Lives Matter

Neon Law

CIDR Blocks

CIDR, which stands for classless inter-domain routing, is a way to describe a range of IP addresses. An IP address generally comes in two flavors, IPv4, and IPv6. This article will address CIDR notation for IPv4 address ranges. There are a total of 2^32, or 4,294,967,296 IPv4 addresses.

CIDR for IPv4 ranges have four numbers, which can be from 0 to 255, and a number of the slash character, which is referred to as the subnet mask. The subnet mask, represented by the integer after the slash, refers to how many leading 1 bits are represented in a range. For CIDR notation for IPv4 addresses, this number can range from 0 to 32. Every binary number after the subnet mask can be a 1 or a 0, which results in a range of IP addresses.

Specifying one IP address

To specify one IP address, you could write 10.255.32.30/32. This CIDR notation only references the IP address 10.255.32.30 and because the subnet mask is 32, this means the number of leading bits is 32. By stating that the subnet mask is 32, every possible bit must be accounted for, so the range of IP addresses is the same IP address previously specified.

All Ranges 0.0.0.0/0

On the other hand to specify every IPv4 address, this notation, 0.0.0.0/0 encompasses every IP in the IPv4 because each of the four numbers can go from 0 to 255 and the possible permutations of this is 2^32.

The Upward Mobility Law Firm

All content presented herein is for informational purposes only. Nothing should be construed as legal advice. Transmission and receipt of this information is not intended to create and does not constitute, an attorney-client relationship with lawyers on this platform. There is no expectation of attorney-client privilege or confidentiality of anything you may communicate to us in this forum. Do not act upon any information presented without seeking professional counsel.

About UsPractice AreasBar PrepLegal Templates

Currently viewing this site in English

Switch to Dark Mode

SupportPGP Key
Privacy PolicyTerms of ServiceModern Slavery Statement

Copyright © 2020 Shook Law PLLC

This website is monitored with Fathom Analytics.