Netmask
Netmask is a bitmask used in IP networking to delineate the network portion of an IP address from the host portion. In IPv4, a netmask is 32 bits long and is usually written in dotted decimal notation (for example, 255.255.255.0). In IPv6, the equivalent concept is a prefix length, written as a slash notation (for example, /64), since addresses are 128 bits long.
To determine the network address, the IP address is bitwise ANDed with the netmask. For example, with
There are standard masks used in practice, such as /8 (255.0.0.0), /16 (255.255.0.0), /24 (255.255.255.0), and /32
Netmasks are configured on devices to facilitate routing, subnetting, and address planning. They help determine whether