HTTPfy

/7 subnet mask (254.0.0.0)

A /7 network has 25 host bits, 33,554,432 addresses and 33,554,430 usable hosts. It is 131,072 /24 networks.

/7 at a glance

Netmask
254.0.0.0
Wildcard mask
1.255.255.255
Hex mask
0xFE000000
Binary mask
11111110.00000000.00000000.00000000
Host bits
25
Total addresses
33,554,432
Usable hosts
33,554,430 (minus network and broadcast)
Compared with a /24
131,072 /24 networks

Typical uses of a /7

A /7 is two adjacent /8s. You see it in summarised routes and filter lists, not in LAN design.

Example /7 ranges

NetworkNetwork addressFirst usableLast usableBroadcastNext /7
0.0.0.0/7 0.0.0.0 0.0.0.1 1.255.255.254 1.255.255.255 2.0.0.0/7 calculate

The /7 boundary falls in the first octet, so /7 networks start every 2 in that octet (128 per address space): 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, ....

What a /7 contains

Smaller blockHow many
/16512
/24131,072
/26524,288
/282,097,152
/294,194,304
/308,388,608
/3233,554,432

Splitting a /7

IntoSubnetsUsable hosts each
/8216,777,214
/948,388,606
/1084,194,302
/11162,097,150

/7 in AWS, Azure and Google Cloud

PlatformAllowed subnet sizes/7 allowed?Usable after reservation
AWS VPC/16 to /28 No -
Azure VNet/2 to /29 Yes 33,554,427 (5 reserved)
Google Cloud VPC/4 to /29 Yes 33,554,428 (4 reserved)

Cloud providers reserve addresses in every subnet (first four and the last address (network, VPC router, DNS, future use, broadcast) on AWS), so the usable count there differs from the classic 2^n - 2.