CIDR
A compact way to write a range of IP addresses, such as 10.244.0.0/24, where the number after the slash says how many leading bits are fixed.
In more detail
CIDR stands for Classless Inter-Domain Routing. The smaller the number after the slash, the bigger the range: a /16 holds 65,536 addresses and a /24 holds 256. Choose ranges that do not overlap networks you will ever need to connect.
Examples
A VPC range of 10.20.0.0/16 split into /24 subnets.kubectl get node -o jsonpath='{.items[0].spec.podCIDR}'kubectl get node -o jsonpath='{.items[0].spec.podCIDR}' # each Kubernetes node's slice of the pod address rangeThe number after the slash says how many leading bits are fixed: /24 covers 256 addresses.cidr_block = "10.0.0.0/16"In Terraform: The number after the slash says how many leading bits are fixed, so /16 holds 65,536 addresses and /24 holds 256. Networks and subnets are sized with CIDR blocks, and subnets must fit inside their network's block without overlapping.Related terms
- VPC — A virtual private cloud: your own isolated private network inside a cloud provider, with an address range you choose.
- subnet — A range of IP addresses sharing the same network prefix, such as 192.0.2.0/24, whose members can reach each other without a router.
- IP address — The numeric address, such as 192.168.1.10, that identifies a machine or container on a network.
- private IP address range — Address blocks such as 10.0.0.0/8 and 192.168.0.0/16 set aside for private networks, never routed on the public internet.
- Container Network Interface — The Container Network Interface: a standard for plugins that give pods their network, such as Calico or Cilium.
- node — One machine, physical or virtual, that belongs to a Kubernetes cluster and runs pods.
- 0.0.0.0/0 — The CIDR range with prefix length zero, which matches every IPv4 address; ::/0 is the IPv6 equivalent.
- private IP address — An IP address from a range reserved for internal networks, such as 10.x.x.x or 192.168.x.x, which is never routed on the public internet.
Taught in
- Confusable Services Sprint: One Clue Each — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Network As A Control: CIDR, Routes, ACLs And Security Groups — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Private Paths: VPC Endpoints And PrivateLink — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Network Performance: Peering, Transit Gateway And The Edge — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Long-Stem Clinic: The Phrase That Decides — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- NetworkPolicy Truth Tables: One Dash Decides — Certified Kubernetes Administrator (CKA) Exam Prep
- Mock Exam: Sixteen Tasks Against The Clock — Certified Kubernetes Application Developer (CKAD) Exam Prep
- The Metadata Endpoint And The Kubelet's Front Door — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Virtual Private Clouds — Cloud Infrastructure & Hyperscaler Architecture
- Subnets: Public and Private — Cloud Infrastructure & Hyperscaler Architecture
- Route Tables and Internet Gateways — Cloud Infrastructure & Hyperscaler Architecture
- Security Groups and Firewalls — Cloud Infrastructure & Hyperscaler Architecture
- The Range That Already Belonged To Someone — CompTIA Cloud+ (CV0-004) Exam Prep
- Peered To Everything, Reaching Nothing — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Hundred And Fourteen Findings: Vulnerability Management — CompTIA Cloud+ (CV0-004) Exam Prep
- Allowed In, Lost On The Way Back: Security Controls — CompTIA Cloud+ (CV0-004) Exam Prep
- Fine From Home, Broken At The Office: Network Troubleshooting — CompTIA Cloud+ (CV0-004) Exam Prep
- Exam On Thursday: The PBQ Clinic And Final Review — CompTIA Cloud+ (CV0-004) Exam Prep
- Cloud Network Isolation: VPC Peering & PrivateLink — Cloud Security & DevSecOps Engineering
- Static IaC Scanning: Linting Terraform with Checkov — Cloud Security & DevSecOps Engineering
- Cloud Security Posture Management & Remediation — Cloud Security & DevSecOps Engineering
- Worker Nodes: kubelet, Runtime, CNI And kube-proxy — Kubernetes: Production-Grade Container Orchestration
- Indicator of Compromise Extraction & Threat Hunting Feeds — Security Operations & Threat Hunting (SOC)
- What Is Infrastructure As Code? — Infrastructure as Code with Terraform
- The Terraform Registry And Public Modules — Infrastructure as Code with Terraform
- Count, For Each And Dynamic Blocks — HashiCorp Terraform Associate (004) Exam Prep
- Remote State With The Backend Block — HashiCorp Terraform Associate (004) Exam Prep
References
- Amazon VPC: IP addressing and CIDR blocks
- RFC 4632: Classless Inter-domain Routing
- RFC 4632: Classless Inter-domain Routing
- RFC 4632: Classless Inter-Domain Routing
Certification courses
- AWS Cloud Practitioner course and practice exam: CLF-C02
- AWS Solutions Architect Associate course and practice exam: SAA-C03
- CKA course and practice exam: Certified Kubernetes Administrator
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CKS course and practice exam: Certified Kubernetes Security Specialist
- CompTIA Cloud+ course and practice exam: CV0-004
- Terraform Associate course and practice exam: HashiCorp Terraform Associate (004)