Understanding CIDR Notation
📖 Scenario: You are working as a network technician setting up IP addresses for a small office network. You need to understand how to write and interpret IP addresses using CIDR notation to efficiently allocate IP ranges.
🎯 Goal: Build a simple reference guide that shows how to write an IP address with its subnet mask in CIDR notation, and how to identify the network and host parts.
📋 What You'll Learn
Create a dictionary called
ip_addresses with three IP addresses as keys and their subnet masks as values.Add a variable called
cidr_suffix that holds the number of bits used for the network part.Create a new dictionary called
cidr_notation that combines each IP address with the cidr_suffix to form CIDR notation strings.Add a final dictionary entry that explains what CIDR notation means in simple terms.
💡 Why This Matters
🌍 Real World
CIDR notation is used by network engineers and IT professionals to efficiently allocate IP addresses and manage networks.
💼 Career
Understanding CIDR notation is essential for roles in network administration, cybersecurity, and cloud infrastructure management.
Progress0 / 4 steps