breakitdown

What does /30 mean?

Answer

A /30 has 4 addresses and exactly 2 usable hosts, with netmask 255.255.255.252. In 198.51.100.0/30, .0 is the network, .3 the broadcast, and .1 and .2 are the two ends of the link.

Worked example: 198.51.100.0/30. Type any block to compare.

Try

198.51.100.0/30 is 4 addresses: 198.51.100.0 to 198.51.100.3. 2 usable for hosts (the first is the network address, the last is broadcast).

19811000110510011001110001100100000000000
30 network bits 2 host bits
Network
198.51.100.0
First usable
198.51.100.1
Last usable
198.51.100.2
Broadcast
198.51.100.3
Addresses
4
Usable hosts
2
Netmask
255.255.255.252
Wildcard (ACL) mask
0.0.0.3
Historic class
C
Range type
Documentation (TEST-NET-2) · not routed on the internet

Special-purpose range

Documentation (TEST-NET-2) 198.51.100.0/24 RFC 5737
Reserved for examples in documentation.

Split it into subnets

or

4 subnets.

SubnetUsable rangeHostsBroadcast
198.51.100.0/32198.51.100.0 – 198.51.100.01–
198.51.100.1/32198.51.100.1 – 198.51.100.11–
198.51.100.2/32198.51.100.2 – 198.51.100.21–
198.51.100.3/32198.51.100.3 – 198.51.100.31–

Is this IP in the range?

Range to CIDR blocks

What to know

Two usable hosts is exactly what a point-to-point link needs: one address for each router. For decades /30 was the standard for WAN links and ISP-to-customer handoffs.

Half of a /30 goes to the network and broadcast addresses, which a two-host link does not need. Most modern routers support /31 links, which use both addresses.

Gotchas

Related explainers

← CIDR calculator