Ko-fiSupport

Subnet Calculator Technical Overview

Calculate IPv4 network ranges, CIDR prefixes (/0 to /32), subnet masks, ACL wildcard masks, and usable host counts instantly. Includes 22+ pre-calculated CIDR reference tables and CCNA worked examples. Verified against RFC 950, RFC 4632 (CIDR), and RFC 3021 (/31 point-to-point) using unsigned 32-bit bitwise arithmetic.

Instant CIDR (/0 to /32) subnet mask and wildcard mask computationNetwork address, broadcast address, and first/last usable host calculation22+ pre-calculated CIDR and RFC 1918 subnet reference breakdown pagesOne-click copy for router and switch configurationEnter Base IPv4 Address: Type any IPv4 host or network address (e.g., 192.168.1.1 or 10.0.0.0) into the IP input field.Select CIDR Prefix (/0 to /32): Choose the CIDR prefix length (such as /24, /26, or /30) from the dropdown selector.
Enterprise & LAN ExamplesMask: 255.255.255.252Usable Hosts: 2

192.168.1.0/30 Point-to-Point Subnet (255.255.255.252 — 2 Usable Hosts)

A /30 subnet allocates exactly 4 total addresses: 1 Network ID (.0), 2 usable host IPs (.1 and .2), and 1 Directed Broadcast (.3). In CCNA labs and enterprise WANs, /30 is the classic standard for point-to-point links connecting two Layer-3 routers.

Calculated IPv4 Parameters for 192.168.1.0/30

Network Address (ID)192.168.1.0/30All host bits set to 0
Directed Broadcast IP192.168.1.3All host bits set to 1
Subnet Mask255.255.255.25230 network bits
ACL / OSPF Wildcard Mask0.0.0.3255.255.255.255 − mask
First Usable Host IP192.168.1.1Typical Default Gateway (.1)
Last Usable Host IP192.168.1.2Broadcast IP − 1
Usable Host Capacity22^2 − 2 usable hosts
Interesting Octet & Block SizeOctet 4 (Block: 4)4 total IPv4 addresses

32-Bit Binary Bitwise Breakdown

Routers determine the Network Address by performing a bitwise AND between the 32-bit IPv4 address and the 30-bit Subnet Mask, and compute the Broadcast Address by setting the remaining 2 host bits to 1.

Input IPv4 (192.168.1.0)
11000000.10101000.00000001.00000000
Subnet Mask (255.255.255.252 / 30)
11111111.11111111.11111111.11111100
Bitwise AND → Network ID (192.168.1.0)
11000000.10101000.00000001.00000000
Host Bits = 1 → Broadcast IP (192.168.1.3)
11000000.10101000.00000001.00000011
CCNA 200-301 Speed-Solving Note

How to Solve 192.168.1.0/30 in Under 15 Seconds

In VLSM design problems, always reserve /30 blocks (block size 4) from the top or bottom of your address space for router-to-router serial or Gigabit Ethernet links so you do not waste a /24 on a 2-node connection.

Sample Cisco IOS Interface & Routing Configuration

! Router R1
interface GigabitEthernet0/1
 ip address 192.168.1.1 255.255.255.252
 no shutdown
! Router R2
interface GigabitEthernet0/1
 ip address 192.168.1.2 255.255.255.252
 no shutdown

Adjacent /30 Subnet Blocks in the Same Octet Boundary

Each /30 block advances by the magic block size of 4 in octet 4. The active block containing 192.168.1.0 is highlighted below.

Block #Subnet ID / CIDRUsable Host RangeDirected Broadcast
#1 Match192.168.1.0/30192.168.1.1 – 192.168.1.2192.168.1.3
#2 192.168.1.4/30192.168.1.5 – 192.168.1.6192.168.1.7
#3 192.168.1.8/30192.168.1.9 – 192.168.1.10192.168.1.11
#4 192.168.1.12/30192.168.1.13 – 192.168.1.14192.168.1.15
#5 192.168.1.16/30192.168.1.17 – 192.168.1.18192.168.1.19
#6 192.168.1.20/30192.168.1.21 – 192.168.1.22192.168.1.23
#7 192.168.1.24/30192.168.1.25 – 192.168.1.26192.168.1.27
#8 192.168.1.28/30192.168.1.29 – 192.168.1.30192.168.1.31

Explore Other Pre-Calculated IPv4 Subnet & CIDR Reference Guides

Jump to another worked CIDR prefix or RFC 1918 enterprise subnet breakdown:

Sponsored