An IPv4 address is a 32-bit integer. The prefix length n
means the high n bits identify the network and the
remaining 32 − n bits identify the host. The subnet mask
is 2^32 − 2^(32−n), and the network address is the address
ANDed with that mask.
The broadcast address is the network ORed with the complement of the
mask. For 192.168.1.130/26: mask
255.255.255.192, network 192.168.1.128,
broadcast 192.168.1.191, first usable
192.168.1.129, last usable 192.168.1.190.
A /31 carries two addresses and, per RFC 3021, both are
usable — there is no broadcast address on a two-address link.
/32 is a single address and is normally written as a host
route.