Home Net Guide

Home / Subnet calculator / /7

/7 subnet: mask 254.0.0.0

A /7 network holds 33,554,432 addresses, of which 33,554,430 can be given to devices. Its subnet mask is 254.0.0.0.

Prefix length (CIDR)
/7
Subnet mask
254.0.0.0
Wildcard mask
1.255.255.255
Mask in binary
11111110.00000000.00000000.00000000
Network bits / host bits
7 / 25
Total addresses
33,554,432 (2 to the power of 25)
Usable host addresses
33,554,430 (the first address names the network and the last is the broadcast address)
Contains
131,072 networks of size /24

What a /7 is used for

A /7 joins two neighbouring /8 blocks. It appears in filter lists and route summaries that cover two adjacent /8s with one entry, and nowhere in ordinary network design.

Worked example: which /7 is 100.20.1.130 in?

The mask's value in the first octet is 254, so networks advance in steps of 256 minus 254, which is 2, in that octet: 0, 2, 4, 6 and so on up to 254. The first octet of 100.20.1.130 is 100, which falls in the step that starts at 100. The network is therefore 100.0.0.0/7.

Network
100.0.0.0/7
Usable range
100.0.0.1 to 101.255.255.254
Broadcast address
101.255.255.255
Next /7 begins at
102.0.0.0/7

Open this example in the subnet calculator to see it bit by bit, or to try your own address.

The first 16 of the 128 /7 networks in 0.0.0.0/0

NetworkUsable rangeBroadcast
0.0.0.0/70.0.0.1 to 1.255.255.2541.255.255.255
2.0.0.0/72.0.0.1 to 3.255.255.2543.255.255.255
4.0.0.0/74.0.0.1 to 5.255.255.2545.255.255.255
6.0.0.0/76.0.0.1 to 7.255.255.2547.255.255.255
8.0.0.0/78.0.0.1 to 9.255.255.2549.255.255.255
10.0.0.0/710.0.0.1 to 11.255.255.25411.255.255.255
12.0.0.0/712.0.0.1 to 13.255.255.25413.255.255.255
14.0.0.0/714.0.0.1 to 15.255.255.25415.255.255.255
16.0.0.0/716.0.0.1 to 17.255.255.25417.255.255.255
18.0.0.0/718.0.0.1 to 19.255.255.25419.255.255.255
20.0.0.0/720.0.0.1 to 21.255.255.25421.255.255.255
22.0.0.0/722.0.0.1 to 23.255.255.25423.255.255.255
24.0.0.0/724.0.0.1 to 25.255.255.25425.255.255.255
26.0.0.0/726.0.0.1 to 27.255.255.25427.255.255.255
28.0.0.0/728.0.0.1 to 29.255.255.25429.255.255.255
30.0.0.0/730.0.0.1 to 31.255.255.25431.255.255.255

One size up and one size down

Each bit removed from the prefix doubles a network, and each bit added halves it. A /6 is twice the size, with 67,108,862 usable addresses, and a /8 is half the size, with 16,777,214 usable addresses. The table of every prefix size compares them all.