Skip to the content

/30 Subnet (255.255.255.252)

A /30 network has 4 addresses, 2 of them usable, and the subnet mask 255.255.255.252: the classic size for a link between two routers.

With or without a prefix: 192.168.1.10/24

/30

Network in CIDR notation

10.0.0.4/30

2 usable hosts, from 10.0.0.5 to 10.0.0.6.

Network address
10.0.0.4
Broadcast address
10.0.0.7
First usable host
10.0.0.5
Last usable host
10.0.0.6
Usable hosts
2
Total addresses
4
Subnet mask
255.255.255.252
Wildcard mask
0.0.0.3
IP class
A, default mask /8
Address type
Private (RFC 1918), in 10.0.0.0/8

In binary

Address
00001010.00000000.00000000.00000100
Mask
11111111.11111111.11111111.11111100
Network
00001010.00000000.00000000.00000100
Broadcast
00001010.00000000.00000000.00000111

The line marks where the network part ends: 30 network bits to its left, 2 host bits to its right.

Split into smaller subnets

4 subnets of /32, 1 usable host each.

  1. 10.0.0.4/32Hosts 10.0.0.4Broadcast none
  2. 10.0.0.5/32Hosts 10.0.0.5Broadcast none
  3. 10.0.0.6/32Hosts 10.0.0.6Broadcast none
  4. 10.0.0.7/32Hosts 10.0.0.7Broadcast none
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

/30 at a glance

Subnet mask
255.255.255.252
Mask in binary
11111111.11111111.11111111.11111100
Wildcard mask
0.0.0.3
Addresses in one network
4
Usable for hosts
2
Networks of this size
64 in a /24, 16,384 in a /16

Where /30 networks begin

One network covers 4 addresses, so a new network begins wherever the last number of the address is a multiple of 4: 0, 4, 8, 12 and so on up to 252.

10.0.0.0/28 divided into 4 networks of /30

  1. 10.0.0.0/30Hosts 10.0.0.1 – 10.0.0.2Broadcast 10.0.0.3
  2. 10.0.0.4/30Hosts 10.0.0.5 – 10.0.0.6Broadcast 10.0.0.7
  3. 10.0.0.8/30Hosts 10.0.0.9 – 10.0.0.10Broadcast 10.0.0.11
  4. 10.0.0.12/30Hosts 10.0.0.13 – 10.0.0.14Broadcast 10.0.0.15

In practice

A link between two routers needs exactly two addresses, and a /30 is the smallest ordinary subnet that provides them: one network address, two hosts and one broadcast address.

Half of every /30 is overhead. That is the reason /31 exists: on a link with only two ends the network and broadcast addresses serve no purpose, so RFC 3021 allows a subnet of just two addresses. A /30 is still used where one of the two devices does not support that.

The subnet calculator takes any address with any prefix or mask, explains the address classes and the private ranges, and splits a network into subnets.