prefix length

The number after the slash in an address such as 192.0.2.42/24, saying how many leading bits identify the network.

In more detail

With /24 the first 24 bits (192.0.2) name the network and the last 8 bits name the host, giving 256 addresses. CIDR, Classless Inter-Domain Routing, is the name for writing addresses this way. Routers pick routes by matching prefixes, preferring the longest match.

Example

ip=192.0.2.42 p=24 net=192.0.2.0 host=42 splits an address at a 24-bit prefix.

Related terms

Taught in

References