Course contentsShow
← Cloud and Infrastructure
Lesson 172 of 2,9894. Cloud Networking BasicsFree lesson

IP Address Ranges and CIDR Notation

Learn CIDR notation basics and how to specify IP address ranges for virtual networks.

IP Address Ranges and CIDR Notation

What you'll learn: How to read and use CIDR notation to define IP address ranges for your cloud virtual networks.

The Big Picture

When you create a virtual network in the cloud, you need to specify which IP addresses it can use. Instead of listing thousands of individual addresses, we use CIDR notation (Classless Inter-Domain Routing) — a compact way to describe entire blocks of IP addresses at once.

Understanding CIDR Notation

CIDR notation looks like this: 10.0.0.0/16

Breaking it down:

  • 10.0.0.0 is the base IP address (the starting point)
  • /16 is the prefix length (how many bits are "fixed")

Think of it like a street address range. If you say "all addresses on 5th Street," you've defined a range without listing every house number. CIDR does the same for IP addresses.

How the Numbers Work

An IP address is 32 bits long. The /16 means the first 16 bits stay fixed, while the remaining 16 bits can vary. This gives you 2^16 = 65,536 addresses.

Common examples:

  • 10.0.0.0/24 = 256 addresses (last 8 bits vary)
  • 10.0.0.0/16 = 65,536 addresses (last 16 bits vary)
  • 10.0.0.0/8 = 16,777,216 addresses (last 24 bits vary)

The larger the number after the slash, the smaller the range.

Why This Matters for Cloud

When setting up virtual networks, you'll specify CIDR blocks like 172.16.0.0/16 for your network. This defines which IP addresses your VMs and resources can use. You can then subdivide this into smaller CIDR blocks for different subnets (like separating web servers from databases).

Key Takeaway: CIDR notation (IP/prefix) is the standard way to specify IP address ranges in cloud networking — smaller prefix numbers mean larger address blocks.