concept

Calculate IPv4 subnet ranges

AND the IPv4 address with a contiguous mask to obtain the block start; the last address equals start plus block size minus one. For example, 192.0.2.70/26 gives .64–.127 with 62 conventional usable addresses.

Formal Syntax & Structure

networking syntaxnetworking
Calculate IPv4 subnet ranges

Working Example

Example Snippetnetworking
192.0.2.70/26 → 192.0.2.64–192.0.2.127
Networking Reference