Find Network for /22

Intermediate Identify

Question

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

Given

{
  "ip": "10.200.7.150",
  "prefix": 22
}

Answer

{
  "network": "10.200.4.0",
  "broadcast": "10.200.7.255",
  "first_host": "10.200.4.1",
  "last_host": "10.200.7.254",
  "host_count": 1022
}

Try to solve it first, then click Reveal Answer

Step-by-Step Explanation

Step 1: Convert /22 to a subnet mask

22 network bits, 10 host bits. The interesting octet is the third (bits 17–24):

Octet 1:  11111111 = 255
Octet 2:  11111111 = 255
Octet 3:  11111100 = 252  ← 22 − 16 = 6 bits used here
Octet 4:  00000000 = 0

Subnet mask: 255.255.252.0

Step 2: Find the block size in the third octet

Block size = 256 − 252 = 4.

Network boundaries in the third octet (second octet = 200): 0, 4, 8, …

Step 3: Locate 10.200.7.150 in the correct block

Third octet is 7. 7 ÷ 4 = 1.75 → floor to 1 → block start = 1 × 4 = 4.

The network address is 10.200.4.0.

Binary verification:

IP address:   10.200.  7.150  →  00001010.11001000.00000111.10010110
Subnet mask: 255.255.252.  0  →  11111111.11111111.11111100.00000000
                              AND ─────────────────────────────────────
Network:      10.200.  4.  0  →  00001010.11001000.00000100.00000000

Step 4: Broadcast address

Set the 10 host bits to 1. The third octet block ends at 4 + 4 − 1 = 7:

Network:  10.200.4.0  →  ...00000100.00000000
Host = 1:             →  ...00000111.11111111
Broadcast: 10.200.7.255

Step 5: Calculate the host range

  • First host: 10.200.4.1
  • Last host: 10.200.7.254
  • Usable hosts: 2^10 − 2 = 1,024 − 2 = 1,022

/22 subnets are commonly used in enterprise networks and ISP assignments for medium-sized campus segments.

Summary

Field Value
Network 10.200.4.0
Broadcast 10.200.7.255
First host 10.200.4.1
Last host 10.200.7.254
Usable hosts 1,022

Related Terms

More Identify Worksheets