concept
Bitwise masks
Bitwise AND retains positions selected by ones; OR sets positions selected by ones. CIDR IPv4 masks contain leading contiguous ones followed by zeros. The number of address patterns in a /p block is 2^(32−p), not necessarily the usable host count.
Formal Syntax & Structure
networking syntaxnetworking
Bitwise masks