A /29 network mask is a specific subnetting configuration commonly encountered in professional networking, particularly when assigning small blocks of public IP addresses or creating isolated service segments. In the hierarchy of Classless Inter-Domain Routing (CIDR), the /29 prefix serves as a bridge between point-to-point links and larger local area networks.

Quick Summary of /29 Subnet Details

For those requiring immediate technical specifications, here are the core attributes of a /29 subnet:

  • CIDR Notation: /29
  • Dotted Decimal Mask: 255.255.255.248
  • Binary Mask: 11111111.11111111.11111111.11111000
  • Total IP Addresses: 8
  • Usable Host IP Addresses: 6
  • Wildcard Mask: 0.0.0.7
  • Subnet Bits: 29 bits reserved for the network portion.
  • Host Bits: 3 bits reserved for host identification.

In any standard /29 subnet, two addresses are automatically reserved for protocol overhead: the network address (the first IP) and the broadcast address (the last IP). This results in a practical pool of six addresses for devices such as routers, firewalls, and servers.

The Technical Foundation of the /29 Mask

To understand why a /29 mask functions the way it does, one must look at the structure of an IPv4 address. An IPv4 address consists of 32 bits, divided into four 8-bit octets. The "/29" indicates that the first 29 bits of the 32-bit address are fixed as the "network prefix," leaving the remaining 3 bits to define the individual "hosts" or devices within that network.

The Binary Breakdown

Computers process networking information in binary. A subnet mask tells the computer which part of the IP address represents the network ID and which part represents the host ID. When we write /29, we are essentially saying "the first 29 bits are ones, and the rest are zeros."

Representing the mask 255.255.255.248 in binary looks like this:

  • First Octet: 11111111 (255)
  • Second Octet: 11111111 (255)
  • Third Octet: 11111111 (255)
  • Fourth Octet: 11111000 (248)

The fourth octet is where the magic happens. The values of the bits in an octet are 128, 64, 32, 16, 8, 4, 2, and 1. By setting the first five bits to "1" (128+64+32+16+8), we arrive at the total of 248. The remaining three zeros (representing 4, 2, and 1) allow for the variation that creates host addresses.

Mathematical Calculation of IP Blocks

The number of total IP addresses in a subnet is calculated using the power of two, based on the number of host bits remaining.

Formula: 2^(32 - CIDR) = Total IPs For /29: 2^(32 - 29) = 2^3 = 8

However, networking standards dictate that the first address in the block is the Network Address, which identifies the subnet itself. The last address is the Broadcast Address, used to send data to all devices in the subnet simultaneously. Neither can be assigned to a specific computer or interface.

Usable IPs Formula: (Total IPs) - 2 For /29: 8 - 2 = 6 Usable IPs

Why Choose a /29 Network Mask?

The /29 subnet occupies a unique niche in network design. While a /30 mask provides only 2 usable IPs (typically for a direct link between two routers) and a /28 mask provides 14 usable IPs, the /29 mask provides just enough room for a small cluster of devices without wasting valuable IP space.

1. Small Business Public IP Allocation

Internet Service Providers (ISPs) often provide a /29 block to small business customers. In a typical setup, the ISP router (the gateway) occupies one usable IP, leaving the business with five usable public IPs. These can be used for:

  • An office firewall.
  • A dedicated mail server.
  • A web server hosted on-premises.
  • A guest Wi-Fi gateway.
  • An SSL VPN concentrator.

2. High Availability (HA) Clusters

Network architects frequently use /29 subnets for firewall failover pairs. In a High Availability setup, you typically have two physical firewalls and a "Virtual IP" (VIP) that floats between them.

  • Firewall A: IP 1
  • Firewall B: IP 2
  • Virtual IP (Active Gateway): IP 3
  • Upstream Provider Gateway: IP 4
  • Management Interface/Spare: IP 5 & 6 This configuration requires more than the 2 IPs offered by a /30 but doesn't need the 14 IPs of a /28.

3. DMZ (Demilitarized Zone) Segments

For security purposes, it is standard practice to isolate public-facing servers from the internal network. A /29 DMZ is ideal for hosting a small set of "exposed" services (like a web proxy and a DNS server) while strictly limiting the number of devices that can exist in that high-risk zone.

Step-by-Step Calculation Example

Let’s calculate the specific IP range for the subnet 192.168.10.16/29.

  1. Identify the Network Address: The address is 192.168.10.16. Since 16 is a multiple of 8 (the total size of the /29 block), 192.168.10.16 is the Network Address.
  2. Determine the First Usable IP: Add 1 to the network address.
    • 192.168.10.16 + 1 = 192.168.10.17
  3. Determine the Last Usable IP: Add 6 to the first usable IP (or subtract 1 from the broadcast address).
    • 192.168.10.17 + 5 = 192.168.10.22
  4. Determine the Broadcast Address: Add 7 to the network address.
    • 192.168.10.16 + 7 = 192.168.10.23
  5. Next Subnet: The next subnet would start at 192.168.10.24/29.

Comparison: /29 vs /30 vs /28

Choosing the correct mask is a balance between efficiency and scalability.

Feature /30 Subnet /29 Subnet /28 Subnet
Mask 255.255.255.252 255.255.255.248 255.255.255.240
Total IPs 4 8 16
Usable IPs 2 6 14
Waste Factor 50% (2/4) 25% (2/8) 12.5% (2/16)
Common Use Point-to-Point Links Small Server Clusters Branch Office LANs

In the context of IPv4 exhaustion, where every public IP address incurs a monthly cost, the /29 is often the most cost-effective choice for organizations that need more than a single IP but don't have dozens of servers.

Comprehensive /29 Subnetting Chart

Within a single C-class network (e.g., a /24 block which contains 256 addresses), there are 32 possible /29 subnets. The following table provides a quick reference for these subnets.

Subnet # Network Address Usable Range Broadcast Address
1 .0 .1 - .6 .7
2 .8 .9 - .14 .15
3 .16 .17 - .22 .23
4 .24 .25 - .30 .31
5 .32 .33 - .38 .39
6 .40 .41 - .46 .47
7 .48 .49 - .54 .55
8 .56 .57 - .62 .63
9 .64 .65 - .70 .71
10 .72 .73 - .78 .79
11 .80 .81 - .86 .87
12 .88 .89 - .94 .95
13 .96 .97 - .102 .103
14 .104 .105 - .110 .111
15 .112 .113 - .118 .119
16 .120 .121 - .126 .127
17 .128 .129 - .134 .135
18 .136 .137 - .142 .143
19 .144 .145 - .150 .151
20 .152 .153 - .158 .159
21 .160 .161 - .166 .167
22 .168 .169 - .174 .175
23 .176 .177 - .182 .183
24 .184 .185 - .190 .191
25 .192 .193 - .198 .199
26 .200 .201 - .206 .207
27 .208 .209 - .214 .215
28 .216 .217 - .222 .223
29 .224 .225 - .230 .231
30 .232 .233 - .238 .239
31 .240 .241 - .246 .247
32 .248 .249 - .254 .255

Practical Implementation Notes

When deploying a /29 network, several operational details are critical to ensure connectivity and security.

Gateway Placement

In a /29 network, the first usable IP is traditionally assigned to the gateway (the router). For example, in the block 192.168.1.0/29, the router would typically be 192.168.1.1. This leaves 192.168.1.2 through 192.168.1.6 for other devices. However, this is a convention, not a hard rule. Some network administrators prefer using the last usable IP (192.168.1.6) as the gateway. Consistency across the organization is more important than which specific IP is chosen.

Wildcard Masks for ACLs

If you are configuring Access Control Lists (ACLs) on Cisco routers or similar hardware, you may need to use the wildcard mask instead of the subnet mask. The wildcard mask is the bitwise inverse of the subnet mask.

  • Subnet Mask: 255.255.255.248
  • Wildcard Mask: 0.0.0.7 To calculate this, subtract each octet of the subnet mask from 255 (e.g., 255-255=0, 255-248=7).

VLSM and Efficiency

Variable Length Subnet Masking (VLSM) allows network engineers to use different masks for different segments of the same network. For example, a corporation might take a /24 private range and divide it:

  • Use a /26 for the main office (62 hosts).
  • Use several /29s for small branch connections (6 hosts each).
  • Use /30s for links to the service provider (2 hosts each). This granular control prevents "IP waste," which is essential even in private networks to keep routing tables manageable and clean.

Troubleshooting /29 Subnets

Despite the simplicity of /29 blocks, configuration errors are common.

The "Off-by-One" Error

Many administrators mistakenly assume that a /29 provides 8 usable IPs. If you attempt to assign the 7th or 8th address (e.g., .7 or .8 in the first block) to a server, the device will either lose connectivity or cause a broadcast storm. Always verify the network and broadcast addresses before assignment.

Routing Issues

Because /29 subnets are small, it is easy to misconfigure the "Next Hop" in a routing table. If a router is told to look for a gateway that is outside its /29 mask, the traffic will be dropped. For example, if a host at 192.168.1.2/29 tries to use 192.168.1.9 as its gateway, it will fail because .9 belongs to the next subnet.

ARP Considerations

In a /29 subnet, the Address Resolution Protocol (ARP) table on the gateway will be small. If you see "Incomplete" ARP entries for IPs within your /29 usable range, it usually means the device is either powered off, the cabling is faulty, or a local firewall on the host is blocking ARP requests.

Summary

The /29 network mask is a fundamental tool for network engineers, offering a precise balance for small-scale connectivity. With 8 total IP addresses and 6 usable host addresses, it is the standard for small public IP allocations, high-availability firewall clusters, and isolated DMZ segments. By understanding the binary math (255.255.255.248) and the reservation of network and broadcast addresses, administrators can efficiently manage IP resources without the waste associated with larger subnet masks.

Frequently Asked Questions

What is the subnet mask for /29?

The subnet mask for /29 is 255.255.255.248. In binary, it is 11111111.11111111.11111111.11111000.

How many usable IPs are in a /29?

There are 6 usable IP addresses in a /29 subnet. While the block contains 8 IPs in total, the first is reserved for the network ID and the last is reserved for the broadcast address.

Can I use a /29 for a home network?

While technically possible, a /29 is usually too small for a home network. Most home routers default to a /24 (255.255.255.0), which provides 254 usable IPs. With smartphones, laptops, smart TVs, and IoT devices, a modern home can easily exceed 6 devices.

What is the difference between /29 and /30?

A /30 provides 2 usable IPs, making it suitable only for point-to-point links between two devices. A /29 provides 6 usable IPs, allowing for a small group of devices or a high-availability cluster to share the same segment.

How do I calculate a /29 wildcard mask?

The wildcard mask for a /29 is 0.0.0.7. It is found by subtracting the subnet mask (255.255.255.248) from 255.255.255.255.