SYSTEM-DESIGN
    advanced

    CIDR Subnetting

    Software Engineer path · lesson 67 of 99
    Base Network
    10.0.0.0/24
    /24 (Big)/30 (Small)
    Address Space (256 IPs)1 subnet × 256 IPs
    .0254 usable
    Subnet 1254 Usable IPs
    Network ID:10.0.0.0
    Usable Range:10.0.0.1 - 10.0.0.254
    Broadcast:10.0.0.255

    Biggest block first

    Sequence

    Order these CIDR blocks from the most addresses to the fewest.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    5 pieces left to place

    Test your knowledge

    21 questions
    Question 1 of 21
    Score: 0

    If you have a /24 network and you divide it into two equal /25 subnets, how many total USABLE host IPs do you have across both subnets?

    The short version

    CIDR is like cutting a cake. A /24 network is a whole cake (256 slices). If you want to serve two different parties in separate rooms, you cut it in half (/25), giving each room 128 slices. The larger the slash number, the smaller the slice of cake.

    In more depth

    CIDR (Classless Inter-Domain Routing)

    CIDR is a method for allocating IP addresses and IP routing. It replaced the old Class A/B/C system.

    How it Works

    An IPv4 address has 32 bits. The number after the slash indicates how many bits are fixed for the "Network" portion. The remaining bits are used for "Hosts" (devices).

    10.0.0.0/24: 24 bits for the network. 8 bits remain for hosts (2⁸ = 256 IPs).
    10.0.0.0/25: 25 bits for the network. 7 bits remain for hosts (2⁷ = 128 IPs).

    As the CIDR number increases, the number of available IPs decreases by half.

    Interview Questions

    Cisco
    Amazon
    Amazon
    Netflix
    Datadog
    Cisco
    Microsoft
    Amazon
    Cisco
    Google
    Cloudflare

    Love this visualization?

    Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.

    100% free • No credit card required