Find Broadcast Address for /25

Beginner Identify

Question

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

Given

{
  "ip": "10.0.0.130",
  "prefix": 25
}

Answer

{
  "network": "10.0.0.128",
  "broadcast": "10.0.0.255",
  "first_host": "10.0.0.129",
  "last_host": "10.0.0.254",
  "host_count": 126
}

Try to solve it first, then click Reveal Answer

Step-by-Step Explanation

Step 1: Convert /25 to a subnet mask

A /25 prefix means 25 network bits and 7 host bits:

Binary:      11111111.11111111.11111111.10000000
Decimal:     255      .255     .255     .128

The interesting octet here is the last one: 10000000 in binary = 128 in decimal.

Step 2: Find the block size

The block size (subnet increment) in the interesting octet = 256 − 128 = 128.

This means the network boundaries in the last octet fall on multiples of 128: 0 and 128.

Step 3: Determine which block 10.0.0.130 falls in

  • Block starting at 10.0.0.0 covers .0 through .127
  • Block starting at 10.0.0.128 covers .128 through .255

Since 130 is between 128 and 255, the host belongs to the 10.0.0.128 block.

Binary verification:

IP address:    10.  0.  0.130  →  00001010.00000000.00000000.10000010
Subnet mask:  255.255.255.128  →  11111111.11111111.11111111.10000000
                              AND ─────────────────────────────────────
Network:       10.  0.  0.128  →  00001010.00000000.00000000.10000000

Step 4: Find the broadcast address

Set the 7 host bits to 1:

Network:      10.0.0.128  →  00001010.00000000.00000000.10000000
Host bits = 1:             →  00001010.00000000.00000000.11111111
Broadcast:    10.0.0.255

Step 5: Calculate the host range

  • First host: 10.0.0.129
  • Last host: 10.0.0.254
  • Usable hosts: 2^7 − 2 = 128 − 2 = 126

Summary

Field Value
Network 10.0.0.128
Broadcast 10.0.0.255
First host 10.0.0.129
Last host 10.0.0.254
Usable hosts 126

Related Terms

More Identify Worksheets