Network security

/29 Subnet Mask Explained: 255.255.255.248, 6 Hosts and Examples

A /29 gives you 8 addresses and 6 usable hosts. Here is the binary math, a worked example, and the cases where a /29 is the right size.

Cysoro Security TeamPublished · 7 min read
203.0.113.8/2911111111.1111111111111111.111110008 addresses • 6 usable hostsMask 255.255.255.24829 network bits • 3 host bits6hosts ready to use NETWORK SECURITY /29 subnetmask 8 addresses. 6 usable hosts.
Quick answer

A /29 subnet mask is 255.255.255.248. It leaves 3 host bits, so it holds 2 to the power of 3, or 8, IPv4 addresses. Two are reserved as the network and broadcast addresses, leaving 6 usable host addresses. Blocks start on multiples of 8 in the last octet, and the wildcard mask is 0.0.0.7.

Key takeaways

  • A /29 is 255.255.255.248: 8 addresses, 6 usable hosts, wildcard 0.0.0.7.
  • Usable hosts are total addresses minus the network and broadcast addresses.
  • A /29 is the usual size for a small block of static public IPs from an ISP.

A /29 is one of the smallest subnets people order on purpose. It is just big enough for a handful of servers, nameservers or virtual machines, and small enough that wasting addresses hurts. Knowing exactly what it holds — and what it does not — saves awkward conversations with an ISP.

What is a /29 subnet mask?

A /29 subnet mask is 255.255.255.248. It means the first 29 bits of an IPv4 address identify the network, and the remaining 3 bits identify hosts inside that network.

An IPv4 address is 32 bits long. The number after the slash, called the prefix length, counts how many of those bits belong to the network. Because a /29 locks 29 bits to the network, only 3 bits are left for hosts. That small host space is the whole story of a /29: it is a tight, deliberate block, not a general-purpose LAN.

The mask in binary is 11111111.11111111.11111111.11111000. Each octet can only take nine values in a mask, and 248 is one of them. The wildcard mask, the inverse used in access lists, is 0.0.0.7.

How many hosts does a /29 have?

A /29 has 8 addresses in total and 6 usable hosts. The math is 2 to the power of 3 host bits, which equals 8, minus 2 reserved addresses.

The two reserved addresses are the network address, the first address in the block, and the broadcast address, the last address. Neither can be assigned to a device. That rule comes from RFC 1878, which reserves the all-zeros and all-ones host addresses, and it applies to every ordinary IPv4 subnet from /8 to /30.

In practice, the count can drop further. If the provider gateway sits inside the block, it takes one of the 6 usable addresses, leaving 5 for servers or devices. If the block is routed to a server instead, all 8 addresses can often be used. Ask the provider which delivery method applies before promising a customer a number.

One /29 block: 8 addresses, 6 usable203.0.113.8Network address — reserved203.0.113.9 to 203.0.113.146 usable host addresses — gateway often takes .9, leaving 5203.0.113.15Broadcast address — reserved
A /29 block with 8 addresses: network, 6 usable hosts and broadcast. Illustration by Cysoro.

What does a /29 look like in practice?

Take 203.0.113.8/29, using the documentation range from RFC 5737. The network address is 203.0.113.8, the broadcast is 203.0.113.15, and the usable range runs from 203.0.113.9 to 203.0.113.14.

That example shows the block boundary rule too. A /29 always starts on a multiple of 8 in the last octet: .0, .8, .16, .24, and so on up to .248.

The block size is 256 minus the last mask octet, so 256 minus 248 equals 8. If an address does not fall on one of those boundaries, it cannot be the start of a /29. Confirm names resolve as expected with the DNS lookup tool.

Here is the same idea on a private network. For 192.168.1.8/29, the network is 192.168.1.8, usable hosts are 192.168.1.9 to 192.168.1.14, and the broadcast is 192.168.1.15. A /24 such as 192.168.1.0/24 holds 32 separate /29 subnets, which is why a /29 is a natural way to carve a larger network into small pieces.

How does a /29 compare with nearby subnet sizes?

A /29 sits between the /28, which is twice as big, and the /30, which is half as big. Each extra prefix bit halves the block, and each bit removed doubles it.

PrefixSubnet maskWildcardTotal addressesUsable hostsTypical use
/27255.255.255.2240.0.0.313230Small office or branch network
/28255.255.255.2400.0.0.151614Small server group or DMZ segment
/29255.255.255.2480.0.0.786Small static IP block from an ISP
/30255.255.255.2520.0.0.342Point-to-point link between routers
/31255.255.255.2540.0.0.122Point-to-point link under RFC 3021
/32255.255.255.2550.0.0.011Single host route or loopback

The table makes the trade-off plain. Moving from a /29 to a /28 doubles usable hosts from 6 to 14, while moving to a /30 cuts them to 2. The /31 is the odd case: under RFC 3021 both addresses are usable on a point-to-point link. A /32 is a single host, often used for a loopback address or a firewall rule.

For a wider view, the full CIDR cheat sheet from ShowMyIP lists every prefix from /8 to /32 with the same columns.

How do you calculate a /29 subnet?

Start with the host bits: 32 minus 29 equals 3. Total addresses are 2 to the power of 3, which is 8, and usable hosts are 8 minus 2, which is 6.

To find the network address, take the given address and clear the host bits. For 203.0.113.10/29, the last octet is 10, or 00001010 in binary. Clearing the last 3 bits gives 00001000, or 8, so the network is 203.0.113.8. Setting those bits to 1 gives 00001111, or 15, so the broadcast is 203.0.113.15.

To find the block size, subtract the last mask octet from 256: 256 minus 248 equals 8. Subnets therefore start every 8 addresses. That shortcut also tells you how many /29 subnets fit in a larger block: a /24 holds 32, a 192.168.0.0/16 holds 8,192, and a 10.0.0.0/8 holds 2,097,152.

Calculating a /29 in three steps1Count host bits32 - 29 = 3 bitsleft for hosts2Total addresses2 to the power of 3 = 8addresses in total3Subtract 28 - 2 = 6 usablehosts remainNetwork and broadcast addresses are reserved in every ordinary subnet.
Three steps to calculate the size of a /29 subnet. Illustration by Cysoro.

When should you use a /29?

Use a /29 when you need a small number of public addresses and you can name each one. Typical cases are three to five servers, two nameservers plus a mail server, or a few virtual machines behind a router.

It is also a sensible size for a management segment: a firewall, a switch and a couple of out-of-band interfaces fit comfortably, with room for one more device. For a lab or a branch office with only a handful of wired devices, a /29 keeps the broadcast domain tiny and the address plan easy to read.

Do not use a /29 when the device count is likely to grow. Adding a seventh device means renumbering or requesting a larger block, and both are disruptive. If the plan calls for more than six hosts, a /28 with 14 usable hosts is usually the safer minimum. A /29 is a poor fit for a general office LAN, where a /24 is the usual starting point.

An on-link /29 shares a network segment with the provider gateway, so the gateway takes one usable address and 5 remain. A routed /29 is pointed at your main IP, so all 8 addresses can be used.

On-link delivery is the simpler setup. The block lives on the same segment as the server, so a hypervisor can bridge virtual machines straight onto it. The cost is the gateway address and the two reserved addresses, leaving 5 usable.

Routed delivery needs more configuration, because the server has to route the block itself. The reward is the full block: no gateway inside it, and no shared broadcast domain. Before ordering, ask the provider which method it uses. The GigeNET guide to /29 blocks explains both methods with current pricing examples.

What mistakes do people make with a /29?

The most common mistake is counting 8 usable hosts instead of 6. The network and broadcast addresses are not spare addresses, and assigning one to a device breaks routing for the whole block.

  • Forgetting the gateway. Plan for 5 usable addresses if the gateway lives inside the block, not 6.
  • Starting on the wrong boundary. A /29 must start on a multiple of 8. Starting at .9 or .10 creates an overlapping or invalid block.
  • Using the broadcast address as a host. The last address in the block is for broadcast traffic, not for a server.
  • Ordering too small. A /29 leaves no room for growth, so a short-term saving can turn into a renumbering project.
  • Mixing up /29 and /28. One bit changes the usable count from 6 to 14, so double-check the prefix in every ticket and config file.

Another mistake is treating a /29 as private space. If the block is public, every address in it is reachable unless a firewall blocks it, so each host needs the same hardening as any public server. Check what your own public address reveals with the free what-is-my-IP tool.

Is there an IPv6 alternative to a /29?

Yes. IPv6 removes the rationing problem entirely: a single IPv6 /64 holds about 18 quintillion addresses, so nobody sizes IPv6 blocks by host count the way they do with IPv4.

That does not make a /29 obsolete. Public services still need IPv4 addresses, because a large share of users still connect over IPv4 only. The practical approach is to use IPv6 everywhere it works and buy IPv4 only for what must face IPv4-only users. A /29 is often exactly that: a small, deliberate IPv4 footprint for the public-facing parts of a service, with IPv6 carrying the rest.

IPv6 also uses the same slash notation, but with 128-bit addresses and prefixes up to /128. The host-count math is the same idea at a vastly larger scale, and IPv6 subnets are normally allocated on nibble boundaries such as /48, /56 and /64 rather than by counting hosts.

The bottom line

A /29 is 255.255.255.248: 8 addresses, 6 usable hosts, and a block that starts on a multiple of 8. It is the right size when you can name every device that will use it, and the wrong size when you expect growth.

Before ordering, confirm whether the block is on-link or routed, reserve one address for the gateway if needed, and write down the network, usable range and broadcast address. You can check the public side of your own setup with the free what-is-my-IP tool.

Frequently asked questions

What is the subnet mask for a /29?

The subnet mask for a /29 is 255.255.255.248. In binary it is 11111111.11111111.11111111.11111000, which is 29 one bits followed by 3 zero bits. The matching wildcard mask is 0.0.0.7.

How many usable hosts does a /29 have?

A /29 has 6 usable hosts on a normal subnet. It holds 8 addresses in total, and the first is the network address and the last is the broadcast address, so neither can be assigned to a device. If the gateway takes one of the 6, 5 remain for other devices.

How many IP addresses are in a /29?

A /29 contains 8 IPv4 addresses in total. How many you can actually use depends on delivery: 6 on a standard on-link subnet, 5 once a gateway inside the block takes one, and all 8 if the block is routed to your server.

What is a /29 used for?

A /29 is commonly used for a small block of static public IP addresses from an ISP, for a tiny management segment, or for a handful of servers or virtual machines that each need a public address. It is also a handy size for a small branch or lab network.

How do you calculate usable hosts in a /29?

Subtract the prefix from 32 to get host bits: 32 minus 29 equals 3. Raise 2 to that power: 2 to the power of 3 equals 8 total addresses. Subtract 2 for the network and broadcast addresses to get 6 usable hosts.

Is a /29 bigger or smaller than a /28?

A /29 is smaller than a /28. A larger number after the slash means a smaller subnet, because more bits are locked to the network. A /28 holds 16 addresses and 14 usable hosts, while a /29 holds 8 addresses and 6 usable hosts.

Can a /29 be split into smaller subnets?

Yes. A /29 splits into two /30 subnets, each with 2 usable hosts, or four /31 subnets for point-to-point links. Splitting loses addresses, because each new subnet needs its own network and broadcast addresses.

What is the wildcard mask for a /29?

The wildcard mask for a /29 is 0.0.0.7. It is the bit-for-bit inverse of the subnet mask 255.255.255.248, and it is used mainly in Cisco access-control lists and OSPF network statements.

Sources

  1. ShowMyIP — Subnet Cheat Sheet: CIDR Mask Chart /8 to /32
  2. GigeNET — How Many IPs Are in a /29? Subnet Sizes & Costs
  3. DigiCert — Subnet Mask Cheat Sheet Practical Guide
  4. ComputingForGeeks — Subnetting Cheat Sheet: Masks, Hosts & VLSM
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against published CIDR subnet tables, RFC 1878 and RFC 3021 as cited in those references.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free