Subnet calculator › CIDR /30

/30 subnet mask (255.255.255.252)

A /30 uses the first 30 bits for the network and the remaining 2 bits for hosts: 4 addresses, 2 usable hosts.

CIDR notation/30
Subnet mask255.255.255.252
Wildcard mask0.0.0.3
Binary mask11111111.11111111.11111111.111111|00
Hex mask0xFFFFFFFC
Total addresses4 (22)
Usable hosts2 · 4 addresses minus the network and broadcast addresses.
Block size The fourth octet changes in steps of 4

What is a /30 used for?

/30 address range examples

Splitting 192.168.1.0/24 into /30 gives 64 subnets. The first 8 are shown.

NetworkUsable rangeBroadcast
192.168.1.0/30 192.168.1.1 ~ 192.168.1.2 192.168.1.3
192.168.1.4/30 192.168.1.5 ~ 192.168.1.6 192.168.1.7
192.168.1.8/30 192.168.1.9 ~ 192.168.1.10 192.168.1.11
192.168.1.12/30 192.168.1.13 ~ 192.168.1.14 192.168.1.15
192.168.1.16/30 192.168.1.17 ~ 192.168.1.18 192.168.1.19
192.168.1.20/30 192.168.1.21 ~ 192.168.1.22 192.168.1.23
192.168.1.24/30 192.168.1.25 ~ 192.168.1.26 192.168.1.27
192.168.1.28/30 192.168.1.29 ~ 192.168.1.30 192.168.1.31

Try it in the calculator →

Splitting a /30 further

Split intoSubnetsHosts each
/31 2 2
/32 4 1

How many /30s fit in a larger block

Other prefixes