Home / Subnet calculator / /30
/30 subnet: mask 255.255.255.252
A /30 network holds 4 addresses, of which 2 can be given to devices. Its subnet mask is 255.255.255.252.
- Prefix length (CIDR)
- /30
- Subnet mask
- 255.255.255.252
- Wildcard mask
- 0.0.0.3
- Mask in binary
- 11111111.11111111.11111111.11111100
- Network bits / host bits
- 30 / 2
- Total addresses
- 4 (2 to the power of 2)
- Usable host addresses
- 2 (the first address names the network and the last is the broadcast address)
- Fits
- 64 times into a /24
What a /30 is used for
A /30 has 2 usable addresses out of 4. It is the classic size for a point-to-point link between two routers: one address for each end, plus the network and broadcast addresses that every traditional subnet gives up.
Worked example: which /30 is 192.168.1.130 in?
The mask's value in the fourth octet is 252, so networks advance in steps of 256 minus 252, which is 4, in that octet: 0, 4, 8, 12 and so on up to 252. The fourth octet of 192.168.1.130 is 130, which falls in the step that starts at 128. The network is therefore 192.168.1.128/30.
- Network
- 192.168.1.128/30
- Usable range
- 192.168.1.129 to 192.168.1.130
- Broadcast address
- 192.168.1.131
- Next /30 begins at
- 192.168.1.132/30
Open this example in the subnet calculator to see it bit by bit, or to try your own address.
The first 16 of the 64 /30 networks in 192.168.1.0/24
| Network | Usable range | Broadcast |
|---|---|---|
| 192.168.1.0/30 | 192.168.1.1 to 192.168.1.2 | 192.168.1.3 |
| 192.168.1.4/30 | 192.168.1.5 to 192.168.1.6 | 192.168.1.7 |
| 192.168.1.8/30 | 192.168.1.9 to 192.168.1.10 | 192.168.1.11 |
| 192.168.1.12/30 | 192.168.1.13 to 192.168.1.14 | 192.168.1.15 |
| 192.168.1.16/30 | 192.168.1.17 to 192.168.1.18 | 192.168.1.19 |
| 192.168.1.20/30 | 192.168.1.21 to 192.168.1.22 | 192.168.1.23 |
| 192.168.1.24/30 | 192.168.1.25 to 192.168.1.26 | 192.168.1.27 |
| 192.168.1.28/30 | 192.168.1.29 to 192.168.1.30 | 192.168.1.31 |
| 192.168.1.32/30 | 192.168.1.33 to 192.168.1.34 | 192.168.1.35 |
| 192.168.1.36/30 | 192.168.1.37 to 192.168.1.38 | 192.168.1.39 |
| 192.168.1.40/30 | 192.168.1.41 to 192.168.1.42 | 192.168.1.43 |
| 192.168.1.44/30 | 192.168.1.45 to 192.168.1.46 | 192.168.1.47 |
| 192.168.1.48/30 | 192.168.1.49 to 192.168.1.50 | 192.168.1.51 |
| 192.168.1.52/30 | 192.168.1.53 to 192.168.1.54 | 192.168.1.55 |
| 192.168.1.56/30 | 192.168.1.57 to 192.168.1.58 | 192.168.1.59 |
| 192.168.1.60/30 | 192.168.1.61 to 192.168.1.62 | 192.168.1.63 |
One size up and one size down
Each bit removed from the prefix doubles a network, and each bit added halves it. A /29 is twice the size, with 6 usable addresses, and a /31 is half the size, with 2 usable addresses. The table of every prefix size compares them all, and the VLAN planner lays out several networks of different sizes without overlaps.