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

Subnet Fundamentals

Understand what subnets are and how they divide a virtual network into smaller segments.

What You'll Learn

You'll learn what subnets are and how they divide a virtual network into smaller, manageable segments.

What is a Subnet?

A subnet (short for "subnetwork") is a logical subdivision of your virtual network. Think of your virtual network as a large neighborhood, and subnets as individual streets within that neighborhood. Each subnet gets its own slice of the IP address range you defined when creating the virtual network.

When you created a virtual network with a CIDR block like 10.0.0.0/16, you reserved 65,536 IP addresses. That's a lot for one flat network! Subnets let you carve this space into smaller, organized sections.

Why Use Subnets?

Subnets help you:

  • Organize resources logically: Put web servers in one subnet, databases in another, internal tools in a third
  • Apply different security rules: Each subnet can have its own access controls and firewall rules
  • Improve network performance: Smaller broadcast domains mean less network noise
  • Enable routing: Direct traffic between different parts of your infrastructure

How Subnets Work

Each subnet uses a portion of your virtual network's IP range. For example, from 10.0.0.0/16:

  • Subnet A: 10.0.1.0/24 (256 addresses)
  • Subnet B: 10.0.2.0/24 (256 addresses)
  • Subnet C: 10.0.3.0/24 (256 addresses)

These subnets cannot overlap. Once you assign 10.0.1.0/24 to one subnet, those addresses are reserved and can't be used by another subnet.

Resources like VMs are deployed into specific subnets, receiving IP addresses from that subnet's range.

Key Takeaway: Subnets divide your virtual network's IP address space into smaller, isolated segments that help organize resources, apply security policies, and control traffic flow within your cloud infrastructure.