- Home
- Tools
- Network Tools
- Subnet Calculator
- /30 Subnet (255.255.255.252)
/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
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.
- 10.0.0.4/32Hosts 10.0.0.4Broadcast none
- 10.0.0.5/32Hosts 10.0.0.5Broadcast none
- 10.0.0.6/32Hosts 10.0.0.6Broadcast none
- 10.0.0.7/32Hosts 10.0.0.7Broadcast none
/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
- 10.0.0.0/30Hosts 10.0.0.1 – 10.0.0.2Broadcast 10.0.0.3
- 10.0.0.4/30Hosts 10.0.0.5 – 10.0.0.6Broadcast 10.0.0.7
- 10.0.0.8/30Hosts 10.0.0.9 – 10.0.0.10Broadcast 10.0.0.11
- 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.
Other prefix lengths
- /8 (255.0.0.0)
- /12 (255.240.0.0)
- /16 (255.255.0.0)
- /20 (255.255.240.0)
- /21 (255.255.248.0)
- /22 (255.255.252.0)
- /23 (255.255.254.0)
- /24 (255.255.255.0)
- /25 (255.255.255.128)
- /26 (255.255.255.192)
- /27 (255.255.255.224)
- /28 (255.255.255.240)
- /29 (255.255.255.248)
- /31 (255.255.255.254)
- /32 (255.255.255.255)
- Subnet mask cheat sheet