CIDR Subnet Masks: What /24, /16 Mean and How to Calculate Ranges

VDS / VPS Servers · 19.04.2026
CIDR Subnet Masks: What /24, /16 Mean and How to Calculate Ranges

CIDR combines an IP address with a subnet mask: 192.168.1.0/24. The number after the slash is the network bit count.

CIDR Quick Reference

CIDRMaskHostsUse Case
/24255.255.255.0254Office subnet
/16255.255.0.065,534Data center
/30255.255.255.2522Point-to-point link
/32255.255.255.2551Single host

Practical Examples

# UFW — allow an entire subnet
sudo ufw allow from 10.0.0.0/8

# WireGuard — route all traffic through VPN
AllowedIPs = 0.0.0.0/0, ::/0
💡 Online calculators: cidr.xyz or jodies.de/ipcalc instantly show address ranges, masks, and first/last hosts for any CIDR.
← Back to Knowledge Base Ask Support