Netmasks demo

Fixed bits 24

Therefore there are (32 - 24 =) 8 variable bits.

There are 256 combinations of 8 bits.

Binary Decimal
Netmask 11111111 11111111 11111111 00000000 255.255.255.0
Base IP address (e.g.) 11000000 10101000 00001010 00000101 192.168.10.5
Start address 11000000 10101000 00001010 00000000 192.168.10.0
Last address 11000000 10101000 00001010 11111111 192.168.10.255

Subnet size: 256 addresses

CIDR notation: 192.168.10.0/24