Subnetting Practice

A new problem every time. Answer six steps, watch the binary change as you go, and get the reason whenever you are stuck.

Level

Find everything about the subnet this host is on:

Blue bits are the network part. Orange bits are the host part. Rows appear as you solve the steps.

    How to subnet, in six steps

    Every problem on this page asks the same six things, in the order a network engineer works them out:

    1. The subnet mask. A /26 means the first 26 bits are ones and the last 6 are zeros. In four groups of eight that is 11111111.11111111.11111111.11000000, which is 255.255.255.192.
    2. Usable hosts. Count the host bits (32 minus the prefix). Two to that power is every address in the subnet. Take away two: the network address and the broadcast address.
    3. The network address. Keep the address's network bits and set every host bit to 0.
    4. The broadcast address. Keep the network bits and set every host bit to 1.
    5. The first usable host. One above the network address.
    6. The last usable host. One below the broadcast address.

    Two ways to find the network address

    The binary way is always right: write the address and the mask in binary and keep only the bits where the mask has a one. The block-size way is faster once you have it: find the octet where the mask is not 255 or 0, subtract that mask value from 256 to get the block size, and count up in blocks until you pass the address. For 192.168.10.77/26 the mask's last octet is 192, the block size is 64, and 77 falls in the block that starts at 64. The network is 192.168.10.64.

    The page shows both: the bits update as you solve each step, and the explanation after each answer uses the block size where it helps.

    Want to be tested instead?

    This page is for learning: you see the reason for every answer. When you want a timed check, take the networking test (new subnetting values every attempt), read the networking interview questions, or try the CCNA practice exam, which is practice only and not affiliated with Cisco.

    To use subnetting on real machines, try the hands-on networking labs.