CIDR Notation Explained
Learn how to use CIDR (Classless Inter-Domain Routing) notation to authorize ranges of IP addresses in KnoxCall.What is CIDR?
CIDR (pronounced “cider”) is a way to represent a range of IP addresses using a single notation.Format
192.168.1.0- Network address (base IP)/24- Prefix length (how many IPs in range)
Why Use CIDR?
The Problem Without CIDR
Imagine authorizing an office with 200 employees:The Solution With CIDR
How CIDR Works
The Prefix Number
The number after the/ tells you how many IPs are in the range.
Formula:
Common CIDR Ranges
/24 - Most Common (256 IPs)
Example: Office Network
- Last octet (number): 0 to 255
- Everything else stays the same
/16 - Large Networks (65,536 IPs)
Example: Corporate VPN
- Last TWO octets: 0.0 to 255.255
- First two stay the same: 10.8
/20 - Cloud Subnets (4,096 IPs)
Example: AWS VPC Subnet
- Last octet: Full range (0-255)
- Third octet: Partial range (0-15)
/32 - Single IP (Don’t Use CIDR)
Example: Single Server
52.123.45.67 without /32. It’s implied.
Calculating CIDR Ranges
Quick Method
Step 1: Look at the prefixCIDR Calculator Tools
Online calculators: Example:Common Scenarios
Scenario 1: Office Wi-Fi
Need: Authorize all 50 office computers Solution:- Office has 50 devices now
- Room to grow to 254 devices
- Typical office network size
Scenario 2: Corporate VPN
Need: Authorize 500 remote employees Solution:- VPN has 500 users now
- Room for 65,000+ connections
- Standard VPN range
Scenario 3: AWS Subnet
Need: Authorize EC2 instances in subnet Solution:- AWS VPC subnet
- ~4,000 IPs
- Multiple microservices
Scenario 4: Partner Network
Need: Authorize partner company’s entire network Solution:- Partner has small office
- ~100 employees
- /24 covers them
Testing CIDR Ranges
How to Test
Step 1: Create client with CIDRPrivate IP Ranges
Reserved Private Networks
These IP ranges are for internal networks only (not internet-routable): Class A (Large):- Office networks (devices behind router)
- VPNs (tunnel private network over internet)
- Cloud private subnets
- Public internet servers (use public IPs)
Public vs Private IPs
Public IPs (Internet)
- Production servers
- Partner webhooks
- Public APIs
Private IPs (Internal Networks)
- Office networks
- VPN access
- Internal testing
Common Mistakes
❌ Mistake 1: Using /32 for Networks
❌ Mistake 2: Too Broad Range
❌ Mistake 3: Wrong Base IP
❌ Mistake 4: Prefix Doesn’t Match Network
CIDR Cheat Sheet
Tools & Resources
CIDR Calculators
IP Address Guide: https://www.ipaddressguide.com/cidr CIDR.xyz: https://cidr.xyz/ Subnet Calculator: https://www.subnet-calculator.com/Command Line Tools
Test if IP is in CIDR range:Best Practices
✅ Do
-
Use smallest range needed
-
Use .0 as base
-
Document what’s in range
-
Test before production
-
Use private IPs for internal
❌ Don’t
-
Don’t use 0.0.0.0/0
-
Don’t over-authorize
-
Don’t forget private vs public
-
Don’t mix ranges
Quick Reference
Next Steps
What are Clients?
Client basics and IP whitelisting
Client Types
Server, User, and Network types
Managing Clients
Create and assign clients
IP Issues
Troubleshoot IP problems
Quick Tip: For most offices,
/24 (256 IPs) is perfect. For VPNs, /16 (65,536 IPs) gives plenty of headroom. When in doubt, use a CIDR calculator!