Bitzu

100-150 CCST ยท IP addressing and subnetting

Subnet calculations

Finding the network address, broadcast address, usable host range and host count for a given address and prefix.

Key points

  • Block size = 256 minus the interesting mask octet (for /26, 256 - 192 = 64).
  • The network address is the nearest multiple of the block size at or below the host; the broadcast address is the last address before the next block; usable hosts run from network + 1 to broadcast - 1.
  • Usable hosts = 2^h - 2, where h is the number of host bits.
  • Example: 192.168.10.77/26 -> network 192.168.10.64, broadcast 192.168.10.127, hosts .65 to .126.

Practice questions

Single choice

What is the network address of 192.168.10.77/26?

  1. 192.168.10.0
  2. 192.168.10.64
  3. 192.168.10.76
  4. 192.168.10.128
Show answer

Answer: B. 192.168.10.64

A /26 has a block size of 64, so blocks start at 0, 64, 128, 192. 77 falls in the block starting at 64.

Select all that apply

Which statements are true for the host 192.168.1.130/25?

  1. The network address is 192.168.1.128
  2. The broadcast address is 192.168.1.255
  3. The subnet has 126 usable host addresses
  4. The first usable host address is 192.168.1.130
  5. The mask is 255.255.255.192
Show answer

Answer: A. The network address is 192.168.1.128, B. The broadcast address is 192.168.1.255, C. The subnet has 126 usable host addresses

/25 splits the last octet at 128: network 192.168.1.128, broadcast 192.168.1.255, 126 usable hosts. The first usable host is .129, not .130, and the mask ends in 128, not 192.

True or false

True or false: in a /30 subnet all four addresses can be assigned to hosts.

Show answer

Answer: False

False. One address is the network address and one is the broadcast address, leaving 2 usable hosts, which is why /30 suits point-to-point links.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module