LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

What is the prefix length notation and how does it relate to the subnet mask?

Prefix length is the count of 1-bits in the subnet mask, written as a slash (e.g. /24 = 255.255.255.0); it is just a compact way to write the mask.

Prefix length to dotted-decimal subnet mask, each step adds one network bit

* Each longer prefix adds one network bit, lengthening the mask. *

Prefix Length (Slash Notation): A shorthand way to express the subnet mask by indicating the number of bits set to 1.

Prefix Subnet Mask Network Bits
/8 255.0.0.0 8 bits
/16 255.255.0.0 16 bits
/24 255.255.255.0 24 bits
/25 255.255.255.128 25 bits
/26 255.255.255.192 26 bits
/27 255.255.255.224 27 bits
/28 255.255.255.240 28 bits

Example:

  • 192.168.10.10/24 means:
    • IP address: 192.168.10.10
    • Subnet mask: 255.255.255.0
    • First 24 bits are network, last 8 bits are host

Context: Prefix notation is more concise and commonly used in network documentation and router configurations.

Go deeper:

From Quiz: NETW1 / IPv4 Addressing | Updated: Jul 14, 2026