Calculate the network address, broadcast address, usable host range and subnet mask from an IP and CIDR prefix.
The network address identifies the subnet itself; the broadcast address is used to send data to every host on that subnet. Neither is normally assignable to a device.
The first address in a subnet is the network address and the last is the broadcast address — both are reserved, leaving the rest for hosts.