Bitzu

100-150 CCST ยท IP addressing and subnetting

IPv4 address, mask and slash notation

Network and host portions, dotted-decimal masks, converting between mask and slash notation, and common masks such as /8, /16, /24.

Key points

  • An IPv4 address has 32 bits split into a network part and a host part.
  • The mask marks the split: ones for network bits, zeros for host bits.
  • Slash notation counts the ones: 255.0.0.0 is /8, 255.255.0.0 is /16, 255.255.255.0 is /24, 255.255.255.128 is /25.
  • A /n prefix leaves 32 - n host bits.

Practice questions

Single choice

Which mask is written /24?

  1. 255.255.0.0
  2. 255.255.255.0
  3. 255.255.255.128
  4. 255.0.0.0
Show answer

Answer: B. 255.255.255.0

/24 means 24 one-bits: three full octets of 255 and a zero last octet.

Select all that apply

Which prefix and mask pairs are correct?

  1. /16 = 255.255.0.0
  2. /25 = 255.255.255.128
  3. /28 = 255.255.255.240
  4. /20 = 255.255.248.0
  5. /18 = 255.255.128.0
Show answer

Answer: A. /16 = 255.255.0.0, B. /25 = 255.255.255.128, C. /28 = 255.255.255.240

/16 is 255.255.0.0, /25 is 255.255.255.128 and /28 is 255.255.255.240. /20 is 255.255.240.0, not ...248.0 (that is /21), and /18 is 255.255.192.0.

True or false

True or false: in 192.168.5.20/24, the first three octets identify the host.

Show answer

Answer: False

False. With /24 the first 24 bits (three octets) are the network part; only the last octet, 20, identifies the host.

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