Find Network for /29

Intermediate Identify

Question

Given the IP address 172.31.50.75 with a /29 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.

Given

{
  "ip": "172.31.50.75",
  "prefix": 29
}

Answer

{
  "network": "172.31.50.72",
  "broadcast": "172.31.50.79",
  "first_host": "172.31.50.73",
  "last_host": "172.31.50.78",
  "host_count": 6
}

Try to solve it first, then click Reveal Answer

Step-by-Step Explanation

Step 1: Convert /29 to a subnet mask

29 network bits, 3 host bits:

Binary:      11111111.11111111.11111111.11111000
Decimal:     255      .255     .255     .248

Step 2: Find the block size

Block size = 256 − 248 = 8.

Network boundaries in the last octet: 0, 8, 16, …, 64, 72, 80, …

Step 3: Locate 172.31.50.75 in the correct block

75 ÷ 8 = 9.375 → floor to 9 → block start = 9 × 8 = 72.

The network address is 172.31.50.72.

Binary verification:

IP address:    172. 31. 50. 75  →  10101100.00011111.00110010.01001011
Subnet mask:  255.255.255.248  →  11111111.11111111.11111111.11111000
                              AND ─────────────────────────────────────
Network:       172. 31. 50. 72  →  10101100.00011111.00110010.01001000

Step 4: Broadcast address

Set the 3 host bits to 1:

Network:  172.31.50.72  →  ...01001000
Host = 1:               →  ...01001111
Broadcast: 172.31.50.79

Step 5: Calculate the host range

  • First host: 172.31.50.73
  • Last host: 172.31.50.78
  • Usable hosts: 2^3 − 2 = 8 − 2 = 6

/29 subnets are often used for small server segments, management networks, or linking a firewall to a small group of servers.

Summary

Field Value
Network 172.31.50.72
Broadcast 172.31.50.79
First host 172.31.50.73
Last host 172.31.50.78
Usable hosts 6

Related Terms

More Identify Worksheets