- Input
192.168.1.42/24- Result
192.168.1.0/24 · 192.168.1.1–192.168.1.254 · 254
Calculation steps
CIDR prefix
Total addresses
Usable addresses
The mask divides network bits from host bits. IPv4 normally excludes network and broadcast from usable hosts; /31 provides two point-to-point endpoints and /32 one address. IPv6 has no broadcast.