Work through the concepts, then test yourself with the knowledge check.
A network has address 192.168.1.0/24. How many usable host addresses does it have?
/24 means 8 host bits → 2⁸=256 addresses. Subtract 2: network address (all host bits 0) and broadcast (all host bits 1) = 254 usable hosts.
Usable hosts = 2ʰ − 2 where h = host bits. For /24: 2⁸−2 = 254.
/24 has 8 host bits → 256 addresses → 254 usable. /25 has 7 host bits → 128 addresses → 126 usable.
The subnet mask 255.255.255.0 in CIDR notation is:
/8 means first 8 bits are network. 255.255.255.0 has 24 bits set → /24.
/16 = 255.255.0.0. 255.255.255.0 has an additional 8 bits set in the third octet → /24.
/32 = 255.255.255.255, a host route. 255.255.255.0 = /24.