CIDR Calculator - Network Engineering Toolkit

IP ADDRESS INPUT

IPv4
Octet 1
.
Octet 2
.
Octet 3
.
Octet 4
/
Prefix

Keyboard: Use / to change values, / to navigate, ./ / for next octet/CIDR

Binary Representation:
11000000101010000000000100000000
08162431

Network Analysis - 192.168.1.0/24

Class C Subnet (254 hosts)

Technical Notations

Dotted:192.168.1.0/24
Binary:11000000.10101000.00000001.00000000
Hex:c0:a8:01:00
Wildcard:0.0.0.255
Private Network RFC 1918 Private Address Space (192.168.0.0/16)• RFC 1918
0.0.0.0128.0.0.0192.0.0.0224.0.0.0255.255.255.255

Network Size

256 IPs

256 addresses (2^8 = 256)

< 0.0001% of IPv4 space

Network Bits vs Host Bits:
11000000
.10101000
.00000001
.00000000
bit 1bit 8bit 16bit 24bit 32
1st Octet2nd Octet3rd Octet4th Octet
Network bits (24)
Host bits (8)
/0/8/16/24/32

Network Class

Class C

Traditional range: 192.0.0.0 - 223.255.255.255

Default mask: /24

Leading bits:
110
Usage:
Small networks (254 hosts)
Click "Show Advanced" above for more network details
Class A (/8 or less)Class B (/9-/16)Class C (/17-/24)Small Subnets (/25-/32)Click network section to copy IP range

Subnet Mask Binary Breakdown

CIDR Prefix:
08162432
24 bits
Subnet Mask:
11111111111111111111111100000000
255.255.255.0
Wildcard Mask:
00000000000000000000000011111111
0.0.0.255

The subnet mask uses 1 for network bits and 0 for host bits. The wildcard mask (inverse of subnet mask) uses 1 for host bits and 0 for network bits.

Subnet Division Visualizations256 subnets

Subnet 1
Subnet 2
Subnet 3
Subnet 4
Subnet 5
Subnet 6
Subnet 7
Subnet 8

This network can be divided into 256 subnets (1 Class C (/24) subnets).

Subnet by adding bits:Smaller networks
Supernet by removing bits:Larger networks
What are subnets?

Subnetting divides a large network into smaller, more manageable segments. Each subnet is a distinct broadcast domain that can have its own access control and routing policies. Adding bits to the subnet mask creates more, smaller networks, while removing bits combines networks into larger ones (supernetting).

Network Details

255.255.255.0Copied!
Netmask
0.0.0.255Copied!
Wildcard Mask(ACLs)
192.168.1.0Copied!
CIDR Base IP
192.168.1.255Copied!
Broadcast IP
256Copied!
Count
192.168.1.1Copied!
First Usable IP
192.168.1.254Copied!
Last Usable IP
Click any value to copy to clipboard
Click to copy to clipboard

CIDR REFERENCE

RFC 4632

CIDR (Classless Inter-Domain Routing) notation is a compact method for specifying IP address ranges. It replaced the older class-based system (Class A, B, C) to allow for more efficient IP address allocation and routing.

CIDR Format:
192.168.1.0/24
IP address (192.168.1.0) followed by prefix length (24 bits)

An IPv4 address consists of 4 octets (32 bits total), each containing values from 0-255. The / followed by a number (1-32) indicates how many bits are used for the network portion.

Network Bits (/24)

The first 24 bits (3 octets) identify the network

192.168.1.0/24→ Network ID

Host Bits (32-24=8)

The remaining 8 bits identify hosts

2^8-2 = 254→ Usable addresses

The wildcard mask (inverse of subnet mask) is used in Cisco ACLs and route configurations. For a /24 network with subnet mask 255.255.255.0, the wildcard mask would be 0.0.0.255.

CONSOLE: The network address (first IP) and broadcast address (last IP) cannot be assigned to hosts, which is why a /24 network has 254 usable addresses instead of 256.
Common CIDR Blocks
/32 - Single host
/31 - Point-to-point link (2 hosts)
/30 - 4 addresses (2 usable)
/29 - 8 addresses (6 usable)
/28 - 16 addresses (14 usable)
/24 - 256 addresses (254 usable)
/16 - 65,536 addresses
/8 - 16,777,216 addresses