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
Which mask is written /24?
- 255.255.0.0
- 255.255.255.0
- 255.255.255.128
- 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.
Which prefix and mask pairs are correct?
- /16 = 255.255.0.0
- /25 = 255.255.255.128
- /28 = 255.255.255.240
- /20 = 255.255.248.0
- /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: 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.
