CIDR
/30
Subnet Mask
255.255.255.252
Total Addresses
4
Usable Hosts
2
01 / EXAMPLE

Example: 192.168.1.0/30

Network address
192.168.1.0
Broadcast
192.168.1.3
First host
192.168.1.1
Last host
192.168.1.2
Subnet mask
255.255.255.252
Wildcard mask
0.0.0.3
Open in Calculator → Open as AWS VPC
02 / CLOUD HOSTS

Usable hosts by cloud provider

Provider Reserved Usable Hosts
Standard (RFC)22
AWS VPC5
Azure VNet5Not allowed (Azure min /29)
GCP4Not allowed (GCP min /29)
OCI31
Not allowed (AWS minimum is /28)
03 / WHERE YOU SEE /30

When to use a /30

2 usable hosts. Classic WAN point-to-point link or router interconnect.

03 / SUBNET MATH

How to read the /30 mask

The /30 subnet uses 255.255.255.252 as its subnet mask — meaning the first 30 bits of every address identify the network, and the remaining 2 bits identify the host within that network. That gives you 4 total addresses (2 usable on standard RFC math, after subtracting the network and broadcast addresses).

The wildcard mask — the bitwise inverse of the subnet mask — is 0.0.0.3. Wildcards are what Cisco access-control lists and OSPF area definitions use instead of subnet masks; the "1" bits mark "don't care" positions. For a /30, that leaves 2 don't-care host bits.

To find the network address for any IP in a /30 block, perform a bitwise AND between the IP and the subnet mask. To find the broadcast, OR the network address with the wildcard. Modern tools — like our subnet calculator — do this in microseconds, but the underlying mechanics are straightforward binary arithmetic.

04 / IN PRACTICE

Where you encounter /30 in real networks

A /30 holds 4 addresses with only 2 usable. The classic point-to-point link sizing: one address for each end of a router-to-router connection. /30 is the smallest standard-math subnet that still has usable hosts.

Cloud-provider quirks matter at every prefix size: AWS and Azure reserve 5 IPs per subnet, GCP reserves 4, and OCI reserves 3. So a /30 on standard RFC math gives you 2 usable hosts, but on AWS or Azure that drops to 0. The capacity-planning gap bites hardest at small prefixes (a /28 has 14 usable on paper, only 11 on AWS) but exists at every size. Our cloud-aware calculator applies the right math automatically.

05 / FAQ

Common questions

How many usable hosts does a /30 subnet have?

A /30 subnet has 2 usable hosts on standard RFC math. On AWS or Azure (which reserve 5 IPs per subnet), you get 0 usable. On GCP (4 reserved), 0. On OCI (3 reserved), 1.

What is the subnet mask for /30?

The /30 prefix corresponds to subnet mask 255.255.255.252. The matching wildcard mask (used in Cisco ACLs) is 0.0.0.3.

How do you calculate the network and broadcast addresses for a /30?

Apply a bitwise AND between the IP and the subnet mask to get the network address. OR the network address with the wildcard mask to get the broadcast. For example, 192.168.1.0/30 has 4 total addresses, with the first being the network address and the last being the broadcast.

When should I use a /30 versus a /31?

Use /31 for new point-to-point links — RFC 3021 lets both addresses be usable, so you save 50% of the address space versus a /30. Use /30 only if your equipment doesn't support /31, or for compatibility with legacy IGP configurations.

06 / RELATED

Related prefixes & tools

← /29
All prefixes →
/31 →