CIDR (Classless Inter-Domain Routing)

CIDR lets you size IPv4 networks precisely by choosing the right prefix length instead of wasting addresses with fixed classes. In this lesson you will plan subnets step by step and validate usable hosts with confidence.

  • CIDR (Classless Inter-Domain Routing) is a method introduced in 1993 by the IETF to improve IPv4 address allocation and reduce address waste.

    Before CIDR, IPv4 used a classful addressing system, where networks were limited to three fixed prefix sizes:

    • Class A → fixed /8 prefix

    • Class B → fixed /16 prefix

    • Class C → fixed /24 prefix

    This rigid structure led to significant address waste, especially when organizations received far more addresses than needed.

    In 1985, subnetting was introduced, allowing Class A, B, and C networks to be divided into smaller segments.
    For example, a Class A network could be split into Class B– or Class C–sized blocks.

    To visualize this evolution, look at Figure 1 below.
    It shows how IPv4 moved from Classes, to Subnetting, and finally to CIDR.

    Diagram showing the evolution of IPv4 addressing, from Class A, B, and C in 1981, to subnetting in 1985, and finally to CIDR in 1993 which allows choosing any prefix length.

    Figure 1 – IPv4 evolution: classes, subnetting, CIDR.


    Even with subnetting, one limitation remained:
    you still couldn’t choose any prefix length. Networks were always tied to /8, /16, or /24 based on their original class.

    CIDR removed these restrictions in 1993 by eliminating address classes entirely.
    From that point on, networks could use any prefix length such as /20, /21, /27, or /30 making IPv4 addressing far more flexible and efficient.

    Answer the question below

    What does CIDR mean?