What is a /29 subnet? 8 IPs for a firewall pair and a few servers
By TechCompare · Updated · How we check
At 255.255.255.248, a /29 holds 8 total IPv4 addresses and 6 usable on a conventional subnet. Azure leaves 3 for resources, and AWS doesn't allow this size at all.
Small enough to plan by hand, a /29 gives 8 addresses at 255.255.255.248, with 6 usable on a conventional IPv4 subnet. It's a tight block, sized for a firewall pair, a gateway address, and a handful of servers on one segment. The mask leaves little room for growth, so the plan needs to be settled before the segment goes live.
CIDR reference table
Every IPv4 prefix from /8 to /32 with its subnet mask, wildcard mask and address counts. Pick a prefix to open its page or the calculator.
| Prefix | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29This page | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
Usable hosts are the total minus the network address and the broadcast address. A /31 is the exception: it has neither, so both addresses work as hosts on a point to point link (RFC 3021). A /32 is a single address. The wildcard mask is the subnet mask with every bit flipped, and Cisco IOS access lists and OSPF network commands use it.
How this is calculated
The 3 host bits work out to 2^3 = 8 addresses. A /24 holds 32 of these blocks, and the first three in the last octet are .0-.7, .8-.15, .16-.23. The wildcard mask is 0.0.0.7, which is what an access list or OSPF network statement uses to match this block.
Azure and AWS treat this size differently. Azure accepts a /29 and keeps five addresses in every subnet, leaving 3 for resources. AWS allows nothing smaller than a /28, so a /29 isn't an option there.
Verdict
Choose a /29 for a segment with only a few fixed devices, such as a firewall pair, its gateway, and a couple of management hosts. The mask 255.255.255.248 leaves 3 host bits, which gives 8 addresses in all and 6 usable on a conventional subnet.
The neighbors frame the choice. A /28 has 16 addresses and 14 usable. It's also the smallest block AWS accepts. A /30 has 4 addresses and 2 usable, which covers only the two ends of a link.
If the segment runs in Azure, plan around the 3 addresses left for resources. That's a tight budget, so count the appliances and their future interfaces before you pick this size.
More Subnet scenarios
Related guides
Frequently asked questions
How many usable IPs are in a /29?
Can I create a /29 subnet in AWS?
Can I create a /29 subnet in Azure?
What is the wildcard mask for a /29?
Related tools
DNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use toolDisplay Bandwidth Calculator
Check display bandwidth for HDMI, DisplayPort, USB-C, Thunderbolt, and USB4.
Use toolData Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool