Skip to main content

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

Example:
Parts:
  • 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:
Examples:

Common CIDR Ranges


/24 - Most Common (256 IPs)

Example: Office Network

Range covered:
What changes:
  • Last octet (number): 0 to 255
  • Everything else stays the same
Authorizes:

/16 - Large Networks (65,536 IPs)

Example: Corporate VPN

Range covered:
What changes:
  • Last TWO octets: 0.0 to 255.255
  • First two stay the same: 10.8
Authorizes:

/20 - Cloud Subnets (4,096 IPs)

Example: AWS VPC Subnet

Range covered:
What changes:
  • Last octet: Full range (0-255)
  • Third octet: Partial range (0-15)
Authorizes:

/32 - Single IP (Don’t Use CIDR)

Example: Single Server

Range covered:
Note: In KnoxCall, just enter 52.123.45.67 without /32. It’s implied.

Calculating CIDR Ranges

Quick Method

Step 1: Look at the prefix
Step 2: Calculate range

CIDR Calculator Tools

Online calculators: Example:

Common Scenarios

Scenario 1: Office Wi-Fi

Need: Authorize all 50 office computers Solution:
Why /24:
  • Office has 50 devices now
  • Room to grow to 254 devices
  • Typical office network size
Client in KnoxCall:

Scenario 2: Corporate VPN

Need: Authorize 500 remote employees Solution:
Why /16:
  • VPN has 500 users now
  • Room for 65,000+ connections
  • Standard VPN range
Client in KnoxCall:

Scenario 3: AWS Subnet

Need: Authorize EC2 instances in subnet Solution:
Why /20:
  • AWS VPC subnet
  • ~4,000 IPs
  • Multiple microservices
Client in KnoxCall:

Scenario 4: Partner Network

Need: Authorize partner company’s entire network Solution:
Why /24:
  • Partner has small office
  • ~100 employees
  • /24 covers them
Client in KnoxCall:

Testing CIDR Ranges

How to Test

Step 1: Create client with CIDR
Step 2: Test from different IPs From 192.168.1.50:
From 192.168.2.50:

Private IP Ranges

Reserved Private Networks

These IP ranges are for internal networks only (not internet-routable): Class A (Large):
Class B (Medium):
Class C (Small):
Note: Private IPs only work for:
  • Office networks (devices behind router)
  • VPNs (tunnel private network over internet)
  • Cloud private subnets
Don’t use for:
  • Public internet servers (use public IPs)

Public vs Private IPs

Public IPs (Internet)

Use in KnoxCall:
  • Production servers
  • Partner webhooks
  • Public APIs

Private IPs (Internal Networks)

Use in KnoxCall:
  • Office networks
  • VPN access
  • Internal testing

Common Mistakes

❌ Mistake 1: Using /32 for Networks

Fix:

❌ Mistake 2: Too Broad Range

Fix:

❌ Mistake 3: Wrong Base IP

Fix:

❌ Mistake 4: Prefix Doesn’t Match Network

Fix:

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:
List all IPs in range:

Best Practices

✅ Do

  1. Use smallest range needed
  2. Use .0 as base
  3. Document what’s in range
  4. Test before production
  5. Use private IPs for internal

❌ Don’t

  1. Don’t use 0.0.0.0/0
  2. Don’t over-authorize
  3. Don’t forget private vs public
  4. 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!